Xcos demos: add a Modelica demo to simulate a second order rotational system 21/16521/1
Ahmed Sami AlBassiouni [Thu, 28 May 2015 08:48:58 +0000 (10:48 +0200)]
 * Example from http://book.xogeny.com/behavior/equations/mechanical/

Change-Id: I757b8e17a1bf7a698b2d38209c6dd26b5e3074a0

scilab/modules/xcos/demos/ModelicaBlocks/Rotational_system.zcos [new file with mode: 0644]
scilab/modules/xcos/demos/ModelicaBlocks/modelica_rotational_system.dem.sce [new file with mode: 0644]
scilab/modules/xcos/demos/modelica_demos.dem.gateway.sce

diff --git a/scilab/modules/xcos/demos/ModelicaBlocks/Rotational_system.zcos b/scilab/modules/xcos/demos/ModelicaBlocks/Rotational_system.zcos
new file mode 100644 (file)
index 0000000..4d4d807
Binary files /dev/null and b/scilab/modules/xcos/demos/ModelicaBlocks/Rotational_system.zcos differ
diff --git a/scilab/modules/xcos/demos/ModelicaBlocks/modelica_rotational_system.dem.sce b/scilab/modules/xcos/demos/ModelicaBlocks/modelica_rotational_system.dem.sce
new file mode 100644 (file)
index 0000000..4137a82
--- /dev/null
@@ -0,0 +1,6 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2015 - Scilab Enterprises - Paul Bignier
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+xcos("SCI/modules/xcos/demos/ModelicaBlocks/Rotational_system.zcos");
index 95a0f5f..4fda6af 100644 (file)
@@ -11,7 +11,8 @@ if with_modelica_compiler() then
     _("Chaos Modelica")         , "ModelicaBlocks/modelica_chaos.dem.sce"          ; ..
     _("Hydraulics blocks")      , "ModelicaBlocks/modelica_hydraulics.dem.sce"     ; ..
     _("RLC circuit")            , "ModelicaBlocks/modelica_rlc_circuit.dem.sce"    ; ..
-    _("Heat conduction in a rod")              , "ModelicaBlocks/modelica_heat_conduction.dem.sce"
+    _("Heat conduction in a rod")              , "ModelicaBlocks/modelica_heat_conduction.dem.sce"; ..
+    _("Second order rotational system")        , "ModelicaBlocks/modelica_rotational_system.dem.sce"
     ];
 
     subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2);