RARegionOfInterestCylinder#
- class ansys.rocky.app.ra_region_of_interest_cylinder.RARegionOfInterestCylinder#
Bases:
ansys.rocky.app.ra_grid_process_element.RAGridProcessElementItem,ansys.rocky.app.motion._with_movement_mixin._WithMovementMixin,ansys.rocky.app._ra_orientation_mixin._RAOrientationMixinRocky PrePost Scripting wrapper for a single Cylinder geometry.
This wrapper class corresponds to an individual entry under the “Regions Of Interest” item on the project’s data tree. Regions Of Interest can be retrieved from the
RAStudyor theRARegionsOfInterestCollectionvia:roi_cylinder = study.GetElement('Cylinder <1>')
Overview#
Get the Region of Interest center taking motion in account. |
|
Get the value of “Center”. |
|
Set the values of “Center”. |
|
Get the value of “Final Angle”. |
|
Set the value of “Final Angle”. |
|
Get the value of “Height”. |
|
Set the value of “Height”. |
|
Get the value of “Initial Angle”. |
|
Set the value of “Initial Angle”. |
|
Get the value of “Internal Factor”. |
|
Set the value of “Internal Factor”. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Radius”. |
|
Set the value of “Radius”. |
Import detail#
from ansys.rocky.app.ra_region_of_interest_cylinder import RARegionOfInterestCylinder
Method detail#
- RARegionOfInterestCylinder.GetCenterAfterMovement(timestep: int) rocky30.base_types.Tuple3F#
Get the Region of Interest center taking motion in account.
- RARegionOfInterestCylinder.GetCenter(unit: str | None = None) list[float]#
Get the value of “Center”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RARegionOfInterestCylinder.SetCenter(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Center”.
- 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.
- RARegionOfInterestCylinder.GetFinalAngle(unit: str | None = None) float#
Get the value of “Final Angle”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “dega”.
- RARegionOfInterestCylinder.SetFinalAngle(value: str | float, unit: str | None = None) None#
Set the value of “Final 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”.
- RARegionOfInterestCylinder.GetHeight(unit: str | None = None) float#
Get the value of “Height”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RARegionOfInterestCylinder.SetHeight(value: str | float, unit: str | None = None) None#
Set the value of “Height”.
- 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 “m”.
- RARegionOfInterestCylinder.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”.
- RARegionOfInterestCylinder.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”.
- RARegionOfInterestCylinder.GetInternalFactor(unit: str | None = None) float#
Get the value of “Internal Factor”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “-“.
- RARegionOfInterestCylinder.SetInternalFactor(value: str | float, unit: str | None = None) None#
Set the value of “Internal Factor”.
- 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 “-“.
- RARegionOfInterestCylinder.SetName(value: str) None#
Set the value of “Name”.
- Parameters:
value – The value to set.
- RARegionOfInterestCylinder.GetRadius(unit: str | None = None) float#
Get the value of “Radius”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RARegionOfInterestCylinder.SetRadius(value: str | float, unit: str | None = None) None#
Set the value of “Radius”.
- 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 “m”.