diff options
author | Siddharth11235 | 2019-09-03 18:09:16 +0530 |
---|---|---|
committer | Siddharth11235 | 2019-09-03 18:09:16 +0530 |
commit | b4b6aa36e3486a3544acc52419149b5671f841e9 (patch) | |
tree | 66c1783158f23e6d21c77324156fc57e18d4ac67 /RotationalSMD_Concat.mo | |
parent | f5266f634f4fb4fd39933a83551a01cf446256b8 (diff) | |
download | OpenModelica_HIL-master.tar.gz OpenModelica_HIL-master.tar.bz2 OpenModelica_HIL-master.zip |
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; |