PrescribeInitialAcceleration
IconPrescribeInitialAcceleration
Prescribes the initial acceleration to the associated connector
Usage
PrescribeInitialAcceleration(a0)
Parameters:
Name | Description | Units | Default value |
---|---|---|---|
a0 | m/s2 |
Connectors
flange
- (Flange
)
Variables
Name | Description | Units |
---|---|---|
a | m/s2 |
Behavior
\[ \begin{align} \frac{\mathrm{d}}{\mathrm{d}t} \frac{\mathrm{d} \mathtt{flange.s}\left( t \right)}{\mathrm{d}t} &= a\left( t \right) \\ \mathtt{flange.f}\left( t \right) &= 0 \end{align} \]
Source
# Prescribes the initial acceleration to the associated connector
component PrescribeInitialAcceleration
flange = Flange() [{
"JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
}]
parameter a0::Acceleration
variable a::Acceleration
relations
initial a = a0
der(der(flange.s)) = a
flange.f = 0
metadata {
"JuliaSim": {
"labels": [{"label": "initial a=$(a0)", "x": 500, "y": 800, "rot": 0}],
"icons": {"default": "jsml://TranslationalComponents/Position.svg"}
}
}
end
Flattened Source
# Prescribes the initial acceleration to the associated connector component PrescribeInitialAcceleration flange = Flange() [{ "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}} }] parameter a0::Acceleration variable a::Acceleration relations initial a = a0 der(der(flange.s)) = a flange.f = 0 metadata { "JuliaSim": { "labels": [{"label": "initial a=$(a0)", "x": 500, "y": 800, "rot": 0}], "icons": {"default": "jsml://TranslationalComponents/Position.svg"} } } end
Test Cases
Related
- Examples
- Experiments
- Analyses