RAWall#
- class ansys.rocky.app.ra_wall.RAWall#
Bases:
ansys.rocky.app.ra_base_geometry.RABaseGeometry,ansys.rocky.app.ra_addins.ElementWithAddins,ansys.rocky.app.motion._with_movement_mixin._WithMovementMixinRocky API Geometry model.
Overview#
Replace the geometry representation for a new one contained on a file. |
|
Whether the boundary is linked to a motion frame. |
|
Get the orientation angles. For more specific cases, see: “GetOrientationFromAngles”, |
|
The rotation is the angles in x, y and z of the rotation in the given unit. For more |
|
The rotation is the angles in x, y and z of the rotation. The default unit is dega. |
|
The rotation uses the angle and a vector, using unit and changes the orientation mode to |
|
Sets the rotation using three basis vector and changes the orientation mode to Basis Vector. |
|
Get the current orientation in the form of angles. |
|
Get the current orientation in the form of an angle and a vector. |
|
Get the current orientation in the form of three basis vectors. |
|
Get the value of “Capillary Friction Coefficient”. |
|
Set the value of “Capillary Friction Coefficient”. |
|
Get the value of “Disable Time”. |
|
Set the value of “Disable Time”. |
|
Get the value of “Enable Time”. |
|
Set the value of “Enable Time”. |
|
Get the value of “Pivot Point”. |
|
Set the values of “Pivot Point”. |
|
Get the value of “Temperature”. |
|
Set the value of “Temperature”. |
|
Get “Thermal Boundary Condition Type” as a string. |
|
Set the value of “Thermal Boundary Condition Type”. |
|
Get a list of all possible values for “Thermal Boundary Condition Type”. |
|
Get the value of “Translation”. |
|
Set the values of “Translation”. |
|
Get the value of “Triangle Size”. |
|
Set the value of “Triangle Size”. |
|
Get the value of “Boundary Mass”. |
|
Set the value of “Boundary Mass”. |
|
Get the value of “Gravity Center”. |
|
Set the values of “Gravity Center”. |
|
Get the value of “Moment X Direction”. |
|
Set the values of “Moment X Direction”. |
|
Get the value of “Moment Y Direction”. |
|
Set the values of “Moment Y Direction”. |
|
Get the value of “Moment Z Direction”. |
|
Set the values of “Moment Z Direction”. |
|
Get the value of “Principal Moment of Inertia”. |
|
Set the values of “Principal Moment of Inertia”. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Periodic Replication”. |
|
Set the value of “Periodic Replication”. |
|
Get the value of “Number of Replications”. |
|
Set the value of “Number of Replications”. |
|
Get the value of “Replicate Geometry”. |
|
Set the value of “Replicate Geometry”. |
|
Get the value of “Replicate Time”. |
|
Set the value of “Replicate Time”. |
|
Get “Sph Boundary Type” as a string. |
|
Set the value of “Sph Boundary Type”. |
|
Get a list of all possible values for “Sph Boundary Type”. |
|
Get the value of “Surface Tension Contact Angle”. |
|
Set the value of “Surface Tension Contact Angle”. |
|
Get the value of “Volume Shear Work Ratio”. |
|
Set the value of “Volume Shear Work Ratio”. |
|
Get “Wear Model” as a string. |
|
Set the value of “Wear Model”. |
|
Get a list of all possible values for “Wear Model”. |
|
Get the “Material”. |
|
Set the “Material”. |
|
Get all available Materials. |
Import detail#
from ansys.rocky.app.ra_wall import RAWall
Method detail#
- classmethod RAWall.GetWrappedClass()#
- RAWall.LoadFile(file_path: str, import_scale: float = 1.0, convert_yz: bool = False) None#
Replace the geometry representation for a new one contained on a file.
- Parameters:
file_path – The file path of the STL, DXF or XGL file to import.
import_scale – The import scale to be applied to the imported geometry.
convert_yz – Whether the y and z axes of the imported geometry should be converted.
- RAWall.HasMotionFrame() bool#
Whether the boundary is linked to a motion frame.
- Returns:
True if boundary is linked to a motion frame False otherwise
- RAWall.GetOrientation(unit: str = ...) rocky30.base_types.Tuple3F#
Get the orientation angles. For more specific cases, see: “GetOrientationFromAngles”, “GetOrientationFromAngleAndVector” and “GetOrientationFromBasisVector”.
- RAWall.SetOrientation(rotation: rocky30.base_types.Tuple3F, unit: str = ...) None#
The rotation is the angles in x, y and z of the rotation in the given unit. For more specific methods, see: “SetOrientationFromAngles”, “SetOrientationFromAngleAndVector” and “SetOrientationFromBasisVector”.
- RAWall.SetOrientationFromAngles(rotation: rocky30.base_types.Tuple3F, unit: str = ..., local_angles: bool = True, order: str = 'XYZ') None#
The rotation is the angles in x, y and z of the rotation. The default unit is dega. Additionally, local_angles can be used as well an order of the values via kwargs.
- RAWall.SetOrientationFromAngleAndVector(angle: float, vector: rocky30.base_types.Tuple3F, unit: str = ...) None#
The rotation uses the angle and a vector, using unit and changes the orientation mode to Angle and Vector.
- RAWall.SetOrientationFromBasisVector(vector_x: rocky30.base_types.Tuple3F, vector_y: rocky30.base_types.Tuple3F, vector_z: rocky30.base_types.Tuple3F) None#
Sets the rotation using three basis vector and changes the orientation mode to Basis Vector.
- RAWall.GetOrientationFromAngles(unit: str = ...) rocky30.base_types.Tuple3F#
Get the current orientation in the form of angles.
- RAWall.GetOrientationFromAngleAndVector(unit: str = ...) tuple[float, rocky30.base_types.Tuple3F]#
Get the current orientation in the form of an angle and a vector.
- RAWall.GetOrientationFromBasisVector() tuple[rocky30.base_types.Tuple3F, rocky30.base_types.Tuple3F, rocky30.base_types.Tuple3F]#
Get the current orientation in the form of three basis vectors.
- RAWall.SetCapillaryFrictionCoefficient(value: str | float) None#
Set the value of “Capillary Friction Coefficient”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAWall.GetDisableTime(unit: str | None = None) float#
Get the value of “Disable Time”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAWall.SetDisableTime(value: str | float, unit: str | None = None) None#
Set the value of “Disable Time”.
- 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 “s”.
- RAWall.GetEnableTime(unit: str | None = None) float#
Get the value of “Enable Time”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAWall.SetEnableTime(value: str | float, unit: str | None = None) None#
Set the value of “Enable Time”.
- 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 “s”.
- RAWall.GetPivotPoint(unit: str | None = None) list[float]#
Get the value of “Pivot Point”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RAWall.SetPivotPoint(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Pivot Point”.
- 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.
- RAWall.GetTemperature(unit: str | None = None) float#
Get the value of “Temperature”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “K”.
- RAWall.SetTemperature(value: str | float, unit: str | None = None) None#
Set the value of “Temperature”.
- 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 “K”.
- RAWall.GetThermalBoundaryConditionType() str#
Get “Thermal Boundary Condition Type” as a string.
- Returns:
The returned value will be one of [‘adiabatic’, ‘prescribed_temperature’, ‘cfd_coupled_temperature’].
- RAWall.SetThermalBoundaryConditionType(value: str) None#
Set the value of “Thermal Boundary Condition Type”.
- Parameters:
value – The value to set. Must be one of [‘adiabatic’, ‘prescribed_temperature’, ‘cfd_coupled_temperature’].
- Raises:
RockyApiError – If value is not a valid “Thermal Boundary Condition Type” option.
- RAWall.GetValidThermalBoundaryConditionTypeValues() list[str]#
Get a list of all possible values for “Thermal Boundary Condition Type”.
- Returns:
The returned list is [‘adiabatic’, ‘prescribed_temperature’, ‘cfd_coupled_temperature’].
- RAWall.GetTranslation(unit: str | None = None) list[float]#
Get the value of “Translation”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RAWall.SetTranslation(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Translation”.
- 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.
- RAWall.GetTriangleSize(unit: str | None = None) float#
Get the value of “Triangle Size”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RAWall.SetTriangleSize(value: str | float, unit: str | None = None) None#
Set the value of “Triangle Size”.
- 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”.
- RAWall.GetBoundaryMass(unit: str | None = None) float#
Get the value of “Boundary Mass”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “kg”.
- RAWall.SetBoundaryMass(value: str | float, unit: str | None = None) None#
Set the value of “Boundary Mass”.
- 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 “kg”.
- RAWall.GetGravityCenter(unit: str | None = None) list[float]#
Get the value of “Gravity Center”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RAWall.SetGravityCenter(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Gravity 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.
- RAWall.SetMomentXDirection(values: list[str | float]) None#
Set the values of “Moment X Direction”.
- 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.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAWall.SetMomentYDirection(values: list[str | float]) None#
Set the values of “Moment Y Direction”.
- 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.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAWall.SetMomentZDirection(values: list[str | float]) None#
Set the values of “Moment Z Direction”.
- 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.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAWall.GetPrincipalMomentOfInertia(unit: str | None = None) list[float]#
Get the value of “Principal Moment of Inertia”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “kg.m2”.
- RAWall.SetPrincipalMomentOfInertia(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Principal Moment of Inertia”.
- 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 “kg.m2”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAWall.SetPeriodicReplication(value: bool) None#
Set the value of “Periodic Replication”.
- Parameters:
value – The value to set.
- RAWall.SetNumberOfReplications(value: str | int) None#
Set the value of “Number of Replications”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAWall.SetReplicateGeometry(value: bool) None#
Set the value of “Replicate Geometry”.
- Parameters:
value – The value to set.
- RAWall.GetReplicateTime(unit: str | None = None) float#
Get the value of “Replicate Time”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAWall.SetReplicateTime(value: str | float, unit: str | None = None) None#
Set the value of “Replicate Time”.
- 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 “s”.
- RAWall.GetSphBoundaryType() str#
Get “Sph Boundary Type” as a string.
- Returns:
The returned value will be one of [‘free_slip’, ‘no_slip_laminar’, ‘no_slip_turbulent’].
- RAWall.SetSphBoundaryType(value: str) None#
Set the value of “Sph Boundary Type”.
- Parameters:
value – The value to set. Must be one of [‘free_slip’, ‘no_slip_laminar’, ‘no_slip_turbulent’].
- Raises:
RockyApiError – If value is not a valid “Sph Boundary Type” option.
- RAWall.GetValidSphBoundaryTypeValues() list[str]#
Get a list of all possible values for “Sph Boundary Type”.
- Returns:
The returned list is [‘free_slip’, ‘no_slip_laminar’, ‘no_slip_turbulent’].
- RAWall.GetSurfaceTensionContactAngle(unit: str | None = None) float#
Get the value of “Surface Tension Contact Angle”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “dega”.
- RAWall.SetSurfaceTensionContactAngle(value: str | float, unit: str | None = None) None#
Set the value of “Surface Tension Contact 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”.
- RAWall.GetVolumeShearWorkRatio(unit: str | None = None) float#
Get the value of “Volume Shear Work Ratio”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m3/J”.
- RAWall.SetVolumeShearWorkRatio(value: str | float, unit: str | None = None) None#
Set the value of “Volume Shear Work Ratio”.
- 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 “m3/J”.
- RAWall.GetWearModel() str#
Get “Wear Model” as a string.
- Returns:
The returned value will be one of [‘none’, ‘archard’, ‘custom’].
- RAWall.SetWearModel(value: str) None#
Set the value of “Wear Model”.
- Parameters:
value – The value to set. Must be one of [‘none’, ‘archard’, ‘custom’].
- Raises:
RockyApiError – If value is not a valid “Wear Model” option.
- RAWall.GetValidWearModelValues() list[str]#
Get a list of all possible values for “Wear Model”.
- Returns:
The returned list is [‘none’, ‘archard’, ‘custom’].
- RAWall.GetMaterial()#
Get the “Material”.
- Return type:
RASolidMaterial
- RAWall.SetMaterial(value) None#
Set the “Material”.
- :param unicode,
RASolidMaterialvalue: Either the API object wrapping the desired entity or its name.
- :param unicode,
- RAWall.GetAvailableMaterials()#
Get all available Materials.
- Return type:
List[
RASolidMaterial] A list ofRASolidMaterial.