Skip to main content

Model

The Model class is the top-level container for PyPrimeMesh. It contains all information about the PyPrimeMesh session. Model_structure This code shows how the Model class is accessed from the Client class:
This code imports a CAD file containing a single part:
The code prints the Model class to obtain a summary of the current session:

Parts

Geometry topology and mesh data in the Model class is stored within any number of parts parameters:
Each Part class can contain TopoEntities or zonelets. TopoEntities are TopoParts created from CAD geometry imports. Zonelets are mesh parts created from faceted geometry and mesh imports. TopoEntities and zonelets are characterized by the dimension of entities. alt text

TopoEntities

TopoEntities are created from importing a CAD geometry and represent connectivity information. TopoEntities have geometric representation that can be defined by splines or facets. The mesh generated on TopoEntities are projected on the geometry representation. There are four types of TopoEntities:
  • TopoNode: TopoEntity representing points
  • TopoEdge: TopoEntity representing curves
  • TopoFace: TopoEntity representing surfaces
  • TopoVolume: TopoEntity representing volumes
image

Zonelets

Zonelets are created from importing mesh files and are groups of interconnected entities in a mesh. There are three types of zonelets:
  • FaceZonelet: A group of interconnected faces
  • EdgeZonelet: A group of interconnected edges
  • CellZonelet: A group of interconnected cells
A volume is a set of face zonelets that define a closed volume without containing any cell elements. image

Zones

Zonelets or TopoEntities can be further grouped into zones. A zonelet or TopoEntity can only be present in a single zone. When exporting a mesh (MSH or CAS) file to the Fluent solver, you should define the boundary conditions for the zones. When importing a Fluent solver model, each zone is defined as a single zonelet.

Labels

Labels allow overlapping groups of zonelets or TopoEntities. When importing CAD files, each group or named selection generates a label. When exporting to a Mechanical solver (CDB) file, each label is exported as a component.