aboutsummaryrefslogtreecommitdiffstats
path: root/examples/van_der_pol_oscillator/model.modelica
diff options
context:
space:
mode:
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;