MeshTetrahedronRegion

A mesh entity representing a region meshed with tetrahedra.

Example

app = cf.GetApplication()
project = app:NewProject()

    -- Set the frequency

project.SolutionConfigurations[1].Frequency.Start = "1e08"

    -- Create geometry, set the solution method to FEM
    
cuboid = project.Geometry:AddCuboidAtCentre(cf.Point(0,0,0), 1.0, 1.0, 1.0)
dielectric = project.Media:AddDielectric(0.01,0.01,0.01)
cuboid.Regions["Region1"].Medium = dielectric
cuboid.Regions["Region1"].SolutionMethod = cf.Enums.RegionSolutionMethodEnum.FEM

	-- Mesh 

project.Mesher:Mesh()
project.Geometry["Cuboid1"]:UnlinkMesh()

tetrahedronRegions = project.Meshes["Cuboid1_1"].TetrahedronRegions

for i in ipairs(tetrahedronRegions) do  

    -- Obtain the 'MeshTetrahedronRegion' and set its local size

    meshTetrahedronRegion = tetrahedronRegions[i]
    meshTetrahedronRegion.LocalMeshSize = 0.01;
    meshTetrahedronRegion.LocalMeshSizeEnabled = true;        
end

Inheritance

The MeshTetrahedronRegion object is derived from the MeshEntity object.

Property List

DefinitionMethod
The definition method for the 3D anisotropic reference direction. (Read/Write RegionDefinitionMethodEnum)
Label
The object label. (Read/Write string)
LocalMeshSize
The local mesh size for the region. Changing this property will set LocalMeshSizeEnabled to true. (Read/Write Expression)
LocalMeshSizeEnabled
Specifies if the local mesh size should be used for the face. (Read/Write boolean)
Medium
The region medium. (Read/Write Medium)
Part
The mesh part that this entity belongs to. (Read only Mesh)
ReferenceWorkplane
The workplane for the 3D anisotropic reference direction. (Read/Write Workplane)
SolutionMethod
The local solution method used for the face. (Read/Write TetrahedralMeshRegionSolutionMethodEnum)
Tetrahedra
The list of mesh tetrahedra that form the mesh region. (Read only MeshTetrahedra)
Type
The object type string. (Read only string)

Method List

Delete ()
Delete the MeshEntity.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
SetProperties (properties table)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.

Property Details

DefinitionMethod
The definition method for the 3D anisotropic reference direction.
Type
RegionDefinitionMethodEnum
Access
Read/Write
Label
The object label.
Type
string
Access
Read/Write
LocalMeshSize
The local mesh size for the region. Changing this property will set LocalMeshSizeEnabled to true.
Type
Expression
Access
Read/Write
LocalMeshSizeEnabled
Specifies if the local mesh size should be used for the face.
Type
boolean
Access
Read/Write
Medium
The region medium.
Type
Medium
Access
Read/Write
Part
The mesh part that this entity belongs to.
Type
Mesh
Access
Read only
ReferenceWorkplane
The workplane for the 3D anisotropic reference direction.
Type
Workplane
Access
Read/Write
SolutionMethod
The local solution method used for the face.
Type
TetrahedralMeshRegionSolutionMethodEnum
Access
Read/Write
Tetrahedra
The list of mesh tetrahedra that form the mesh region.
Type
MeshTetrahedra
Access
Read only
Type
The object type string.
Type
string
Access
Read only

Method Details

Delete ()
Delete the MeshEntity.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
Return
table
A properties table.
SetProperties (properties table)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Input Parameters
properties(table)
A table of properties defining the new state of the object.