Gerris
Classes | Functions

GfsBoundary

Collaboration diagram for GfsBoundary:

Classes

 GfsBoundaryGradient
 GfsBoundaryInflowConstant
 GfsBoundaryOutflow
 GfsBoundaryPeriodic

Functions

GfsBoundary * gfs_boundary_new (GfsBoundaryClass *klass, GfsBox *box, FttDirection d)
void gfs_boundary_update (GfsBoundary *boundary)
void gfs_boundary_send (GfsBoundary *boundary)
void gfs_boundary_receive (GfsBoundary *boundary, FttTraverseFlags flags, gint max_depth)
void gfs_boundary_synchronize (GfsBoundary *boundary)
GfsBc * gfs_boundary_lookup_bc (GfsBoundary *b, GfsVariable *v)
void gfs_boundary_set_default_bc (GfsBoundary *b, GfsBc *bc)
void gfs_variable_set_default_bc (GfsVariable *v, GfsBc *bc)
void gfs_boundary_add_bc (GfsBoundary *b, GfsBc *bc)

Detailed Description

One of the boundaries of a #GfsBox.

See also:

Syntax reference


Function Documentation

void gfs_boundary_add_bc ( GfsBoundary *  b,
GfsBc *  bc 
)
Parameters:
ba #GfsBoundary.
bca #GfsBc.

Adds boundary condition bc to b.

GfsBc* gfs_boundary_lookup_bc ( GfsBoundary *  b,
GfsVariable *  v 
)
Parameters:
ba #GfsBoundary.
va #GfsVariable.
Returns:
the #GfsBc associated with b and v.
GfsBoundary* gfs_boundary_new ( GfsBoundaryClass *  klass,
GfsBox *  box,
FttDirection  d 
)
Parameters:
klassa #GfsBoundaryClass.
boxa #GfsBox.
da direction.

Creates a new boundary of type klass for box in direction d.

This function fails if box has already a boundary in direction d.

Returns:
a new #GfsBoundary.

Here is the caller graph for this function:

void gfs_boundary_receive ( GfsBoundary *  boundary,
FttTraverseFlags  flags,
gint  max_depth 
)
Parameters:
boundarya #GfsBoundary.
flagsthe traversal flags.
max_depththe maximum depth of the traversal.

Calls the receive() method of boundary.

void gfs_boundary_send ( GfsBoundary *  boundary)
Parameters:
boundarya #GfsBoundary.

Calls the send() method of boundary.

void gfs_boundary_set_default_bc ( GfsBoundary *  b,
GfsBc *  bc 
)
Parameters:
ba #GfsBoundary.
bca #GfsBc.

Sets the default boundary condition for b to bc.

void gfs_boundary_synchronize ( GfsBoundary *  boundary)
Parameters:
boundarya #GfsBoundary.

Calls the synchronize() method of boundary.

void gfs_boundary_update ( GfsBoundary *  boundary)
Parameters:
boundarya #GfsBoundary.

Calls the update() method of boundary.

void gfs_variable_set_default_bc ( GfsVariable *  v,
GfsBc *  bc 
)
Parameters:
va #GfVariable.
bca #GfsBc.

Sets the default boundary condition for v to bc.

 All Data Structures Files Functions Variables