Gerris
Functions

graphic.c File Reference

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])

Detailed Description

Graphical utility functions.


Function Documentation

guint gfs_cut_cube_vertices ( FttCell *  cell,
gint  maxlevel,
FttVector *  p,
FttVector *  n,
FttVector  v[12],
FttDirection  d[12],
GfsVariable *  var,
gdouble  val[12] 
)
Parameters:
cella #FttCell.
maxlevelthe maximum level to consider (or -1).
pa point on the plane.
nthe normal to the plane.
vwhere to return the vertices coordinates.
dwhere to return the direction.
vara #GfsVariable or NULL.
valwhere 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.

Returns:
the number of vertices (0 if the plane does not cut the cell).

Here is the caller graph for this function:

void gfs_draw_boundary_conditions ( GfsDomain *  domain,
FILE *  fp 
)
Parameters:
domaina fluid domain.
fpa 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 
)
Parameters:
domaina fluid domain.
fpa file pointer.

Outputs in fp an OOGL (geomview) representation of the boundaries of the refined domains.

Here is the call graph for this function:

void gfs_draw_solid_boundaries ( GfsDomain *  domain,
FILE *  fp 
)
Parameters:
domaina fluid domain.
fpa file pointer.

Outputs in fp an OOGL (geomview) representation of the solid boundaries of the domain.

Here is the call graph for this function:

gboolean gfs_plane_cuts_cell ( FttVector  plane[3],
FttCell *  cell 
)
Parameters:
planethree points belonging to the plane.
cella #FttCell.
Returns:
TRUE if plane cuts cell, FALSE otherwise.

Here is the call graph for this function:

 All Data Structures Files Functions Variables