Mesh
A mesh consisting of mesh entities that represents the simulated model.
Example
app = pf.GetApplication() app:NewProject() app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/startup.fek]]) sConf = app.Models["startup"].Configurations[1] mesh = sConf.Mesh points = mesh.Points -- Iterate through 'TriangleFaces' and print the first two 'Triangles' -- vertex indices as well as their locations TriangleFaces_count = mesh.TriangleFaces.Count for i = 1, TriangleFaces_count do triangle = mesh.TriangleFaces[i].Triangles -- Create a member to ensure the best performance for j = 1, 2 do print("Triangle "..j) print(triangle[j]) print("Vertex locations") print(points[triangle[j].VertexIndices[1]]) -- Accessing member here will be faster than print(points[triangle[j].VertexIndices[2]]) -- querying the mesh for its points each time print(points[triangle[j].VertexIndices[3]]) end end
Usage locations
The Mesh object can be accessed from the following locations:
- Properties
- SolutionConfiguration object has property Mesh.
Property List
Collection List
- CubeRegions
- The collection of regions meshed with cubes. The regions that form part of the mesh model. (MeshCubeRegionCollection of MeshCubeRegion.)
- CurvilinearSegmentWires
- The collection of wires meshed with curvilinear segments. The wires form part of the mesh model. (MeshCurvilinearSegmentWireCollection of MeshCurvilinearSegmentWire.)
- CurvilinearTriangleFaces
- The collection of faces meshed with curvilinear triangles. The faces form part of the mesh model. (MeshCurvilinearTriangleFaceCollection of MeshCurvilinearTriangleFace.)
- SegmentWires
- The collection of wires meshed with segments. The wires form part of the mesh model. (MeshSegmentWireCollection of MeshSegmentWire.)
- TetrahedronRegions
- The collection of regions meshed with tetrahedra. The regions form part of the mesh model. (MeshTetrahedronRegionCollection of MeshTetrahedronRegion.)
- TriangleFaces
- The collection of faces meshed with flat triangles. The faces form part of the mesh model. (MeshTriangleFaceCollection of MeshTriangleFace.)
- UnmeshedCylinderRegions
- The collection of unmeshed cylinders that form part of the mesh model. (MeshUnmeshedCylinderRegionCollection of MeshUnmeshedCylinderRegion.)
- UnmeshedPolygonFaces
- The collection of unmeshed faces that form part of the mesh model. (MeshUnmeshedPolygonFaceCollection of MeshUnmeshedPolygonFace.)
Method List
- GetPointMatrixForSegmentMeshIndexList (indexlist List of number)
- Creates a matrix of points for the given segment mesh index list. (Returns a Matrix object.)
- GetPointMatrixForTriangleMeshIndexList (indexlist List of number)
- Creates a matrix of points for the given triangle mesh index list. (Returns a Matrix object.)
Property Details
Collection Details
- CubeRegions
- The collection of regions meshed with cubes. The regions that form part of the mesh model.
- CurvilinearSegmentWires
- The collection of wires meshed with curvilinear segments. The wires form part of the mesh model.
- CurvilinearTriangleFaces
- The collection of faces meshed with curvilinear triangles. The faces form part of the mesh model.
- SegmentWires
- The collection of wires meshed with segments. The wires form part of the mesh model.
- TetrahedronRegions
- The collection of regions meshed with tetrahedra. The regions form part of the mesh model.
- TriangleFaces
- The collection of faces meshed with flat triangles. The faces form part of the mesh model.
- UnmeshedCylinderRegions
- The collection of unmeshed cylinders that form part of the mesh model.
- UnmeshedPolygonFaces
- The collection of unmeshed faces that form part of the mesh model.