Zephyr Scientific Library (zscilib)
gravitation.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020 Kevin Townsend (KTOWN)
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
22 #ifndef ZEPHYR_INCLUDE_ZSL_GRAVITATION_H_
23 #define ZEPHYR_INCLUDE_ZSL_GRAVITATION_H_
24 
25 #include <zsl/zsl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
45  zsl_real_t r, zsl_real_t *t);
46 
60 
73 
88 
103  zsl_real_t *f);
104 
119  zsl_real_t *u);
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
125 #endif /* ZEPHYR_INCLUDE_ZSL_GRAVITATION_H_ */
126  /* End of gravitation group */
zsl_phy_grav_orb_vel
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 ...
zsl_phy_grav_pot_ener
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...
zsl_phy_grav_acc
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...
zsl_phy_grav_force
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) a...
zsl_phy_grav_esc_vel
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 o...
zsl_phy_grav_orb_period
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 be...
zsl.h
API header file for zscilib.
zsl_real_t
double zsl_real_t
Definition: zsl.h:51