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