blob: 6ad0f904490cf90a85d87c2fd7c13b6a7a5a73dc (
plain)
1
2
3
4
5
6
7
8
9
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;
|