Skip to content
PrescribeInitialPosition.md

PrescribeInitialPosition

Sets a specific initial angular position for a rotational spline connector.

This component establishes the starting angular position via a spline. At the very beginning of the simulation (time t=0), the angle spline.phi of the Spline subcomponent is set to the value provided by the parameter phi0. Throughout the simulation, the torque spline.tau of the spline is maintained at zero. This ensures that the component only dictates an initial state and does not introduce any rotational forces into the connected system. The defining equations are:

spline.phi(0)=phi0spline.tau=0

Usage

PrescribeInitialPosition(phi0)

Parameters:

NameDescriptionUnitsDefault value
phi0Desired initial angular position for the spline.rad

Connectors

  • spline - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)

Behavior

spline.tau(t)=0

Source

dyad
# Sets a specific initial angular position for a rotational spline connector.
#
# This component establishes the starting angular position via a `spline`.
# At the very beginning of the simulation (time t=0), the angle `spline.phi` of the
# `Spline` subcomponent is set to the value provided by the parameter `phi0`.
# Throughout the simulation, the torque `spline.tau` of the `spline` is maintained at zero.
# This ensures that the component only dictates an initial state and does not introduce
# any rotational forces into the connected system.
# The defining equations are:
# ```math
# \begin{align*}
# \text{spline.phi}(0) &= phi0 \\
# \text{spline.tau} &= 0
# \end{align*}
# ```
component PrescribeInitialPosition
  spline = Spline() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}]
  # Desired initial angular position for the spline.
  parameter phi0::Dyad.Angle
relations
  initial spline.phi = phi0
  spline.tau = 0
metadata {
  "Dyad": {
    "labels": [{"label": "initial phi = $(phi0)", "x": 500, "y": 800, "rot": 0}],
    "icons": {"default": "dyad://RotationalComponents/Pos-Speed-Acc-Move.svg"}
  }
}
end
Flattened Source
dyad
# Sets a specific initial angular position for a rotational spline connector.
#
# This component establishes the starting angular position via a `spline`.
# At the very beginning of the simulation (time t=0), the angle `spline.phi` of the
# `Spline` subcomponent is set to the value provided by the parameter `phi0`.
# Throughout the simulation, the torque `spline.tau` of the `spline` is maintained at zero.
# This ensures that the component only dictates an initial state and does not introduce
# any rotational forces into the connected system.
# The defining equations are:
# ```math
# \begin{align*}
# \text{spline.phi}(0) &= phi0 \\
# \text{spline.tau} &= 0
# \end{align*}
# ```
component PrescribeInitialPosition
  spline = Spline() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}]
  # Desired initial angular position for the spline.
  parameter phi0::Dyad.Angle
relations
  initial spline.phi = phi0
  spline.tau = 0
metadata {
  "Dyad": {
    "labels": [{"label": "initial phi = $(phi0)", "x": 500, "y": 800, "rot": 0}],
    "icons": {"default": "dyad://RotationalComponents/Pos-Speed-Acc-Move.svg"}
  }
}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.