Gerris
|
Graphical utility functions. More...
Functions | |
void | gfs_draw_boundary_conditions (GfsDomain *domain, FILE *fp) |
void | gfs_draw_solid_boundaries (GfsDomain *domain, FILE *fp) |
void | gfs_draw_refined_boundaries (GfsDomain *domain, FILE *fp) |
gboolean | gfs_plane_cuts_cell (FttVector plane[3], FttCell *cell) |
guint | gfs_cut_cube_vertices (FttCell *cell, gint maxlevel, FttVector *p, FttVector *n, FttVector v[12], FttDirection d[12], GfsVariable *var, gdouble val[12]) |
Graphical utility functions.
guint gfs_cut_cube_vertices | ( | FttCell * | cell, |
gint | maxlevel, | ||
FttVector * | p, | ||
FttVector * | n, | ||
FttVector | v[12], | ||
FttDirection | d[12], | ||
GfsVariable * | var, | ||
gdouble | val[12] | ||
) |
cell | a #FttCell. |
maxlevel | the maximum level to consider (or -1). |
p | a point on the plane. |
n | the normal to the plane. |
v | where to return the vertices coordinates. |
d | where to return the direction. |
var | a #GfsVariable or NULL. |
val | where to return the values of var or NULL. |
Fills v, d and val with the coordinates/values of the vertices, intersections of cell with the plane defined by p and n.
The vertices are ordered consistently to define a consistent, oriented polygon.
void gfs_draw_boundary_conditions | ( | GfsDomain * | domain, |
FILE * | fp | ||
) |
domain | a fluid domain. |
fp | a file pointer. |
Outputs in fp an OOGL (geomview) representation of the boundary conditions of the domain.
void gfs_draw_refined_boundaries | ( | GfsDomain * | domain, |
FILE * | fp | ||
) |
domain | a fluid domain. |
fp | a file pointer. |
Outputs in fp an OOGL (geomview) representation of the boundaries of the refined domains.
void gfs_draw_solid_boundaries | ( | GfsDomain * | domain, |
FILE * | fp | ||
) |
domain | a fluid domain. |
fp | a file pointer. |
Outputs in fp an OOGL (geomview) representation of the solid boundaries of the domain.
gboolean gfs_plane_cuts_cell | ( | FttVector | plane[3], |
FttCell * | cell | ||
) |
plane | three points belonging to the plane. |
cell | a #FttCell. |