Logo Tesseroids 1.0: User Manual and API Documentation

src/c/grav_prism.c File Reference

Functions that calculate the gravitational potential and its first and second derivatives for the rectangular prism. More...

#include <math.h>
#include "utils.h"
#include "constants.h"
#include "grav_prism.h"

Functions

double prism_pot (PRISM prism, double xp, double yp, double zp)
 Calculates potential caused by a right rectangular prism.
double prism_gx (PRISM prism, double xp, double yp, double zp)
 Calculates gx component caused by a right rectangular prism.
double prism_gy (PRISM prism, double xp, double yp, double zp)
 Calculates gy component caused by a right rectangular prism.
double prism_gz (PRISM prism, double xp, double yp, double zp)
 Calculates gz component caused by a right rectangular prism.
double prism_gxx (PRISM prism, double xp, double yp, double zp)
 Calculates gxx component caused by a right rectangular prism.
double prism_gxy (PRISM prism, double xp, double yp, double zp)
 Calculates gxy component caused by a right rectangular prism.
double prism_gxz (PRISM prism, double xp, double yp, double zp)
 Calculates gxz component caused by a right rectangular prism.
double prism_gyy (PRISM prism, double xp, double yp, double zp)
 Calculates gyy component caused by a right rectangular prism.
double prism_gyz (PRISM prism, double xp, double yp, double zp)
 Calculates gyz component caused by a right rectangular prism.
double prism_gzz (PRISM prism, double xp, double yp, double zp)
 Calculates gzz component caused by a right rectangular prism.

Detailed Description

Functions that calculate the gravitational potential and its first and second derivatives for the rectangular prism.

Using the formulas in Nagy et al. (2000).

The coordinate system used is that of the article, ie:

x -> North y -> East z -> Down

References

Todo:
Figure out why gz and pot fail when calculating bellow the prism
Author:
Leonardo Uieda
Date:
01 March 2010

Function Documentation

double prism_gx ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gx component caused by a right rectangular prism.

Input values in SI units and returns values in mGal!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_gxx ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gxx component caused by a right rectangular prism.

Input values in SI units and returns values in Eotvos!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_gxy ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gxy component caused by a right rectangular prism.

Input values in SI units and returns values in Eotvos!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_gxz ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gxz component caused by a right rectangular prism.

Input values in SI units and returns values in Eotvos!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_gy ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gy component caused by a right rectangular prism.

Input values in SI units and returns values in mGal!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_gyy ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gyy component caused by a right rectangular prism.

Input values in SI units and returns values in Eotvos!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_gyz ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gyz component caused by a right rectangular prism.

Input values in SI units and returns values in Eotvos!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_gz ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gz component caused by a right rectangular prism.

Input values in SI units and returns values in mGal!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_gzz ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates gzz component caused by a right rectangular prism.

Input values in SI units and returns values in Eotvos!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
double prism_pot ( PRISM  prism,
double  xp,
double  yp,
double  zp 
)

Calculates potential caused by a right rectangular prism.

Input and output values in SI units!

Parameters:
prism data structure describing the prism
xp x coordinate of the computation point
yp y coordinate of the computation point
zp z coordinate of the computation point
Returns:
field calculated at P
Generated on Tue Apr 26 12:17:07 2011 for Tesseroids 1.0: User manual and API documentation by doxygen 1.6.3