aboutsummaryrefslogtreecommitdiffstats
path: root/examples/von_bertalanffy
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-11-29 23:23:24 -0800
committerbnewbold <bnewbold@robocracy.org>2016-11-29 23:23:24 -0800
commit4fd86a3325762b40962fe10301f8ce93ac99071a (patch)
tree65c35e010cf3d1dc5008a252636ffa49333a67ea /examples/von_bertalanffy
parenta4e33306fffe87cada79c8ba47d4172d39f3fba5 (diff)
downloadmodelthing-4fd86a3325762b40962fe10301f8ce93ac99071a.tar.gz
modelthing-4fd86a3325762b40962fe10301f8ce93ac99071a.zip
more examples (fixed syntax)
Diffstat (limited to 'examples/von_bertalanffy')
-rw-r--r--examples/von_bertalanffy/model.modelica7
-rw-r--r--examples/von_bertalanffy/page.md5
2 files changed, 12 insertions, 0 deletions
diff --git a/examples/von_bertalanffy/model.modelica b/examples/von_bertalanffy/model.modelica
new file mode 100644
index 0000000..4eb45f6
--- /dev/null
+++ b/examples/von_bertalanffy/model.modelica
@@ -0,0 +1,7 @@
+model VonBertalanffyGrowth
+ parameter Real K "growth rate";
+ parameter Real L "asymptotic final size";
+ Real l "length";
+equation
+ der(l) = K * (L - l);
+end VonBertalanffyGrowth;
diff --git a/examples/von_bertalanffy/page.md b/examples/von_bertalanffy/page.md
new file mode 100644
index 0000000..ea6e9f1
--- /dev/null
+++ b/examples/von_bertalanffy/page.md
@@ -0,0 +1,5 @@
+
+
+An alternative/solve variant is:
+
+ l = L * (1 - e^(-K * t))