Damper
IconDamper
Linear 1D translational damper
This component extends from PartialCompliantWithRelativeStates
Usage
Damper(d)
Parameters:
Name | Description | Units | Default value |
---|---|---|---|
d | N.s/m |
Connectors
Variables
Name | Description | Units |
---|---|---|
s_rel | Relative distance between flange_b and flange_a | m |
v_rel | Relative velocity between flange_b and flange_a | m/s |
f | N | |
lossPower | W |
Behavior
\[ \begin{align} \mathtt{s\_rel}\left( t \right) &= \mathtt{flange\_b.s}\left( t \right) - \mathtt{flange\_a.s}\left( t \right) \\ \mathtt{v\_rel}\left( t \right) &= \frac{\mathrm{d} \mathtt{s\_rel}\left( t \right)}{\mathrm{d}t} \\ \mathtt{flange\_b.f}\left( t \right) &= f\left( t \right) \\ \mathtt{flange\_a.f}\left( t \right) &= - f\left( t \right) \\ f\left( t \right) &= d \mathtt{v\_rel}\left( t \right) \\ \mathtt{lossPower}\left( t \right) &= \mathtt{v\_rel}\left( t \right) f\left( t \right) \end{align} \]
Source
# Linear 1D translational damper
component Damper
extends PartialCompliantWithRelativeStates
parameter d::TranslationalDampingConstant
variable f::JSML.Force
variable lossPower::Power
relations
f = d*v_rel
lossPower = f*v_rel
metadata {
"JuliaSim": {"icons": {"default": "jsml://TranslationalComponents/Damper.svg"}}
}
end
Flattened Source
# Linear 1D translational damper component Damper flange_a = Flange() [{ "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}} }] flange_b = Flange() [{ "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}} }] # Relative distance between `flange_b` and `flange_a` variable s_rel::Distance # Relative velocity between `flange_b` and `flange_a` variable v_rel::Velocity # Forces between the flanges variable f::JSML.Force parameter d::TranslationalDampingConstant variable lossPower::Power relations s_rel = flange_b.s-flange_a.s v_rel = der(s_rel) flange_b.f = f flange_a.f = -f f = d*v_rel lossPower = f*v_rel metadata { "JuliaSim": {"icons": {"default": "jsml://TranslationalComponents/Damper.svg"}} } end
Test Cases
Related
- Examples
- Experiments
- Analyses
- Tests