> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RASpringDashpotForce

### *class* RASpringDashpotForce

Rocky PrePost Scripting wrapper representing a Spring-Dashpot Force motion.

Retrieve this specific wrapper after setting the correct motion type on a [`RAMotion`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/2025-r2/RAMotion#generated.RAMotion). For
example:

```python theme={null}
motions = motion_frame.GetMotions()
motion_1 = motions.New()
motion_1.SetType('Spring-Dashpot Force')
spring_force = motion_1.GetTypeObject()
```

**Methods:**

| Name | Description |
| - | - |
| [`GetDashpotCoefficient`](#generated.RASpringDashpotForce.GetDashpotCoefficient)(\[unit]) | Get the value of "Dashpot Coefficient". |
| [`GetDirection`](#generated.RASpringDashpotForce.GetDirection)() | Get "Direction" as a string. |
| [`GetSpringCoefficient`](#generated.RASpringDashpotForce.GetSpringCoefficient)(\[unit]) | Get the value of "Spring Coefficient". |
| [`GetValidDirectionValues`](#generated.RASpringDashpotForce.GetValidDirectionValues)() | Get a list of all possible values for "Direction". |
| [`SetDashpotCoefficient`](#generated.RASpringDashpotForce.SetDashpotCoefficient)(value\[, unit]) | Set the value of "Dashpot Coefficient". |
| [`SetDirection`](#generated.RASpringDashpotForce.SetDirection)(value) | Set the value of "Direction". |
| [`SetSpringCoefficient`](#generated.RASpringDashpotForce.SetSpringCoefficient)(value\[, unit]) | Set the value of "Spring Coefficient". |

#### GetDashpotCoefficient(unit: str | None = None)

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 “N.s/m”.

#### GetDirection()

Get “Direction” as a string.

* **Returns:**
  The returned value will be one of \[‘none’, ‘x’, ‘y’, ‘xy’, ‘z’, ‘xz’, ‘yz’, ‘xyz’].

#### GetSpringCoefficient(unit: str | None = None)

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 “N/m”.

#### GetValidDirectionValues()

Get a list of all possible values for “Direction”.

* **Returns:**
  The returned list is \[‘none’, ‘x’, ‘y’, ‘xy’, ‘z’, ‘xz’, ‘yz’, ‘xyz’].

#### SetDashpotCoefficient(value: str | float, unit: str | 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 “N.s/m”.

#### SetDirection(value: str)

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.

#### SetSpringCoefficient(value: str | float, unit: str | 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 “N/m”.
