Home > Libraries > GRAVITATIONAL library
GRAVITATIONAL library
General description
The purpose of this library is to demonstrate how gravitational interactions can be modelled to simulate planet systems.
For this library, we have developed a gravitational interaction port and two components, one to represent the bodies and the other to represent space where all the bodies are contained, managing all the interactions between them.
Ports description
- GravInter: This port type represents the gravitational interactions between bodies.
Components description
- Body: This component represents a body, mass and position.
- Eter: This component represents the universe, which manages all the interactions between bodies.
Gravitational example
SunEarthMoon
This model represents the interaction between the Sun, the Earth and the Moon during one year, assuming the Sun to be the centre of reference for the position of the other bodies.
For this example an "exp1" experiment has been created which consists in integrating the system for one year, in which the evolution of the radii of the orbits (Earth-Sun, Moon-Sun and Moon-Earth) in astronomical units (AU) can be seen with respect to time.


