> ## 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.

# RAVibration

### *class* RAVibration

Rocky PrePost Scripting wrapper representing a Vibration motion.

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

```python theme={null}
motions = motion_frame.GetMotions()
motion_1 = motions.New()
motion_1.SetType('Vibration')
vibration = motion_1.GetTypeObject()
```

**Methods:**

| [`GetAmplitudeVariation`](#generated.RAVibration.GetAmplitudeVariation)(\[unit]) | Get the value of "Amplitude Variation". |
| - | - |
| [`GetDirection`](#generated.RAVibration.GetDirection)() | Get the value of "Direction". |
| [`GetFrequencyVariation`](#generated.RAVibration.GetFrequencyVariation)(\[unit]) | Get the value of "Frequency Variation". |
| [`GetInitialAmplitude`](#generated.RAVibration.GetInitialAmplitude)(\[unit]) | Get the value of "Initial Amplitude". |
| [`GetInitialFrequency`](#generated.RAVibration.GetInitialFrequency)(\[unit]) | Get the value of "Initial Frequency". |
| [`GetInitialPhase`](#generated.RAVibration.GetInitialPhase)(\[unit]) | Get the value of "Initial Phase". |
| [`SetAmplitudeVariation`](#generated.RAVibration.SetAmplitudeVariation)(value\[, unit]) | Set the value of "Amplitude Variation". |
| [`SetDirection`](#generated.RAVibration.SetDirection)(values) | Set the values of "Direction". |
| [`SetFrequencyVariation`](#generated.RAVibration.SetFrequencyVariation)(value\[, unit]) | Set the value of "Frequency Variation". |
| [`SetInitialAmplitude`](#generated.RAVibration.SetInitialAmplitude)(value\[, unit]) | Set the value of "Initial Amplitude". |
| [`SetInitialFrequency`](#generated.RAVibration.SetInitialFrequency)(value\[, unit]) | Set the value of "Initial Frequency". |
| [`SetInitialPhase`](#generated.RAVibration.SetInitialPhase)(value\[, unit]) | Set the value of "Initial Phase". |

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

Get the value of “Amplitude Variation”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.

#### GetDirection()

Get the value of “Direction”.

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

Get the value of “Frequency Variation”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “Hz/s”.

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

Get the value of “Initial Amplitude”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “m”.

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

Get the value of “Initial Frequency”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “Hz”.

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

Get the value of “Initial Phase”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “rad”.

#### SetAmplitudeVariation(value: str | float, unit: str | None = None)

Set the value of “Amplitude Variation”.

* **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/s”.

#### SetDirection(values: List\[str | float])

Set the values of “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.

#### SetFrequencyVariation(value: str | float, unit: str | None = None)

Set the value of “Frequency Variation”.

* **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 “Hz/s”.

#### SetInitialAmplitude(value: str | float, unit: str | None = None)

Set the value of “Initial Amplitude”.

* **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”.

#### SetInitialFrequency(value: str | float, unit: str | None = None)

Set the value of “Initial Frequency”.

* **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 “Hz”.

#### SetInitialPhase(value: str | float, unit: str | None = None)

Set the value of “Initial Phase”.

* **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 “rad”.
