summaryrefslogtreecommitdiff
path: root/RotationalSMD_Concat.mo
diff options
context:
space:
mode:
authorSiddharth112352019-09-03 18:09:16 +0530
committerSiddharth112352019-09-03 18:09:16 +0530
commitb4b6aa36e3486a3544acc52419149b5671f841e9 (patch)
tree66c1783158f23e6d21c77324156fc57e18d4ac67 /RotationalSMD_Concat.mo
parentf5266f634f4fb4fd39933a83551a01cf446256b8 (diff)
downloadOpenModelica_HIL-master.tar.gz
OpenModelica_HIL-master.tar.bz2
OpenModelica_HIL-master.zip
Pushing entire Modelica HIL Tasks repoHEADmaster
Diffstat (limited to 'RotationalSMD_Concat.mo')
-rw-r--r--RotationalSMD_Concat.mo17
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;