libgravix2  0.1.0
A fast simulation of attractive forces acting on point-like particles embedded onto the surface of a sphere.
pot.h File Reference

Gradient estimations of the potential. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void grvx_gradV (struct GrvxVec3D *q, const struct GrvxPlanets *planets)
 Gradient of the potential at position q. More...
 
double grvx_min_dist (const struct GrvxVec3D *q, const struct GrvxPlanets *planets)
 Minimal distance to any planet. More...
 

Detailed Description

Gradient estimations of the potential.

Function Documentation

◆ grvx_gradV()

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.

Parameters
qThe position where the gradient is evaluated. The result overwrites this variable.
planetsPlanets that generate the force field.
Here is the call graph for this function:

◆ grvx_min_dist()

double grvx_min_dist ( const struct GrvxVec3D q,
const struct GrvxPlanets planets 
)

Minimal distance to any planet.

Parameters
qThe position of the missile.
planetsPlanets that generate the force field.
Returns
Cosine of smallest angle between q and any planet.
Here is the call graph for this function:
Here is the caller graph for this function: