diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-09-16 20:45:22 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-09-16 20:45:22 -0700 |
commit | fdebceb92fe819cdcfeb9c1288102f3b97ab3ff6 (patch) | |
tree | fde73c0ddf13becc2dc686c6703e34ad69785cef /examples/classic_gravitation/model.modelica | |
parent | 7b29df28d3fd18cf6118862ef0cc2a88c1e3c803 (diff) | |
download | modelthing-fdebceb92fe819cdcfeb9c1288102f3b97ab3ff6.tar.gz modelthing-fdebceb92fe819cdcfeb9c1288102f3b97ab3ff6.zip |
update format of initial examples
Diffstat (limited to 'examples/classic_gravitation/model.modelica')
-rw-r--r-- | examples/classic_gravitation/model.modelica | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/classic_gravitation/model.modelica b/examples/classic_gravitation/model.modelica new file mode 100644 index 0000000..6504ecf --- /dev/null +++ b/examples/classic_gravitation/model.modelica @@ -0,0 +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"; +equation + F = (G * m1 * m2) / (r^2) +end ClassicGravitation; |