diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-11-02 19:50:13 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-11-02 19:50:13 -0700 |
commit | 57c8bea738990b9cd5efcfbc081249025fa5d608 (patch) | |
tree | c968254b68766a44e476a4b415d399241ac5b62d /examples/classic_gravitation | |
parent | 7d42b73a02d0b2b8964d6a5a633b9102f52c717b (diff) | |
download | modelthing-57c8bea738990b9cd5efcfbc081249025fa5d608.tar.gz modelthing-57c8bea738990b9cd5efcfbc081249025fa5d608.zip |
push more variable metadata into the model file
Diffstat (limited to 'examples/classic_gravitation')
-rw-r--r-- | examples/classic_gravitation/model.modelica | 10 |
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; |