ScopeDefinition#
- class ansys.meshing.prime.ScopeDefinition(model=None, entity_type=None, evaluation_type=None, part_expression=None, label_expression=None, zone_expression=None, json_data=None, **kwargs)#
ScopeDefinition to scope entities based on entity and evaluation type.
- Parameters:
- model: Model
Model to create a
ScopeDefinition
object with default parameters.- entity_type: ScopeEntity, optional
Entity type for which scope needs to be evaluated. The default is set to face zonelets.
- evaluation_type: ScopeEvaluationType, optional
Evaluation type to scope entities. The default is set to labels.
- part_expression: str, optional
Part expression to scope parts while evaluating scope.
- label_expression: str, optional
Label expression to scope entities when evaluation type is set to labels.
- zone_expression: str, optional
Zone expression to scope entities when evaluation type is set to zones.
- json_data: dict, optional
JSON dictionary to create a
ScopeDefinition
object with provided parameters.
Examples
>>> scope_definition = prime.ScopeDefinition(model = model)
Methods
Print the default values of
ScopeDefinition
object.ScopeDefinition.set_default
([entity_type, ...])Set the default values of the
ScopeDefinition
object.Attributes
Entity type for which scope needs to be evaluated.
Evaluation type to scope entities.
Label expression to scope entities when evaluation type is set to labels.
Part expression to scope parts while evaluating scope.
Zone expression to scope entities when evaluation type is set to zones.
Examples using ScopeDefinition#
Convert data when importing and exporting mesh and CAD formats
Mesh a mixing elbow for a flow analysis
Mesh a pipe T-section for structural thermal and fluid flow analysis
Wrap a toy car for a flow analysis
Mesh a PCB for structural thermal analysis
Mesh a saddle bracket for a structural analysis
Mesh a generic F1 car rear wing for external aero simulation
Mesh a generic PCB geometry with multiple hexa layers
Create a contact patch for wrapping between a wheel and ground interface
Mesh a set of solder balls (beta)