aboutsummaryrefslogtreecommitdiffstats
path: root/examples/lotka_volterra/model.modelica
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-11 17:19:41 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-11 17:19:41 -0800
commit640a433fa8be6c0269db148e08ccf2bfe03957ca (patch)
treed7b55f889a95e5ca23341318ea0756b2cff7e3f5 /examples/lotka_volterra/model.modelica
parentf9780935165b9535288bdac4e6b1171278fc5191 (diff)
downloadmodelthing-640a433fa8be6c0269db148e08ccf2bfe03957ca.tar.gz
modelthing-640a433fa8be6c0269db148e08ccf2bfe03957ca.zip
examples: expand on lotke-voltera
Diffstat (limited to 'examples/lotka_volterra/model.modelica')
-rw-r--r--examples/lotka_volterra/model.modelica5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/lotka_volterra/model.modelica b/examples/lotka_volterra/model.modelica
index 1ab761e..706ebc3 100644
--- a/examples/lotka_volterra/model.modelica
+++ b/examples/lotka_volterra/model.modelica
@@ -1,10 +1,11 @@
model LotkaVolterra
+ "Predator-Prey equations describing population dynamics of two biological species"
parameter Real alpha;
parameter Real beta;
parameter Real delta;
parameter Real gamma;
- Real x;
- Real y;
+ Real x "population of prey";
+ Real y "population of predator";
equation
der(x) = (alpha * x) - (beta * x * y);
der(y) = (delta * x * y) - (gamma * y);