diff options
Diffstat (limited to 'RotationalSMD_Concat.mo')
-rw-r--r-- | RotationalSMD_Concat.mo | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/RotationalSMD_Concat.mo b/RotationalSMD_Concat.mo new file mode 100644 index 0000000..89419bb --- /dev/null +++ b/RotationalSMD_Concat.mo @@ -0,0 +1,17 @@ +model RotationalSMD_Concat + "State space version of a rotationals spring-mass-damper system using concatenation" + parameter Real J1=0.4; + parameter Real J2=1.0; + parameter Real c1=11; + parameter Real c2=5; + parameter Real d1=0.2; + parameter Real d2=1.0; + parameter Real S[2,2] = [-1/J1, 1/J1; 1/J2, -1/J2]; + extends LTI(nx=4, nu=0, ny=0, x0={0, 1, 0, 0}, + A=[zeros(2, 2), identity(2); + c1*S+[0,0;0,-c2/J2], d1*S+[0,0;0,-d2/J2]], + B=fill(0, 4, 0), C=fill(0, 0, 4), + D=fill(0, 0, 0)); +equation + u = fill(0, 0); +end RotationalSMD_Concat; |