aboutsummaryrefslogtreecommitdiffstats
path: root/examples/classic_gravitation/model.modelica
diff options
context:
space:
mode:
Diffstat (limited to 'examples/classic_gravitation/model.modelica')
-rw-r--r--examples/classic_gravitation/model.modelica9
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;