Skip to main content

Prime Mesh Python client library 2026 R1

set_scope

Last update: 02.04.2026

VolumeControl.set_scope(scope)

Sets the scope for volume control to evaluate.

Volume control uses scope to evaluate entities for which volume mesh needs to be generated.

Parameters:

scope

ScopeDefinition to scope entities for volume mesh generation.

Returns:

SetScopeResults

Returns a SetScopeResults.

Return type:

SetScopeResults

Examples

>>> volume_control.set_scope(prime.ScopeDefinition(model=model,
>>>                        entity_type = ScopeEntity.VOLUMES,
>>>                        evaluation_type = ScopeEvaluationType.ZONES,
>>>                        zone_expression = "vol_in"))

Connect with Ansys