![]() | ![]() | ![]() | Gerris Flow Solver Reference Manual | ![]() |
---|
#include <gfs.h> #define GFS_BOX_CLASS (klass) #define GFS_BOX (obj) #define GFS_IS_BOX (obj) GfsBoxClass; GfsBox; GfsBoxClass* gfs_box_class (void); GfsBox* gfs_box_new (GfsBoxClass *klass);void gfs_box_set_pos (GfsBox *box, FttVector *pos);void gfs_box_set_relative_pos (GfsBox *box, GfsBox *reference, FttDirection d); GfsDomain* gfs_box_domain (GfsBox *box);
typedef struct { GtsGNode parent; FttCell * root; GtsObject * neighbor[FTT_NEIGHBORS]; guint id; int pid; gint size; } GfsBox;
void gfs_box_set_pos (GfsBox *box, FttVector *pos);
Recursively sets the position of the center of box
and of its
neighbors.
box : | a GfsBox. |
pos : | the new position of the center of the box. |
void gfs_box_set_relative_pos (GfsBox *box, GfsBox *reference, FttDirection d);
Recursively sets the position of the center of box
and of its
neighbors relative to the position of reference
in direction d
.
box : | a GfsBox. |
reference : | a reference GfsBox. |
d : | the direction in which |
<<< Fluid domains | Non-adaptive fluid box node >>> |