aboutsummaryrefslogtreecommitdiffstats
path: root/examples/classic_gravitation/model.modelica
blob: e0f7b60ad6c77b1158204154cfcf54d8e81851c6 (plain)
1
2
3
4
5
6
7
8
9
model ClassicGravitation
  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;