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