Skip to main content

Prime Mesh Python client library 2026 R1 SP01

get_zone_by_name

Last update: 29.04.2026

Model.get_zone_by_name(zone_name)

Gets the zone with the provided 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