aboutsummaryrefslogtreecommitdiffstats
path: root/examples/van_der_pol_oscillator/model.modelica
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-16 16:24:09 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-16 16:28:35 -0800
commit6c9ec4f093ecfa48fe3a4a3fa99de16c5676d7dc (patch)
tree09402fb4b41e36473bba33ca1604a07d0d2c6ea3 /examples/van_der_pol_oscillator/model.modelica
parent6ab08f6b19734ac925ab9cafd567cb2f7735af6b (diff)
downloadmodelthing-6c9ec4f093ecfa48fe3a4a3fa99de16c5676d7dc.tar.gz
modelthing-6c9ec4f093ecfa48fe3a4a3fa99de16c5676d7dc.zip
update remaining models
Diffstat (limited to 'examples/van_der_pol_oscillator/model.modelica')
-rw-r--r--examples/van_der_pol_oscillator/model.modelica8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/van_der_pol_oscillator/model.modelica b/examples/van_der_pol_oscillator/model.modelica
new file mode 100644
index 0000000..c1aa99b
--- /dev/null
+++ b/examples/van_der_pol_oscillator/model.modelica
@@ -0,0 +1,8 @@
+model VanDerPolOscillator
+ parameter Real mu "dampening strength";
+ Real x;
+ Real y;
+equation
+ der(x) = y;
+ der(y) = mu * y * (1 - x^2) - x;
+end VanDerPolOscillator;