Zephyr Scientific Library (zscilib)
Functions
gravitation.h File Reference

API header file for gravitation in zscilib. More...

#include <zsl/zsl.h>

Go to the source code of this file.

Functions

int zsl_phy_grav_orb_period (zsl_real_t mp, zsl_real_t msat, zsl_real_t r, zsl_real_t *t)
 Calculates the orbital period of a satelite orbiting another body in seconds based on the distance between the bodies (r) and their masses. More...
 
int zsl_phy_grav_esc_vel (zsl_real_t mp, zsl_real_t r, zsl_real_t *v)
 Calculates the velocity needed for an object to overcome the gravitational pull of the planet it is on in meters per second based on the mass (mp) and the radius (r) of the planet. More...
 
int zsl_phy_grav_acc (zsl_real_t m, zsl_real_t r, zsl_real_t *a)
 Calculates the gravitational acceleration at any point created by an object of mass 'm' in meters per second squared. More...
 
int zsl_phy_grav_orb_vel (zsl_real_t mp, zsl_real_t r, zsl_real_t *v)
 Calculates the velocity of an object moving about a planet describing a circular orbit in meters per second based on the mass of the planet (mp) and the radius (r) of the orbit. More...
 
int zsl_phy_grav_force (zsl_real_t m1, zsl_real_t m2, zsl_real_t r, zsl_real_t *f)
 Calculates the gravitational force between two objects in newtons based on their masses (m1 and m2) and the distance they are separeted (r). More...
 
int zsl_phy_grav_pot_ener (zsl_real_t m1, zsl_real_t m2, zsl_real_t r, zsl_real_t *u)
 Calculates the gravitational potential energy between two objects in kilojoules based on their masses (m1 and m2) and the distance they are separated (r). More...
 

Detailed Description

API header file for gravitation in zscilib.

This file contains the zscilib gravitation APIs

Definition in file gravitation.h.