| Gerris Flow Solver Reference Manual |
|---|
#include <gfs.h> #define GFS_REFINE_DISTANCE_CLASS (klass) #define GFS_REFINE_DISTANCE (obj) #define GFS_IS_REFINE_DISTANCE (obj) struct GfsRefineDistanceClass; struct GfsRefineDistance; GfsRefineDistanceClass* gfs_refine_distance_class (void);
For each candidate cell, GfsRefineDistance computes the distance from the cell center to the given surface. It then passes this distance as t argument to the user-defined function in order to get the maximum level of refinement allowed.
The syntax in parameter files is as follows:
[ GfsRefine ] surface.gts
struct GfsRefineDistance {
GfsRefine parent;
GtsSurface * surface;
GNode * stree;
};| <<< Solid refinement | Source terms >>> |