Skip to main content

Prime Mesh Python client library 2024 R2

ansys.meshing.prime.Model

Last update: 17.07.2025

Model.get_zone_by_name(zone_name)

Gets the zone by name.

  • Parameters: zone_name : Name of the zone.
  • Returns: int : Returns id of the zone.
  • Return type: int

Examples

>>> client = prime.launch_prime()
>>> model = client.model
>>> zone_id = model.get_zone_by_name("inlet")

Connect with Ansys