MeshInfo

The quality of the mesh can be examined through these properties.

Example

app = cf.GetApplication()
project = app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/Waveguide_Divider.cfx]])
geometry = project.Geometry["Union2"]

    -- Get the triangle count of the simulation mesh
    
triangleCount = geometry.SimulationMeshInfo.TriangleCount

    -- Ensure the average edge length of the model mesh is smaller than 2.0
    
mesh = geometry:UnlinkMesh()
assert(mesh.ModelMeshInfo.AverageEdgeLength < 2.0)

Usage locations (object properties)

The following objects have properties using the MeshInfo object:

Property List

AverageEdgeLength
The average mesh edge length. (Read only number)
CurvilinearLineSegmentCount
The number of curvilinear line segments in the mesh. (Read only number)
CurvilinearTriangleCount
The number of curvilinear triangles in the mesh. (Read only number)
DielectricTetrahedraCount
The number of dielectric tetrahedra in the mesh. (Read only number)
FlatTriangleCount
The number of flat triangles in the mesh. (Read only number)
LineSegmentCount
The number of line segments in the mesh. (Read only number)
MaxAngle
The maximum mesh element angle. (Read only number)
MaxEdgeLength
The maximum mesh edge length. (Read only number)
MetalTetrahedraCount
The number of metal tetrahedra in the mesh. (Read only number)
MinAngle
The minimum mesh element angle. (Read only number)
MinEdgeLength
The minimum mesh edge length. (Read only number)
StandardDeviationOfEdgeLengths
The standard deviation of mesh edge length. (Read only number)
StraightLineSegmentCount
The number of straight line segments in the mesh. (Read only number)
TetrahedraCount
The total number of tetrahedra in the mesh. (Read only number)
TriangleCount
The number of triangles in the mesh. This is including both flat and curvilinear triangles. (Read only number)
Type
The object type string. (Read only string)
VEPCuboidCount
The number of VEP cuboids in the mesh. (Read only number)
VoxelCount
The number of FDTD voxels in the mesh. (Read only number)

Property Details

AverageEdgeLength
The average mesh edge length.
Type
number
Access
Read only
CurvilinearLineSegmentCount
The number of curvilinear line segments in the mesh.
Type
number
Access
Read only
CurvilinearTriangleCount
The number of curvilinear triangles in the mesh.
Type
number
Access
Read only
DielectricTetrahedraCount
The number of dielectric tetrahedra in the mesh.
Type
number
Access
Read only
FlatTriangleCount
The number of flat triangles in the mesh.
Type
number
Access
Read only
LineSegmentCount
The number of line segments in the mesh.
Type
number
Access
Read only
MaxAngle
The maximum mesh element angle.
Type
number
Access
Read only
MaxEdgeLength
The maximum mesh edge length.
Type
number
Access
Read only
MetalTetrahedraCount
The number of metal tetrahedra in the mesh.
Type
number
Access
Read only
MinAngle
The minimum mesh element angle.
Type
number
Access
Read only
MinEdgeLength
The minimum mesh edge length.
Type
number
Access
Read only
StandardDeviationOfEdgeLengths
The standard deviation of mesh edge length.
Type
number
Access
Read only
StraightLineSegmentCount
The number of straight line segments in the mesh.
Type
number
Access
Read only
TetrahedraCount
The total number of tetrahedra in the mesh.
Type
number
Access
Read only
TriangleCount
The number of triangles in the mesh. This is including both flat and curvilinear triangles.
Type
number
Access
Read only
Type
The object type string.
Type
string
Access
Read only
VEPCuboidCount
The number of VEP cuboids in the mesh.
Type
number
Access
Read only
VoxelCount
The number of FDTD voxels in the mesh.
Type
number
Access
Read only