aboutsummaryrefslogtreecommitdiffstats
path: root/examples/minimal3.modelica
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-10-25 20:18:50 -0700
committerbnewbold <bnewbold@robocracy.org>2016-10-25 20:18:50 -0700
commit8eb63f635c801f236e8e8992f75d473c7e3d85c8 (patch)
treea8c98f31df0b559fbf2ad46dc23f03bde4e0c823 /examples/minimal3.modelica
parent235e1abc21b54a60913adbe1062b8ad3a0bd09d6 (diff)
downloadmodelthing-8eb63f635c801f236e8e8992f75d473c7e3d85c8.tar.gz
modelthing-8eb63f635c801f236e8e8992f75d473c7e3d85c8.zip
more minimal examples
Diffstat (limited to 'examples/minimal3.modelica')
-rw-r--r--examples/minimal3.modelica8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/minimal3.modelica b/examples/minimal3.modelica
new file mode 100644
index 0000000..1e9a211
--- /dev/null
+++ b/examples/minimal3.modelica
@@ -0,0 +1,8 @@
+model MinimalModel
+ parameter Real a;
+ Real b;
+equation
+ connect(a, b);
+ a = 1;
+ b = (abs(a) + 2) / 4;
+end FirstOrder;