RAPhysics#
- class ansys.rocky.app.ra_physics.RAPhysics(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky PrePost Scripting wrapper to manipulate physics properties.
This class represents the “Physics” item on the project data tree. To get the
RAPhysicsfrom aRAStudy, use:physics = study.GetPhysics()
Overview#
Get “Adhesion Model” as a string. |
|
Set the value of “Adhesion Model”. |
|
Get a list of all possible values for “Adhesion Model”. |
|
Get the value of “Close Packing Volume Fraction”. |
|
Set the value of “Close Packing Volume Fraction”. |
|
Get the value of “Enable Coarse Grain Modeling”. |
|
Set the value of “Enable Coarse Grain Modeling”. |
|
Get the value of “Enable Thermal Model”. |
|
Set the value of “Enable Thermal Model”. |
|
Get the value of “Gravity Start Time”. |
|
Set the value of “Gravity Start Time”. |
|
Get the value of “Gravity Stop Time”. |
|
Set the value of “Gravity Stop Time”. |
|
Get the value of “Gravity X Direction”. |
|
Set the value of “Gravity X Direction”. |
|
Get the value of “Gravity Y Direction”. |
|
Set the value of “Gravity Y Direction”. |
|
Get the value of “Gravity Z Direction”. |
|
Set the value of “Gravity Z Direction”. |
|
Get “Impact Energy Model” as a string. |
|
Set the value of “Impact Energy Model”. |
|
Get a list of all possible values for “Impact Energy Model”. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get “Normal Force Model” as a string. |
|
Set the value of “Normal Force Model”. |
|
Get a list of all possible values for “Normal Force Model”. |
|
Get “Rolling Resistance Model” as a string. |
|
Set the value of “Rolling Resistance Model”. |
|
Get a list of all possible values for “Rolling Resistance Model”. |
|
Get the value of “Exponent Limit”. |
|
Set the value of “Exponent Limit”. |
|
Get the value of “Volume Fraction Limit”. |
|
Set the value of “Volume Fraction Limit”. |
|
Get “Restitution Model” as a string. |
|
Set the value of “Restitution Model”. |
|
Get a list of all possible values for “Restitution Model”. |
|
Get the value of “Search Distance Multiplier”. |
|
Set the value of “Search Distance Multiplier”. |
|
Get “Sph Thermal Transfer Model” as a string. |
|
Set the value of “Sph Thermal Transfer Model”. |
|
Get a list of all possible values for “Sph Thermal Transfer Model”. |
|
Get the value of “Numerical Softening Factor”. |
|
Set the value of “Numerical Softening Factor”. |
|
Get “Tangential Force Model” as a string. |
|
Set the value of “Tangential Force Model”. |
|
Get a list of all possible values for “Tangential Force Model”. |
|
Get “Thermal Correction Model” as a string. |
|
Set the value of “Thermal Correction Model”. |
|
Get a list of all possible values for “Thermal Correction Model”. |
|
Get the value of “Update Distance Multiplier”. |
|
Set the value of “Update Distance Multiplier”. |
|
Get the value of “Use Radl Et Al”. |
|
Set the value of “Use Radl Et Al”. |
Import detail#
from ansys.rocky.app.ra_physics import RAPhysics
Property detail#
- property RAPhysics.enable_thermal_model#
Method detail#
- classmethod RAPhysics.GetWrappedClass()#
- RAPhysics.GetAdhesionModel() str#
Get “Adhesion Model” as a string.
- Returns:
The returned value will be one of [‘none’, ‘constant’, ‘linear’, ‘JKR’, ‘custom’].
- RAPhysics.SetAdhesionModel(value: str) None#
Set the value of “Adhesion Model”.
- Parameters:
value – The value to set. Must be one of [‘none’, ‘constant’, ‘linear’, ‘JKR’, ‘custom’].
- Raises:
RockyApiError – If value is not a valid “Adhesion Model” option.
- RAPhysics.GetValidAdhesionModelValues() list[str]#
Get a list of all possible values for “Adhesion Model”.
- Returns:
The returned list is [‘none’, ‘constant’, ‘linear’, ‘JKR’, ‘custom’].
- RAPhysics.SetClosePackingVolumeFraction(value: str | float) None#
Set the value of “Close Packing Volume Fraction”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAPhysics.SetEnableCoarseGrainModeling(value: bool) None#
Set the value of “Enable Coarse Grain Modeling”.
- Parameters:
value – The value to set.
- RAPhysics.SetEnableThermalModel(value: bool) None#
Set the value of “Enable Thermal Model”.
- Parameters:
value – The value to set.
- RAPhysics.GetGravityStartTime(unit: str | None = None) float#
Get the value of “Gravity Start Time”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAPhysics.SetGravityStartTime(value: str | float, unit: str | None = None) None#
Set the value of “Gravity Start 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”.
- RAPhysics.GetGravityStopTime(unit: str | None = None) float#
Get the value of “Gravity Stop Time”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAPhysics.SetGravityStopTime(value: str | float, unit: str | None = None) None#
Set the value of “Gravity Stop 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”.
- RAPhysics.GetGravityXDirection(unit: str | None = None) float#
Get the value of “Gravity X Direction”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s2”.
- RAPhysics.SetGravityXDirection(value: str | float, unit: str | None = None) None#
Set the value of “Gravity X Direction”.
- 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/s2”.
- RAPhysics.GetGravityYDirection(unit: str | None = None) float#
Get the value of “Gravity Y Direction”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s2”.
- RAPhysics.SetGravityYDirection(value: str | float, unit: str | None = None) None#
Set the value of “Gravity Y Direction”.
- 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/s2”.
- RAPhysics.GetGravityZDirection(unit: str | None = None) float#
Get the value of “Gravity Z Direction”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s2”.
- RAPhysics.SetGravityZDirection(value: str | float, unit: str | None = None) None#
Set the value of “Gravity Z Direction”.
- 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/s2”.
- RAPhysics.GetImpactEnergyModel() str#
Get “Impact Energy Model” as a string.
- Returns:
The returned value will be one of [‘default’, ‘custom’].
- RAPhysics.SetImpactEnergyModel(value: str) None#
Set the value of “Impact Energy Model”.
- Parameters:
value – The value to set. Must be one of [‘default’, ‘custom’].
- Raises:
RockyApiError – If value is not a valid “Impact Energy Model” option.
- RAPhysics.GetValidImpactEnergyModelValues() list[str]#
Get a list of all possible values for “Impact Energy Model”.
- Returns:
The returned list is [‘default’, ‘custom’].
- RAPhysics.GetNormalForceModel() str#
Get “Normal Force Model” as a string.
- Returns:
The returned value will be one of [‘linear_hysteresis’, ‘linear_elastic_viscous’, ‘damped_hertzian’, ‘custom’].
- RAPhysics.SetNormalForceModel(value: str) None#
Set the value of “Normal Force Model”.
- Parameters:
value – The value to set. Must be one of [‘linear_hysteresis’, ‘linear_elastic_viscous’, ‘damped_hertzian’, ‘custom’].
- Raises:
RockyApiError – If value is not a valid “Normal Force Model” option.
- RAPhysics.GetValidNormalForceModelValues() list[str]#
Get a list of all possible values for “Normal Force Model”.
- Returns:
The returned list is [‘linear_hysteresis’, ‘linear_elastic_viscous’, ‘damped_hertzian’, ‘custom’].
- RAPhysics.GetRollingResistanceModel() str#
Get “Rolling Resistance Model” as a string.
- Returns:
The returned value will be one of [‘type_1’, ‘type_3’, ‘none’, ‘custom’].
- RAPhysics.SetRollingResistanceModel(value: str) None#
Set the value of “Rolling Resistance Model”.
- Parameters:
value – The value to set. Must be one of [‘type_1’, ‘type_3’, ‘none’, ‘custom’].
- Raises:
RockyApiError – If value is not a valid “Rolling Resistance Model” option.
- RAPhysics.GetValidRollingResistanceModelValues() list[str]#
Get a list of all possible values for “Rolling Resistance Model”.
- Returns:
The returned list is [‘type_1’, ‘type_3’, ‘none’, ‘custom’].
- RAPhysics.SetExponentLimit(value: str | float) None#
Set the value of “Exponent Limit”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAPhysics.SetVolumeFractionLimit(value: str | float) None#
Set the value of “Volume Fraction Limit”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAPhysics.GetRestitutionModel() str#
Get “Restitution Model” as a string.
- Returns:
The returned value will be one of [‘constant’, ‘velocity_dependent’].
- RAPhysics.SetRestitutionModel(value: str) None#
Set the value of “Restitution Model”.
- Parameters:
value – The value to set. Must be one of [‘constant’, ‘velocity_dependent’].
- Raises:
RockyApiError – If value is not a valid “Restitution Model” option.
- RAPhysics.GetValidRestitutionModelValues() list[str]#
Get a list of all possible values for “Restitution Model”.
- Returns:
The returned list is [‘constant’, ‘velocity_dependent’].
- RAPhysics.SetSearchDistanceMultiplier(value: str | float) None#
Set the value of “Search Distance Multiplier”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAPhysics.GetSphThermalTransferModel() str#
Get “Sph Thermal Transfer Model” as a string.
- Returns:
The returned value will be one of [‘cleary’, ‘custom’].
- RAPhysics.SetSphThermalTransferModel(value: str) None#
Set the value of “Sph Thermal Transfer Model”.
- Parameters:
value – The value to set. Must be one of [‘cleary’, ‘custom’].
- Raises:
RockyApiError – If value is not a valid “Sph Thermal Transfer Model” option.
- RAPhysics.GetValidSphThermalTransferModelValues() list[str]#
Get a list of all possible values for “Sph Thermal Transfer Model”.
- Returns:
The returned list is [‘cleary’, ‘custom’].
- RAPhysics.SetNumericalSofteningFactor(value: str | float) None#
Set the value of “Numerical Softening Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAPhysics.GetTangentialForceModel() str#
Get “Tangential Force Model” as a string.
- Returns:
The returned value will be one of [‘elastic_coulomb’, ‘coulomb_limit’, ‘mindlin_deresiewicz’, ‘custom’].
- RAPhysics.SetTangentialForceModel(value: str) None#
Set the value of “Tangential Force Model”.
- Parameters:
value – The value to set. Must be one of [‘elastic_coulomb’, ‘coulomb_limit’, ‘mindlin_deresiewicz’, ‘custom’].
- Raises:
RockyApiError – If value is not a valid “Tangential Force Model” option.
- RAPhysics.GetValidTangentialForceModelValues() list[str]#
Get a list of all possible values for “Tangential Force Model”.
- Returns:
The returned list is [‘elastic_coulomb’, ‘coulomb_limit’, ‘mindlin_deresiewicz’, ‘custom’].
- RAPhysics.GetThermalCorrectionModel() str#
Get “Thermal Correction Model” as a string.
- Returns:
The returned value will be one of [‘none’, ‘morris_et_al_area’, ‘morris_et_al_area_time’].
- RAPhysics.SetThermalCorrectionModel(value: str) None#
Set the value of “Thermal Correction Model”.
- Parameters:
value – The value to set. Must be one of [‘none’, ‘morris_et_al_area’, ‘morris_et_al_area_time’].
- Raises:
RockyApiError – If value is not a valid “Thermal Correction Model” option.
- RAPhysics.GetValidThermalCorrectionModelValues() list[str]#
Get a list of all possible values for “Thermal Correction Model”.
- Returns:
The returned list is [‘none’, ‘morris_et_al_area’, ‘morris_et_al_area_time’].