    

 ## On this page

  

 

 # ansys.meshing.prime.lucid.Mesh

 Last update: 17.07.2025 

# Mesh

### *class* ansys.meshing.prime.lucid.Mesh(model)

Provides methods for users who are new to meshing.

This class also serves as a tutorial for commonly used meshing workflows.

The `Mesh` class provides these functionalities:

- Surface meshing with constant and variable sizing with triangle or quad dominant mesh
- Volume meshing with prism, tetrahedral, and polyhedral elements
- Surface wrapping
- Helper method for creating zones from labels
- Helper methods for reading and writing files

### Methods

[`Mesh.compute_volumes`](ansys.meshing.prime.lucid.Mesh.compute_volumes.md#ansys.meshing.prime.lucid.Mesh.compute_volumes)(\[part\_expression, ...\])Compute volumes in the parts defined by the part expression.[`Mesh.connect_faces`](ansys.meshing.prime.lucid.Mesh.connect_faces.md#ansys.meshing.prime.lucid.Mesh.connect_faces)(\[part\_expression, ...\])Connect face zonelets with a label name pattern within a given tolerance.[`Mesh.create_constant_size_control`](ansys.meshing.prime.lucid.Mesh.create_constant_size_control.md#ansys.meshing.prime.lucid.Mesh.create_constant_size_control)(\[...\])Generate constant size control on a scope.[`Mesh.create_curvature_size_control`](ansys.meshing.prime.lucid.Mesh.create_curvature_size_control.md#ansys.meshing.prime.lucid.Mesh.create_curvature_size_control)(\[...\])Generate a curvature size control on a scope.[`Mesh.create_flow_volume`](ansys.meshing.prime.lucid.Mesh.create_flow_volume.md#ansys.meshing.prime.lucid.Mesh.create_flow_volume)(\[...\])Create flow volume by the face labels defining the boundary of the volume.[`Mesh.create_zones_from_labels`](ansys.meshing.prime.lucid.Mesh.create_zones_from_labels.md#ansys.meshing.prime.lucid.Mesh.create_zones_from_labels)(\[...\])Create zones from labels.[`Mesh.delete_topology`](ansys.meshing.prime.lucid.Mesh.delete_topology.md#ansys.meshing.prime.lucid.Mesh.delete_topology)(\[part\_expression, ...\])Delete topology in one or more parts.[`Mesh.merge_parts`](ansys.meshing.prime.lucid.Mesh.merge_parts.md#ansys.meshing.prime.lucid.Mesh.merge_parts)(\[parts\_expression, new\_name\])Merge multiple parts into a single part.[`Mesh.read`](ansys.meshing.prime.lucid.Mesh.read.md#ansys.meshing.prime.lucid.Mesh.read)(file\_name\[, append, cad\_reader\_route\])Read or import files of different formats based on file extensions.[`Mesh.surface_mesh`](ansys.meshing.prime.lucid.Mesh.surface_mesh.md#ansys.meshing.prime.lucid.Mesh.surface_mesh)(\[min\_size, max\_size, ...\])Generate a surface mesh on a scope.[`Mesh.surface_mesh_with_size_controls`](ansys.meshing.prime.lucid.Mesh.surface_mesh_with_size_controls.md#ansys.meshing.prime.lucid.Mesh.surface_mesh_with_size_controls)(\[...\])Generate a surface mesh on a scope using the given size controls.[`Mesh.volume_mesh`](ansys.meshing.prime.lucid.Mesh.volume_mesh.md#ansys.meshing.prime.lucid.Mesh.volume_mesh)(\[volume\_fill\_type, ...\])Generate a volume mesh on the model.[`Mesh.wrap`](ansys.meshing.prime.lucid.Mesh.wrap.md#ansys.meshing.prime.lucid.Mesh.wrap)(\[min\_size, max\_size, growth\_rate, ...\])Wrap and remesh the input.[`Mesh.write`](ansys.meshing.prime.lucid.Mesh.write.md#ansys.meshing.prime.lucid.Mesh.write)(file\_name)Write or export files of different formats based on file extensions.