RASpringDashpotMoment#
- class ansys.rocky.app.motion.ra_spring_dashpot_moment.RASpringDashpotMoment(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky PrePost Scripting wrapper representing a Spring-Dashpot Moment motion.
Retrieve this specific wrapper after setting the correct motion type on a
RAMotion. For example:motions = motion_frame.GetMotions() motion_1 = motions.New() motion_1.SetType('Spring-Dashpot Moment') spring_moment = motion_1.GetTypeObject()
Overview#
Get the value of “Dashpot Coefficient”. |
|
Set the value of “Dashpot Coefficient”. |
|
Get “Direction” as a string. |
|
Set the value of “Direction”. |
|
Get a list of all possible values for “Direction”. |
|
Get the value of “Spring Coefficient”. |
|
Set the value of “Spring Coefficient”. |
Import detail#
from ansys.rocky.app.motion.ra_spring_dashpot_moment import RASpringDashpotMoment
Method detail#
- classmethod RASpringDashpotMoment.GetWrappedClass()#
- classmethod RASpringDashpotMoment.GetClassName()#
- RASpringDashpotMoment.GetDashpotCoefficient(unit: str | None = None) float#
Get the value of “Dashpot Coefficient”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “Nms/rad”.
- RASpringDashpotMoment.SetDashpotCoefficient(value: str | float, unit: str | None = None) None#
Set the value of “Dashpot Coefficient”.
- 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 “Nms/rad”.
- RASpringDashpotMoment.GetDirection() str#
Get “Direction” as a string.
- Returns:
The returned value will be one of [‘none’, ‘x’, ‘y’, ‘xy’, ‘z’, ‘xz’, ‘yz’, ‘xyz’].
- RASpringDashpotMoment.SetDirection(value: str) None#
Set the value of “Direction”.
- 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 “Direction” option.
- RASpringDashpotMoment.GetValidDirectionValues() list[str]#
Get a list of all possible values for “Direction”.
- Returns:
The returned list is [‘none’, ‘x’, ‘y’, ‘xy’, ‘z’, ‘xz’, ‘yz’, ‘xyz’].
- RASpringDashpotMoment.GetSpringCoefficient(unit: str | None = None) float#
Get the value of “Spring Coefficient”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “Nm/rad”.
- RASpringDashpotMoment.SetSpringCoefficient(value: str | float, unit: str | None = None) None#
Set the value of “Spring Coefficient”.
- 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 “Nm/rad”.