> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Concepts and model structure

## Model

The [`Model`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1/api/_autosummary/ansys.meshing.prime.Model) class is the top-level container for PyPrimeMesh.
It contains all information about the PyPrimeMesh session.

![Model Structure](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/primemesh/prime-mesh-python-client-library/2025-r1/images/model_structure.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=f35e537aa49185f4a4daebe2683d1421)

This code shows how the [`Model`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1/api/_autosummary/ansys.meshing.prime.Model) class is accessed from the
[`Client`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1/api/_autosummary/ansys.meshing.prime.Client) class:

```python theme={null}
import ansys.meshing.prime as prime

prime_client = prime.launch_prime()
model = prime_client.model
```

This code imports a CAD file containing a single part:

```python theme={null}
cad_file = prime.examples.download_elbow_scdoc()
params = prime.ImportCadParams(model)
prime.FileIO(model).import_cad(file_name=cad_file, params=params)
```

The code prints the [`Model`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1/api/_autosummary/ansys.meshing.prime.Model) class to obtain a summary
of the current session:

```python theme={null}
>>> print(model)

    Part Summary:

    Part Name: flow_volume
    Part ID: 2
            13 Topo Edges
            9 Topo Faces
            1 Topo Volumes

            0 Edge Zones
                    Edge Zone Name(s) : []
            0 Face Zones
                    Face Zone Name(s) : []
            1 Volume Zones
                    Volume Zone Name(s) : [volume]

            2 Label(s)
                    Names: [inlet, outlet]

            Bounding box (-203.2 -228.6 -50.8)
                                     (203.2 203.2 50.8)
```

## Parts

Geometry topology and mesh data in the [`Model`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1/api/_autosummary/ansys.meshing.prime.Model) class is stored
within any number of [`parts`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1/api/_autosummary/ansys.meshing.prime.Model.parts) parameters:

```python theme={null}
model.parts
```

Each [`Part`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r1/api/_autosummary/ansys.meshing.prime.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.

![Part Type](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/primemesh/prime-mesh-python-client-library/2025-r1/images/part_type.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=4b8b8723872c613bdbaf8c16da1a9b58)

### 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

![TopoEntities](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/primemesh/prime-mesh-python-client-library/2025-r1/images/TopoEntities.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=37d71d1aa9818f8b263a7d1af5ab19a2)

### 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.

![Zonelet](https://mintlify.s3.us-west-1.amazonaws.com/synopsys-00a47cbc/docs/primemesh/prime-mesh-python-client-library/2025-r1/images/Zonelets%282%29.png)

### 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.
