Mesh#

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

Mesh is one of the classes in Lucid API.

This class is meant for beginners to meshing. It also serves as a tutorial for commonly used meshing workflows.

The following functionalities are provided by this class: * 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 to create zones from labels. * Helper methods for reading and writing files.

Methods

Mesh.compute_volumes([part_expression, ...])

Computes volumes in the parts defined by the part expression

Mesh.connect_faces([part_expression, ...])

Connect face zonelets with given label name pattern within the given tolerance.

Mesh.create_constant_size_control([...])

Generate constant size control on the given scope.

Mesh.create_curvature_size_control([...])

Generate curvature size control on the given scope.

Mesh.create_flow_volume([...])

Create flow volume by the given face labels defining the boundary of the volume.

Mesh.create_zones_from_labels([...])

Create zones from labels.

Mesh.delete_topology([part_expression, ...])

Deletes topology in the given part.

Mesh.merge_parts([parts_expression, new_name])

Merges given parts into one.

Mesh.read(file_name[, append, cad_reader_route])

Read or import files of different formats based on file extension.

Mesh.surface_mesh([min_size, max_size, ...])

Generate Surface mesh on the given scope.

Mesh.surface_mesh_with_size_controls([...])

Generate Surface mesh on the given scope with the given size controls.

Mesh.volume_mesh([volume_fill_type, ...])

Generate Volume mesh on the model.

Mesh.wrap([min_size, max_size, growth_rate, ...])

Wrap and remesh input.

Mesh.write(file_name)

Write or export files of different formats based on file extension.