Model#

class ansys.meshing.prime.Model(comm, id, object_id, name)#

Model is the nucleus of Prime. Model forms the base and contains all the information about Prime.

You can access any information in Prime only through Model. Model allows you to query TopoData, ControlData, Parts, SizeFields and more.

Methods

Model.activate_volumetric_size_fields(...)

Activate the sizefields identified by the given sizefield ids.

Model.create_zone(suggested_name, type)

Creates zone for the given zone type.

Model.deactivate_volumetric_size_fields(...)

Deactivate the sizefields identified by the given sizefield ids.

Model.delete_parts(part_ids)

Deletes the parts and its contents.

Model.delete_volumetric_size_fields(...)

Delete the sizefields identified by the given sizefield ids.

Model.delete_zone(zone_id)

Deletes zone identified with the given id.

Model.get_active_volumetric_size_fields()

Get the active sizefield ids.

Model.get_global_sizing_params()

Gets the GlobalSizingParams.

Model.get_num_threads()

Get the number of threads enabled for multithreaded operation.

Model.get_part(id)

Gets the part by id.

Model.get_part_by_name(name)

Gets the part by name.

Model.get_volumetric_size_fields()

Get the sizefield ids.

Model.get_zone_by_name(zone_name)

Gets the zone by name.

Model.get_zone_name(id)

Get the name of given zone.

Model.merge_parts(part_ids, params)

Merges given parts into one.

Model.set_global_sizing_params(params)

Sets the global sizing parameters.

Model.set_num_threads(num)

Sets the number of threads for multithreaded operation.

Model.set_suggested_zone_name(id, name)

Sets the unique name for zone with given id based on the given suggested name.

Model.start_distributed_meshing()

Enables distributed meshing mode.

Attributes

Model.control_data

Gets the control data of a model.

Model.id

Get the id of Model.

Model.material_point_data

Get Material Point Data.

Model.name

Get the name of Model.

Model.parts

Gets the list of parts of a model.

Model.python_logger

Get PyPrimeMesh's Logger instance.