diff options
author | bnewbold <bnewbold@robocracy.org> | 2017-01-16 16:01:24 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2017-01-16 16:01:24 -0800 |
commit | 6ab08f6b19734ac925ab9cafd567cb2f7735af6b (patch) | |
tree | 0e7a5cc7251bce880cf8f8055a915121742a58c2 /examples/newtonian_gravity/model.modelica | |
parent | c08fefa5e30e680e348acf7817201193b1a9634f (diff) | |
download | modelthing-6ab08f6b19734ac925ab9cafd567cb2f7735af6b.tar.gz modelthing-6ab08f6b19734ac925ab9cafd567cb2f7735af6b.zip |
update newtonian gravity page
Diffstat (limited to 'examples/newtonian_gravity/model.modelica')
-rw-r--r-- | examples/newtonian_gravity/model.modelica | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/newtonian_gravity/model.modelica b/examples/newtonian_gravity/model.modelica new file mode 100644 index 0000000..6ad0f90 --- /dev/null +++ b/examples/newtonian_gravity/model.modelica @@ -0,0 +1,10 @@ +model NewtonianGravitation + "Simple/classical Inverse-square law force" + parameter Real G=6.674e-11 "Gravitational Constant"; + Real m_1(unit="kilogram") "mass #1"; + Real m_2(unit="kilogram") "mass #2"; + Real r(unit="meter") "radius"; + Real F "force"; +equation + F = (G * m_1 * m_2) / (r^2); +end NewtonianGravitation; |