---
url: /dyad/stable/stdlib/TranslationalComponents/components/Components.PrescribeInitialAcceleration.md
description: >-
  Dyad Components.PrescribeInitialAcceleration docs.  Defines a specific initial
  acceleration for a one-dimensional mechanical translational flange.
---

# `Components.PrescribeInitialAcceleration` {#Components.PrescribeInitialAcceleration}

Defines a specific initial acceleration for a one-dimensional mechanical translational flange.

This component kinematically prescribes an initial acceleration via its `flange` connector. The value of this initial acceleration is determined by the parameter `a0`. The component exerts no force on the connected system. The governing equations are:

$$\begin{align\*}
a(0) &= a0 \\
\frac{d^2 flange.s}{dt^2} &= a \\
flange.f &= 0
\end{align\*}$$

## Usage {#Usage}

`TranslationalComponents.Components.PrescribeInitialAcceleration(a0)`

## Parameters: {#Parameters:}

| Name |                                           Description | Units | Default value |
| ----:| -----------------------------------------------------:| -----:| -------------:|
| `a0` | Prescribed initial acceleration value for the flange. |  m/s2 |               |

## Connectors {#Connectors}

* `flange` - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. ([`Flange`](/stdlib/Dyad/connectors/Flange#Flange))

## Variables {#Variables}

| Name |                                                    Description | Units |
| ----:| --------------------------------------------------------------:| -----:|
|  `a` | Internal variable representing the acceleration of the flange. |  m/s2 |

## Behavior {#Behavior}

$$ \begin{align}
\frac{\mathrm{d}^{2}\mathtt{flange.s}\left( t \right)}{\mathrm{d}t^{2}} &= a\left( t \right) \\
\mathtt{flange.f}\left( t \right) &= 0
\end{align}
$$

## Source {#Source}

````dyad
"""
Defines a specific initial acceleration for a one-dimensional mechanical translational flange.

This component kinematically prescribes an initial acceleration via its `flange` connector.
The value of this initial acceleration is determined by the parameter `a0`.
The component exerts no force on the connected system.
The governing equations are:
```math
\begin{align*}
a(0) &= a0 \\
\frac{d^2 flange.s}{dt^2} &= a \\
flange.f &= 0
\end{align*}
```
"""
component PrescribeInitialAcceleration
  "Mechanical translational connector to which the initial acceleration is applied."
  flange = Flange() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Prescribed initial acceleration value for the flange."
  parameter a0::Acceleration
  "Internal variable representing the acceleration of the flange."
  variable a::Acceleration
relations
  initial a = a0
  der(der(flange.s)) = a
  flange.f = 0
metadata {
  "Dyad": {
    "labels": [
      {"label": "$(instance)", "layer": "icon", "x": 500, "y": 677, "rot": 0},
      {"label": "initial a=$(a0)", "x": 500, "y": 173, "rot": 0}
    ],
    "icons": {"default": "dyad://TranslationalComponents/Position.svg"}
  }
}
end
````

````dyad
"""
Defines a specific initial acceleration for a one-dimensional mechanical translational flange.

This component kinematically prescribes an initial acceleration via its `flange` connector.
The value of this initial acceleration is determined by the parameter `a0`.
The component exerts no force on the connected system.
The governing equations are:
```math
\begin{align*}
a(0) &= a0 \\
\frac{d^2 flange.s}{dt^2} &= a \\
flange.f &= 0
\end{align*}
```
"""
component PrescribeInitialAcceleration
  "Mechanical translational connector to which the initial acceleration is applied."
  flange = Flange() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Prescribed initial acceleration value for the flange."
  parameter a0::Acceleration
  "Internal variable representing the acceleration of the flange."
  variable a::Acceleration
relations
  initial a = a0
  der(der(flange.s)) = a
  flange.f = 0
metadata {
  "Dyad": {
    "labels": [
      {"label": "$(instance)", "layer": "icon", "x": 500, "y": 677, "rot": 0},
      {"label": "initial a=$(a0)", "x": 500, "y": 173, "rot": 0}
    ],
    "icons": {"default": "dyad://TranslationalComponents/Position.svg"}
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
