#include "libgravix2/pot.h"
#include <math.h>
#include <stddef.h>
#include "libgravix2/api.h"
#include "libgravix2/config.h"
#include "libgravix2/linalg.h"
#include "libgravix2/planet.h"
#include "libgravix2/constants.h"
#include "libgravix2/helpers.h"
Functions | |
void | grvx_gradV (struct GrvxVec3D *x, const struct GrvxPlanets *planets) |
Gradient of the potential at position q . More... | |
double | grvx_min_dist (const struct GrvxVec3D *x, const struct GrvxPlanets *planets) |
Minimal distance to any planet. More... | |
double | grvx_v_esc (void) |
Escape velocity \(p_\pi\) for isolated planets. More... | |
double | grvx_v_scrcl (double r) |
Velocity of a missile on a small circle for isolated planets. More... | |
void grvx_gradV | ( | struct GrvxVec3D * | q, |
const struct GrvxPlanets * | planets | ||
) |
Gradient of the potential at position q
.
The gradient is evaluated at position q
and the resulting vectors is stored in q
.
q | The position where the gradient is evaluated. The result overwrites this variable. |
planets | Planets that generate the force field. |
double grvx_min_dist | ( | const struct GrvxVec3D * | q, |
const struct GrvxPlanets * | planets | ||
) |
Minimal distance to any planet.
q | The position of the missile. |
planets | Planets that generate the force field. |
q
and any planet.