Data Structures | |
struct | sVmgrid |
Multiresoltion oracle for Cartesian mesh data. More... | |
Files | |
file | vmgrid.h |
Multiresolution oracle for Cartesian mesh data. | |
file | vmgrid.c |
Class Vmgrid methods. | |
Typedefs | |
typedef struct sVmgrid | Vmgrid |
Declaration of the Vmgrid class as the Vgmrid structure. | |
Functions | |
Vmgrid * | Vmgrid_ctor () |
Construct Vmgrid object. | |
int | Vmgrid_ctor2 (Vmgrid *thee) |
Initialize Vmgrid object. | |
int | Vmgrid_value (Vmgrid *thee, double x[3], double *value) |
Get potential value (from mesh or approximation) at a point. | |
void | Vmgrid_dtor (Vmgrid **thee) |
Object destructor. | |
void | Vmgrid_dtor2 (Vmgrid *thee) |
FORTRAN stub object destructor. | |
int | Vmgrid_addGrid (Vmgrid *thee, Vgrid *grid) |
Add a grid to the hierarchy. | |
int | Vmgrid_curvature (Vmgrid *thee, double pt[3], int cflag, double *curv) |
Get second derivative values at a point. | |
int | Vmgrid_gradient (Vmgrid *thee, double pt[3], double grad[3]) |
Get first derivative values at a point. | |
Vgrid * | Vmgrid_getGridByNum (Vmgrid *thee, int num) |
Get specific grid in hiearchy. | |
Vgrid * | Vmgrid_getGridByPoint (Vmgrid *thee, double pt[3]) |
Get grid in hiearchy which contains specified point or VNULL. |
Add a grid to the hierarchy.
thee | Pointer to object to be destroyed | |
grid | Grid to be added. As mentioned above, we would prefer to have the finest grid added first, next-finest second, ..., coarsest last -- this is how the grid will be searched when looking up values for points. However, this is not enforced to provide flexibility for cases where the dataset is decomposed into disjoint partitions, etc. |
Vmgrid* Vmgrid_ctor | ( | ) |
Construct Vmgrid object.
int Vmgrid_ctor2 | ( | Vmgrid * | thee | ) |
Initialize Vmgrid object.
thee | Newly allocated Vmgrid object |
int Vmgrid_curvature | ( | Vmgrid * | thee, | |
double | pt[3], | |||
int | cflag, | |||
double * | curv | |||
) |
Get second derivative values at a point.
thee | Pointer to Vmgrid object | |
pt | Location to evaluate second derivative | |
cflag |
| |
curv | Specified curvature value |
void Vmgrid_dtor | ( | Vmgrid ** | thee | ) |
Object destructor.
thee | Pointer to memory location of object to be destroyed |
void Vmgrid_dtor2 | ( | Vmgrid * | thee | ) |
FORTRAN stub object destructor.
thee | Pointer to object to be destroyed |
Get specific grid in hiearchy.
thee | Pointer to Vmgrid object | |
num | Number of grid in hiearchy |
Get grid in hiearchy which contains specified point or VNULL.
thee | Pointer to Vmgrid object | |
pt | Point to check |
int Vmgrid_gradient | ( | Vmgrid * | thee, | |
double | pt[3], | |||
double | grad[3] | |||
) |
Get first derivative values at a point.
thee | Pointer to Vmgrid object | |
pt | Location to evaluate gradient | |
grad | Gradient |
int Vmgrid_value | ( | Vmgrid * | thee, | |
double | x[3], | |||
double * | value | |||
) |
Get potential value (from mesh or approximation) at a point.
thee | Vmgrid obejct | |
x | Point at which to evaluate potential | |
value | Value of data at point x |