Solid boundaries.
More...
Functions |
void | gfs_cell_fluid (FttCell *cell) |
gboolean | gfs_set_2D_solid_fractions_from_surface (FttCell *cell, GfsGenericSurface *s) |
gboolean | gfs_solid_is_thin (FttCell *cell, GfsGenericSurface *s) |
void | gfs_cell_init_solid_fractions_from_children (FttCell *cell) |
guint | gfs_init_solid_fractions_leaves (GfsDomain *domain, GSList *i, GfsVariable *status) |
void | gfs_init_solid_fractions_from_children (GfsDomain *domain, gboolean destroy_solid, FttCellCleanupFunc cleanup, gpointer data, GfsVariable *status) |
guint | gfs_domain_init_solid_fractions (GfsDomain *domain, GSList *i, gboolean destroy_solid, FttCellCleanupFunc cleanup, gpointer data, GfsVariable *status) |
gboolean | gfs_cell_check_solid_fractions (FttCell *root) |
void | gfs_domain_init_fraction (GfsDomain *domain, GfsGenericSurface *s, GfsVariable *c) |
void | gfs_cell_cm (const FttCell *cell, FttVector *cm) |
void | gfs_solid_normal (const FttCell *cell, FttVector *n) |
void | gfs_face_ca (const FttCellFace *face, FttVector *ca) |
void | gfs_solid_coarse_fine (FttCell *parent, GfsDomain *domain) |
Detailed Description
Function Documentation
gboolean gfs_cell_check_solid_fractions |
( |
FttCell * |
root | ) |
|
- Parameters:
-
root | the root #FttCell of the cell tree to check. |
Checks the consistency of the solid fractions of each cell of the cell tree relative to the neighboring solid fractions.
- Returns:
- TRUE if the solid fractions are consistent, FALSE otherwise.
void gfs_cell_cm |
( |
const FttCell * |
cell, |
|
|
FttVector * |
cm |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
cm | a #FttVector. |
Fills cm with the coordinates of the center of mass of cell.
void gfs_cell_fluid |
( |
FttCell * |
cell | ) |
|
- Parameters:
-
Sets cell and all its descendants as full fluid cells.
void gfs_cell_init_solid_fractions_from_children |
( |
FttCell * |
cell | ) |
|
- Parameters:
-
Uses the values of the solid fractions of the children of cell to compute the values of its solid fractions.
This function fails if cell is a leaf of the cell tree.
void gfs_domain_init_fraction |
( |
GfsDomain * |
domain, |
|
|
GfsGenericSurface * |
s, |
|
|
GfsVariable * |
c |
|
) |
| |
- Parameters:
-
domain | a #GfsDomain. |
s | a surface defining the interface boundary. |
c | a #GfsVariable. |
Initializes the fraction c of the interface s contained in all the cells of domain.
guint gfs_domain_init_solid_fractions |
( |
GfsDomain * |
domain, |
|
|
GSList * |
i, |
|
|
gboolean |
destroy_solid, |
|
|
FttCellCleanupFunc |
cleanup, |
|
|
gpointer |
data, |
|
|
GfsVariable * |
status |
|
) |
| |
- Parameters:
-
domain | a #GfsDomain. |
i | a list of #GfsSolids. |
destroy_solid | controls what to do with solid cells. |
cleanup | a #FttCellCleanupFunc or NULL. |
data | user data to pass to cleanup. |
status | a temporary variable or NULL. |
Initializes the solid fractions of all the cells of domain.
If destroy_solid is set to TRUE, the cells entirely contained in the solid are destroyed using cleanup as cleanup function.
- Returns:
- the number of thin cells.
void gfs_face_ca |
( |
const FttCellFace * |
face, |
|
|
FttVector * |
ca |
|
) |
| |
- Parameters:
-
face | a #FttCellFace. |
ca | a #FttVector. |
Fills ca with the coordinates of the center of area of face.
void gfs_init_solid_fractions_from_children |
( |
GfsDomain * |
domain, |
|
|
gboolean |
destroy_solid, |
|
|
FttCellCleanupFunc |
cleanup, |
|
|
gpointer |
data, |
|
|
GfsVariable * |
status |
|
) |
| |
- Parameters:
-
domain | a #GfsDomain. |
destroy_solid | controls what to do with solid cells. |
cleanup | a #FttCellCleanupFunc or NULL. |
data | user data to pass to cleanup. |
status | the status variable. |
Initializes the solid fractions of the non-leaf cells of domain using the values of the leaf cells.
If destroy_solid is set to TRUE, the cells entirely contained in the solid are destroyed using cleanup as cleanup function.
guint gfs_init_solid_fractions_leaves |
( |
GfsDomain * |
domain, |
|
|
GSList * |
i, |
|
|
GfsVariable * |
status |
|
) |
| |
- Parameters:
-
domain | a #GfsDomain. |
i | a list of #GfsSolids. |
status | a temporary variable or NULL. |
Initializes the solid fractions of the leaf cells of domain.
- Returns:
- the number of thin cells.
gboolean gfs_set_2D_solid_fractions_from_surface |
( |
FttCell * |
cell, |
|
|
GfsGenericSurface * |
s |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
s | a #GfsGenericSurface. |
Sets the 2D volume fractions of cell cut by s.
- Returns:
- TRUE if the cell is thin, FALSE otherwise;
void gfs_solid_coarse_fine |
( |
FttCell * |
parent, |
|
|
GfsDomain * |
domain |
|
) |
| |
- Parameters:
-
parent | a mixed #FttCell with children. |
domain | a #GfsDomain. |
Fills the solid properties of the children of parent. Destroys all children entirely contained in the solid.
gboolean gfs_solid_is_thin |
( |
FttCell * |
cell, |
|
|
GfsGenericSurface * |
s |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
s | a #GfsGenericSurface. |
s is "thin" relative to cell if the miminum distance between non-connected faces of s cutting cell is smaller than the size of cell (see doc/figures/thin.fig).
- Returns:
- TRUE if s is a thin surface, FALSE otherwise.
void gfs_solid_normal |
( |
const FttCell * |
cell, |
|
|
FttVector * |
n |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
n | a #FttVector. |
Fills n with the components of the average unit normal to the fraction of solid boundary contained in cell, multiplied by the area of the fraction of solid boundary contained in cell.