RADomainSettings#
- class ansys.rocky.app.ra_domain_settings.RADomainSettings(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky PrePost Scripting wrapper for Domain Setings properties.
This wrapper corresponds to the “Domain Settings” item on a project’s data tree. Access it from the
RAStudywith:domain_settings = study.GetDomainSettings()
Overview#
Reset the domain settings coordinate limits based on the geometry bounding box. |
|
Get the value of “Coordinate Limits Max Values”. |
|
Set the values of “Coordinate Limits Max Values”. |
|
Get the value of “Coordinate Limits Min Values”. |
|
Set the values of “Coordinate Limits Min Values”. |
|
Get the value of “Use Boundary Limits”. |
|
Set the value of “Use Boundary Limits”. |
|
Set the value of “Use Boundary Limits” to True. |
|
Set the value of “Use Boundary Limits” to False. |
|
Check if the “Use Boundary Limits” is enabled. |
|
Get the value of “Periodic Limits Max Coordinates”. |
|
Set the values of “Periodic Limits Max Coordinates”. |
|
Get the value of “Periodic Limits Min Coordinates”. |
|
Set the values of “Periodic Limits Min Coordinates”. |
|
Get the value of “Periodic At Geometry Limits”. |
|
Set the value of “Periodic At Geometry Limits”. |
|
Set the value of “Periodic At Geometry Limits” to True. |
|
Set the value of “Periodic At Geometry Limits” to False. |
|
Check if the “Periodic At Geometry Limits” is enabled. |
|
Get “Cartesian Periodic Directions” as a string. |
|
Set the value of “Cartesian Periodic Directions”. |
|
Get a list of all possible values for “Cartesian Periodic Directions”. |
|
Get the value of “Initial Angle”. |
|
Set the value of “Initial Angle”. |
|
Get the value of “Number of Divisions”. |
|
Set the value of “Number of Divisions”. |
|
Get “Cylindrical Periodic Directions” as a string. |
|
Set the value of “Cylindrical Periodic Directions”. |
|
Get a list of all possible values for “Cylindrical Periodic Directions”. |
|
Get “Domain Type” as a string. |
|
Set the value of “Domain Type”. |
|
Get a list of all possible values for “Domain Type”. |
Import detail#
from ansys.rocky.app.ra_domain_settings import RADomainSettings
Method detail#
- classmethod RADomainSettings.GetWrappedClass()#
- RADomainSettings.GetCoordinateLimitsMinMax()#
- RADomainSettings.ResetDomainToGeometriesLimits() None#
Reset the domain settings coordinate limits based on the geometry bounding box.
- RADomainSettings.GetCoordinateLimitsMaxValues(unit: str | None = None) list[float]#
Get the value of “Coordinate Limits Max Values”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RADomainSettings.SetCoordinateLimitsMaxValues(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Coordinate Limits Max Values”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RADomainSettings.GetCoordinateLimitsMinValues(unit: str | None = None) list[float]#
Get the value of “Coordinate Limits Min Values”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RADomainSettings.SetCoordinateLimitsMinValues(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Coordinate Limits Min Values”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RADomainSettings.SetUseBoundaryLimits(value: bool) None#
Set the value of “Use Boundary Limits”.
- Parameters:
value – The value to set.
- RADomainSettings.GetPeriodicLimitsMaxCoordinates(unit: str | None = None) list[float]#
Get the value of “Periodic Limits Max Coordinates”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RADomainSettings.SetPeriodicLimitsMaxCoordinates(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Periodic Limits Max Coordinates”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RADomainSettings.GetPeriodicLimitsMinCoordinates(unit: str | None = None) list[float]#
Get the value of “Periodic Limits Min Coordinates”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RADomainSettings.SetPeriodicLimitsMinCoordinates(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Periodic Limits Min Coordinates”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RADomainSettings.GetPeriodicAtGeometryLimits() bool#
Get the value of “Periodic At Geometry Limits”.
- RADomainSettings.SetPeriodicAtGeometryLimits(value: bool) None#
Set the value of “Periodic At Geometry Limits”.
- Parameters:
value – The value to set.
- RADomainSettings.EnablePeriodicAtGeometryLimits() None#
Set the value of “Periodic At Geometry Limits” to True.
- RADomainSettings.DisablePeriodicAtGeometryLimits() None#
Set the value of “Periodic At Geometry Limits” to False.
- RADomainSettings.IsPeriodicAtGeometryLimitsEnabled() bool#
Check if the “Periodic At Geometry Limits” is enabled.
- RADomainSettings.GetCartesianPeriodicDirections() str#
Get “Cartesian Periodic Directions” as a string.
- Returns:
The returned value will be one of [‘NONE’, ‘X’, ‘Y’, ‘XY’, ‘Z’, ‘XZ’, ‘YZ’, ‘XYZ’].
- RADomainSettings.SetCartesianPeriodicDirections(value: str) None#
Set the value of “Cartesian Periodic Directions”.
- Parameters:
value – The value to set. Must be one of [‘NONE’, ‘X’, ‘Y’, ‘XY’, ‘Z’, ‘XZ’, ‘YZ’, ‘XYZ’].
- Raises:
RockyApiError – If value is not a valid “Cartesian Periodic Directions” option.
- RADomainSettings.GetValidCartesianPeriodicDirectionsValues() list[str]#
Get a list of all possible values for “Cartesian Periodic Directions”.
- Returns:
The returned list is [‘NONE’, ‘X’, ‘Y’, ‘XY’, ‘Z’, ‘XZ’, ‘YZ’, ‘XYZ’].
- RADomainSettings.GetInitialAngle(unit: str | None = None) float#
Get the value of “Initial Angle”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “dega”.
- RADomainSettings.SetInitialAngle(value: str | float, unit: str | None = None) None#
Set the value of “Initial Angle”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “dega”.
- RADomainSettings.SetNumberOfDivisions(value: str | int) None#
Set the value of “Number of Divisions”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RADomainSettings.GetCylindricalPeriodicDirections() str#
Get “Cylindrical Periodic Directions” as a string.
- Returns:
The returned value will be one of [‘X’, ‘Y’, ‘Z’].
- RADomainSettings.SetCylindricalPeriodicDirections(value: str) None#
Set the value of “Cylindrical Periodic Directions”.
- Parameters:
value – The value to set. Must be one of [‘X’, ‘Y’, ‘Z’].
- Raises:
RockyApiError – If value is not a valid “Cylindrical Periodic Directions” option.
- RADomainSettings.GetValidCylindricalPeriodicDirectionsValues() list[str]#
Get a list of all possible values for “Cylindrical Periodic Directions”.
- Returns:
The returned list is [‘X’, ‘Y’, ‘Z’].
- RADomainSettings.GetDomainType() str#
Get “Domain Type” as a string.
- Returns:
The returned value will be one of [‘NONE’, ‘CARTESIAN’, ‘CYLINDRICAL’].
- RADomainSettings.SetDomainType(value: str) None#
Set the value of “Domain Type”.
- Parameters:
value – The value to set. Must be one of [‘NONE’, ‘CARTESIAN’, ‘CYLINDRICAL’].
- Raises:
RockyApiError – If value is not a valid “Domain Type” option.