Gerris
Functions

domain.c File Reference

Spatial domain. More...

Functions

GfsLocateArray * gfs_locate_array_new (GfsDomain *domain)
GSList * gfs_locate_array_locate (GfsLocateArray *a, FttVector *p)
void gfs_locate_array_destroy (GfsLocateArray *a)
void gfs_domain_copy_bc (GfsDomain *domain, FttTraverseFlags flags, gint max_depth, GfsVariable *v, GfsVariable *v1)
void gfs_domain_bc (GfsDomain *domain, FttTraverseFlags flags, gint max_depth, GfsVariable *v)
void gfs_domain_homogeneous_bc (GfsDomain *domain, FttTraverseFlags flags, gint max_depth, GfsVariable *ov, GfsVariable *v)
void gfs_domain_homogeneous_bc_stencil (GfsDomain *domain, FttTraverseFlags flags, gint max_depth, GfsVariable *ov, GfsVariable *v, GfsLinearProblem *lp)
void gfs_traverse_and_homogeneous_bc (GfsDomain *domain, FttTraverseType order, FttTraverseFlags flags, gint max_depth, FttCellTraverseFunc func, gpointer data, GfsVariable *ov, GfsVariable *v)
void gfs_traverse_and_bc (GfsDomain *domain, FttTraverseType order, FttTraverseFlags flags, gint max_depth, FttCellTraverseFunc func, gpointer data, GfsVariable *v, GfsVariable *v1)
void gfs_domain_face_bc (GfsDomain *domain, FttComponent c, GfsVariable *v)
void gfs_domain_match (GfsDomain *domain)
void gfs_domain_forget_boundary (GfsDomain *domain, GfsBoundary *boundary)
void gfs_domain_surface_bc (GfsDomain *domain, GfsVariable *v)
void gfs_domain_cell_traverse (GfsDomain *domain, FttTraverseType order, FttTraverseFlags flags, gint max_depth, FttCellTraverseFunc func, gpointer data)
FttCellTraverse * gfs_domain_cell_traverse_new (GfsDomain *domain, FttTraverseType order, FttTraverseFlags flags, gint max_depth)
void gfs_domain_traverse_layers (GfsDomain *domain, FttCellTraverseFunc func, gpointer data)
void gfs_domain_cell_traverse_box (GfsDomain *domain, GtsBBox *box, FttTraverseType order, FttTraverseFlags flags, gint max_depth, FttCellTraverseFunc func, gpointer data)
void gfs_domain_cell_traverse_condition (GfsDomain *domain, FttTraverseType order, FttTraverseFlags flags, gint max_depth, FttCellTraverseFunc func, gpointer data, gboolean(*condition)(FttCell *, gpointer), gpointer cdata)
void gfs_domain_traverse_mixed (GfsDomain *domain, FttTraverseType order, FttTraverseFlags flags, FttCellTraverseFunc func, gpointer data)
void gfs_domain_traverse_cut (GfsDomain *domain, GfsGenericSurface *s, FttTraverseType order, FttTraverseFlags flags, FttCellTraverseCutFunc func, gpointer data)
void gfs_domain_traverse_cut_2D (GfsDomain *domain, GfsGenericSurface *s, FttTraverseType order, FttTraverseFlags flags, FttCellTraverseCutFunc func, gpointer data)
guint gfs_domain_depth (GfsDomain *domain)
void gfs_domain_face_traverse (GfsDomain *domain, FttComponent c, FttTraverseType order, FttTraverseFlags flags, gint max_depth, FttFaceTraverseFunc func, gpointer data)
void gfs_domain_cell_traverse_boundary (GfsDomain *domain, FttDirection d, FttTraverseType order, FttTraverseFlags flags, gint max_depth, FttCellTraverseFunc func, gpointer data)
GtsRange gfs_domain_stats_variable (GfsDomain *domain, GfsVariable *v, FttTraverseFlags flags, gint max_depth, gboolean(*condition)(FttCell *, gpointer), gpointer cdata)
GtsRange gfs_domain_stats_solid (GfsDomain *domain)
void gfs_domain_stats_merged (GfsDomain *domain, GtsRange *solid, GtsRange *number)
void gfs_domain_stats_balance (GfsDomain *domain, GtsRange *size, GtsRange *boundary, GtsRange *mpiwait)
GfsNorm gfs_domain_norm_variable (GfsDomain *domain, GfsVariable *v, GfsFunction *w, FttTraverseFlags flags, gint max_depth, gboolean(*condition)(FttCell *, gpointer), gpointer cdata)
GfsNorm gfs_domain_norm_residual (GfsDomain *domain, FttTraverseFlags flags, gint max_depth, gdouble dt, GfsVariable *res)
GfsVariable ** gfs_domain_velocity (GfsDomain *domain)
GfsNorm gfs_domain_norm_velocity (GfsDomain *domain, FttTraverseFlags flags, gint max_depth)
GfsDomain * gfs_domain_read (GtsFile *fp)
void gfs_domain_split (GfsDomain *domain, gboolean one_box_per_pe)
FttCell * gfs_domain_locate (GfsDomain *domain, FttVector target, gint max_depth, GfsBox **where)
FttCell * gfs_domain_boundary_locate (GfsDomain *domain, FttVector target, gint max_depth, GtsObject **where)
gdouble gfs_domain_cell_point_distance2 (GfsDomain *domain, GtsPoint *p, gdouble(*distance2)(FttCell *, GtsPoint *, gpointer), gpointer data, FttCell **closest)
void gfs_domain_advect_point (GfsDomain *domain, FttVector *p, gdouble dt)
guint gfs_domain_size (GfsDomain *domain, FttTraverseFlags flags, gint max_depth)
gdouble gfs_domain_cfl (GfsDomain *domain, FttTraverseFlags flags, gint max_depth)
void gfs_cell_init (FttCell *cell, GfsDomain *domain)
void gfs_cell_reinit (FttCell *cell, GfsDomain *domain)
void gfs_cell_fine_init (FttCell *parent, GfsDomain *domain)
void gfs_cell_copy (const FttCell *from, FttCell *to, GfsDomain *domain)
void gfs_cell_write (const FttCell *cell, FILE *fp, GSList *variables)
void gfs_cell_read (FttCell *cell, GtsFile *fp, GfsDomain *domain)
void gfs_cell_write_binary (const FttCell *cell, FILE *fp, GSList *variables)
void gfs_cell_read_binary (FttCell *cell, GtsFile *fp, GfsDomain *domain)
guint gfs_domain_alloc (GfsDomain *domain)
void gfs_domain_free (GfsDomain *domain, guint i)
GfsVariable * gfs_domain_add_variable (GfsDomain *domain, const gchar *name, const gchar *description)
GfsVariable * gfs_domain_get_or_add_variable (GfsDomain *domain, const gchar *name, const gchar *description)
void gfs_domain_solid_force (GfsDomain *domain, FttVector *pf, FttVector *vf, FttVector *pm, FttVector *vm, GfsFunction *weight)
guint gfs_domain_tag_droplets (GfsDomain *domain, GfsVariable *c, GfsVariable *tag)
void gfs_domain_remove_droplets (GfsDomain *domain, GfsVariable *c, GfsVariable *v, gint min, gdouble val)
void gfs_domain_remove_ponds (GfsDomain *domain, gint min, FttCellCleanupFunc cleanup, gpointer data)
void gfs_domain_remove_specks (GfsDomain *domain)
void gfs_domain_timer_start (GfsDomain *domain, const gchar *name)
void gfs_domain_timer_stop (GfsDomain *domain, const gchar *name)
void gfs_domain_combine_traverse (GfsDomain *domain1, GfsDomain *domain2, FttCellCombineTraverseFunc inside, gpointer idata, FttCellTraverseFunc outside, gpointer odata)
GfsDerivedVariable * gfs_domain_add_derived_variable (GfsDomain *domain, GfsDerivedVariableInfo info)
gboolean gfs_domain_remove_derived_variable (GfsDomain *domain, const gchar *name)
void gfs_domain_sum (GfsDomain *domain, FttDirection d, GfsFunction *f, GfsVariable *v)
void gfs_domain_filter (GfsDomain *domain, GfsVariable *v, GfsVariable *fv)
GfsRequest * gfs_send_objects (GSList *list, int dest)
void gfs_wait (GfsRequest *r)
GSList * gfs_receive_objects (GfsDomain *domain, int src)
GfsRequest * gfs_send_boxes (GfsDomain *domain, GSList *boxes, int dest)
GSList * gfs_receive_boxes (GfsDomain *domain, int src)
GtsObject * gfs_object_from_name (GfsDomain *domain, const gchar *name)
void gfs_domain_projection_reshape (GfsDomainProjection *proj)
GfsDomainProjection * gfs_domain_projection_new (GfsDomain *domain, FttComponent c)
void gfs_domain_projection_traverse (GfsDomainProjection *domain, FttTraverseType order, FttTraverseFlags flags, gint max_depth, GfsProjectionTraverseFunc func, gpointer data)

Detailed Description

Spatial domain.


Function Documentation

void gfs_locate_array_destroy ( GfsLocateArray *  a)
Parameters:
aa #GfsLocateArray.

Frees the memory allocated to a.

Here is the caller graph for this function:

GSList* gfs_locate_array_locate ( GfsLocateArray *  a,
FttVector *  p 
)
Parameters:
aa #GfsLocateArray.
pa #FttVector.
Returns:
a list of objects containing p or NULL.

Here is the caller graph for this function:

GfsLocateArray* gfs_locate_array_new ( GfsDomain *  domain)
Parameters:
domaina #GfsDomain.

Creates a rectangular array for fast location of which GfsBox contains a given point.

Returns:
a new #GfsLocateArray.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables