APBS
3.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
vmgrid.h
Go to the documentation of this file.
1
4
61
62
#ifndef _VMGRID_H_
63
#define _VMGRID_H_
64
65
#include "apbscfg.h"
66
67
#include "maloc/maloc.h"
68
69
#include "
generic/vhal.h
"
70
#include "
mg/vgrid.h
"
71
76
#define VMGRIDMAX 20
77
78
84
struct
sVmgrid
{
85
86
int
ngrids
;
87
Vgrid
*
grids
[
VMGRIDMAX
];
92
};
93
98
typedef
struct
sVmgrid
Vmgrid
;
99
105
VEXTERNC
Vmgrid
*
Vmgrid_ctor
();
106
113
VEXTERNC
int
Vmgrid_ctor2
(
Vmgrid
*thee);
114
123
VEXTERNC
int
Vmgrid_value
(
Vmgrid
*thee,
double
x[3],
double
*value);
124
130
VEXTERNC
void
Vmgrid_dtor
(
Vmgrid
**thee);
131
137
VEXTERNC
void
Vmgrid_dtor2
(
Vmgrid
*thee);
138
151
VEXTERNC
int
Vmgrid_addGrid
(
Vmgrid
*thee,
Vgrid
*grid);
152
153
167
VEXTERNC
int
Vmgrid_curvature
(
Vmgrid
*thee,
double
pt[3],
int
cflag,
168
double
*curv);
169
178
VEXTERNC
int
Vmgrid_gradient
(
Vmgrid
*thee,
double
pt[3],
double
grad[3] );
179
187
VEXTERNC
Vgrid
*
Vmgrid_getGridByNum
(
Vmgrid
*thee,
int
num);
188
196
VEXTERNC
Vgrid
*
Vmgrid_getGridByPoint
(
Vmgrid
*thee,
double
pt[3]);
197
198
#endif
199
Vgrid
struct sVgrid Vgrid
Declaration of the Vgrid class as the sVgrid structure.
Definition
vgrid.h:106
Vmgrid_addGrid
VEXTERNC int Vmgrid_addGrid(Vmgrid *thee, Vgrid *grid)
Add a grid to the hierarchy.
Definition
vmgrid.c:195
Vmgrid_dtor2
VEXTERNC void Vmgrid_dtor2(Vmgrid *thee)
FORTRAN stub object destructor.
Definition
vmgrid.c:101
Vmgrid_curvature
VEXTERNC int Vmgrid_curvature(Vmgrid *thee, double pt[3], int cflag, double *curv)
Get second derivative values at a point.
Definition
vmgrid.c:138
VMGRIDMAX
#define VMGRIDMAX
The maximum number of levels in the grid hiearchy.
Definition
vmgrid.h:76
Vmgrid_gradient
VEXTERNC int Vmgrid_gradient(Vmgrid *thee, double pt[3], double grad[3])
Get first derivative values at a point.
Definition
vmgrid.c:167
Vmgrid_ctor
VEXTERNC Vmgrid * Vmgrid_ctor()
Construct Vmgrid object.
Definition
vmgrid.c:57
Vmgrid_getGridByNum
VEXTERNC Vgrid * Vmgrid_getGridByNum(Vmgrid *thee, int num)
Get specific grid in hiearchy.
Vmgrid_ctor2
VEXTERNC int Vmgrid_ctor2(Vmgrid *thee)
Initialize Vmgrid object.
Definition
vmgrid.c:72
Vmgrid
struct sVmgrid Vmgrid
Declaration of the Vmgrid class as the Vgmrid structure.
Definition
vmgrid.h:98
Vmgrid_dtor
VEXTERNC void Vmgrid_dtor(Vmgrid **thee)
Object destructor.
Definition
vmgrid.c:88
Vmgrid_value
VEXTERNC int Vmgrid_value(Vmgrid *thee, double x[3], double *value)
Get potential value (from mesh or approximation) at a point.
Definition
vmgrid.c:107
Vmgrid_getGridByPoint
VEXTERNC Vgrid * Vmgrid_getGridByPoint(Vmgrid *thee, double pt[3])
Get grid in hiearchy which contains specified point or VNULL.
sVmgrid
Multiresoltion oracle for Cartesian mesh data.
Definition
vmgrid.h:84
sVmgrid::grids
Vgrid * grids[VMGRIDMAX]
Definition
vmgrid.h:87
sVmgrid::ngrids
int ngrids
Definition
vmgrid.h:86
vgrid.h
Potential oracle for Cartesian mesh data.
vhal.h
Contains generic macro definitions for APBS.
src
mg
vmgrid.h
Generated on
for APBS by
1.17.0