Gerris
Classes | Functions

GfsAdapt

GfsEvent
Collaboration diagram for GfsAdapt:

Classes

 GfsAdaptFunction
 GfsAdaptStreamlineCurvature
 GfsAdaptThickness
 GfsAdaptVorticity
 GfsAdaptGradient
 GfsAdaptError

Functions

void gfs_domain_reshape (GfsDomain *domain, guint depth)
gboolean gfs_simulation_adapt (GfsSimulation *simulation)
void gfs_adapt_stats_init (GfsAdaptStats *s)
void gfs_adapt_stats_update (GfsAdaptStats *s)

Detailed Description

Base class for adaptive refinement criteria.

See also:

Syntax reference


Function Documentation

void gfs_adapt_stats_init ( GfsAdaptStats *  s)
Parameters:
sthe #GfsAdaptStats.

Initializes or reset s.

void gfs_adapt_stats_update ( GfsAdaptStats *  s)
Parameters:
sthe #GfsAdaptStats.

Updates s.

void gfs_domain_reshape ( GfsDomain *  domain,
guint  depth 
)
Parameters:
domaina #GfsDomain.
depththe depth of domain.

Force the grading of the tree hierarchy of domain, matches the boundaries, recomputes merged cells and applies the boundary conditions for all variables.

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean gfs_simulation_adapt ( GfsSimulation *  simulation)
Parameters:
simulationa #GfsSimulation.

Checks if any mesh adaptation is necessary and adapts the mesh using an OR combination of all the regular criteria defined in simulation->adapts.

If any one or several criteria are defined as "not" refinements, the mesh will be refined only if all of this criteria AND any other regular criterion is verified.

Returns:
TRUE if the mesh changed, FALSE otherwise.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Files Functions Variables