Skip to main content

Prime Mesh Python client library 2024 R2

ansys.meshing.prime.SizeControl

Last update: 17.07.2025

SizeControl.set_scope(scope)

Set the scope for size control to evaluate.

Size control uses scope to evaluate entities for which size field needs to be computed.

  • Parameters: scope : ScopeDefinition to scope entities for size field computation.
  • Returns: SetScopeResults : Return a SetScopeResults.
  • Return type: SetScopeResults

Examples

>>> size_control.set_scope(prime.ScopeDefinition(model=model,
>>>                        entity_type = ScopeEntity.FACEZONELETS,
>>>                        evaluation_type = ScopeEvaluationType.LABELS,
>>>                        label_expression = "inlet"))

Connect with Ansys