aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-11-02 19:50:13 -0700
committerbnewbold <bnewbold@robocracy.org>2016-11-02 19:50:13 -0700
commit57c8bea738990b9cd5efcfbc081249025fa5d608 (patch)
treec968254b68766a44e476a4b415d399241ac5b62d /examples
parent7d42b73a02d0b2b8964d6a5a633b9102f52c717b (diff)
downloadmodelthing-57c8bea738990b9cd5efcfbc081249025fa5d608.tar.gz
modelthing-57c8bea738990b9cd5efcfbc081249025fa5d608.zip
push more variable metadata into the model file
Diffstat (limited to 'examples')
-rw-r--r--examples/classic_gravitation/model.modelica10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/classic_gravitation/model.modelica b/examples/classic_gravitation/model.modelica
index 3abb6e1..e0f7b60 100644
--- a/examples/classic_gravitation/model.modelica
+++ b/examples/classic_gravitation/model.modelica
@@ -1,9 +1,9 @@
model ClassicGravitation
- parameter Real G=6.674e-11 "Gravitational Constant";
- Real m1 "mass #1";
- Real m2 "mass #2";
- Real r "radius";
- Real F "force";
+ parameter Real G=6.674e-11 "Gravitational Constant";
+ Real m1(unit="kilogram") "mass #1";
+ Real m2(unit="kilogram") "mass #2";
+ Real r(unit="meter") "radius";
+ Real F "force";
equation
F = (G * m1 * m2) / (r^2);
end ClassicGravitation;