dune-grid  2.4.1-rc2
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
ghmesh.cc File Reference
#include "geldesc.hh"

Classes

struct  stackentry
 
struct  FctSelector::function_modifier
 
struct  FctSelector::chosen_function
 

Namespaces

 FctSelector
 

Macros

#define __GRAPE_HMESH_C__
 
#define STA(el)   ((STACKENTRY *) (el))
 
#define FVAL_ON_NODE(b)   (jump_data[b])
 
#define MINIMUM(a, b)   (((a) > (b)) ? (b) : (a))
 
#define MAXIMUM(a, b)   (((a) < (b)) ? (b) : (a))
 
#define FCT_NONE   "none"
 
#define FCT_ZERO   "zero"
 
#define SLT_DEFAULT   "default"
 
#define SYMBOL_LENGTH   8
 

Typedefs

typedef struct stackentry STACKENTRY
 
typedef struct FctSelector::function_modifier FctSelector::function_modifier
 
typedef ::std::pair< const char *, const char * > FctSelector::DataFunctionName_t
 

Enumerations

enum  FctSelector::function_modifier_index { FctSelector::fmtNone, FctSelector::fmtLog, FctSelector::fmtT_Fun }
 

Functions

GENMESHnD * genmesh3d_switch_part_light_model_on_off ()
 
GENMESHnD * genmesh3d_switch_part_displaybar_on_off ()
 
GENMESHnD * genmesh3d_partition_disp ()
 
DataFunctionName_t FctSelector::getCurrentFunctionName (GRAPEMESH *mesh)
 
int switchMethods (GENMESHnD *actHmesh)
 
static void gFreeElement (ELEMENT *el)
 
static ELEMENT * complete_element (ELEMENT *el, MESH_ELEMENT_FLAGS flags)
 
static double dist (const double *x, const double *y)
 
static double calc_hmax (HELEMENT *el)
 
static void helementUpdate (DUNE_ELEM *elem, HELEMENT *grapeEl)
 
static HELEMENT * first_macro (GENMESHnD *mesh, MESH_ELEMENT_FLAGS flag)
 
static HELEMENT * next_macro (HELEMENT *el, MESH_ELEMENT_FLAGS flag)
 
static HELEMENT * first_child (HELEMENT *ael, MESH_ELEMENT_FLAGS flag)
 
static HELEMENT * next_child (HELEMENT *el, MESH_ELEMENT_FLAGS flag)
 
static HELEMENT * select_child (HELEMENT *ael, double *parent_coord, double *child_coord, MESH_ELEMENT_FLAGS flag)
 
static ELEMENT * first_element (GRAPEMESH *mesh, MESH_ELEMENT_FLAGS flag)
 
static ELEMENT * next_element (ELEMENT *el, MESH_ELEMENT_FLAGS flag)
 
void f_bounds (HELEMENT *el, double *min, double *max, void *function_data)
 
void grape_get_vertex_estimate (HELEMENT *el, double *value, void *function_data)
 
double grape_get_element_estimate (HELEMENT *el, void *function_data)
 
static void dune_function_info (HELEMENT *el, F_EL_INFO *f_el_info, void *function_data)
 
static void level_function_info (HELEMENT *el, F_EL_INFO *f_el_info, void *function_data)
 
void printfFdata (DUNE_FDATA *fem)
 
void printDuneFunc (DUNE_FDATA *df)
 
static void evaluateFunction (DUNE_ELEM *elem, DUNE_FDATA *fem, int ind, double G_CONST *coord, double *val)
 
static void f_real (HELEMENT *el, int ind, double G_CONST *coord, double *val, void *function_data)
 
static void f_real_polOrd_zero (HELEMENT *el, int ind, double G_CONST *coord, double *val, void *function_data)
 
void f_level (HELEMENT *el, int ind, double G_CONST *coord, double *val, void *function_data)
 
void grapeInitScalarData (GRAPEMESH *grape_mesh, DUNE_FDATA *dfunc)
 
void grapeAddLevelFunction (GRAPEMESH *grape_mesh)
 
void addDataToHmesh (void *hmesh, DUNE_FDATA *data)
 
static ELEMENT * copy_element (ELEMENT *el, MESH_ELEMENT_FLAGS flag)
 
static void get_geometry_vertex_estimate (HELEMENT *helement, double *results)
 
static double get_geometry_element_estimate (HELEMENT *helement)
 
HMESH * get_partition_number (int *partition)
 
GRAPEMESH * getMesh (const char *meshName="Dune Mesh")
 
GRAPEMESH * getAndFreeMesh (GRAPEMESH *mesh=0)
 
void * setupHmesh (const int noe, const int nov, const int maxlev, DUNE_DAT *dune, const char *meshName)
 
void deleteHmesh (void *hmesh)
 
void deleteFunctions (void *hmesh)
 
static void addProjectUIF ()
 
MESH2D * mesh2d_isoline_disp ()
 
MESH2D * mesh2d_isoline_select_disp ()
 
HPMESH2D * hpmesh2d_isoline_disp ()
 
GENMESH2D * genmesh2d_isoline_disp ()
 
GENMESH2D * genmesh2d_isoline_select_disp ()
 
GENMESH2D * genmesh2d_geometry_graph_disp ()
 
MESH2D * mesh2d_vect_disp ()
 
HPMESH2D * hpmesh2d_pdegfine_disp ()
 
GENMESH2D * genmesh2d_chess_disp ()
 
MESH2D * mesh2d_flic_disp ()
 
GENMESH3D * genmesh3d_bnd_isoline_disp ()
 
GENMESH3D * genmesh3d_bnd_isoline_select_disp ()
 
GENMESH3D * genmesh3d_clip_isoline_multi_disp ()
 
GENMESH3D * genmesh3d_volume_disp ()
 
MESH3D * mesh3d_bnd_isoline_select_disp ()
 
MESH3D * mesh3d_bnd_isoline_disp ()
 
static void setMinMaxValuesToColorbars (const char *meshName, const double min, const double max)
 
GRAPEMESH * setMinMaxValue ()
 
void colorBarMinMax (const double min, const double max)
 
static void grape_add_remove_methods (void)
 
void handleMesh (void *hmesh, bool gridMode)
 
void addHmeshToTimeScene (void *timescene, double time, void *hmesh, int proc)
 
void addHmeshToGlobalTimeScene (double time, void *hmesh, int proc)
 
DUNE_FDATA * extractData (void *hmesh, int num)
 
void copyFdata (F_DATA *copy, F_DATA *org)
 
static void copyHmeshes (GRAPEMESH *orgMesh, GRAPEMESH *self)
 
static GRAPEMESH * grape_mesh_interpol (GRAPEMESH *mesh1, GRAPEMESH *mesh2, double factor)
 
static HMESH * next_f_data_send (void)
 
static HMESH * prev_f_data_send (void)
 
SCENE * scene_maxlevel_on_off ()
 
SCENE * scene_set_min_max_values ()
 
GENMESH3D * genmesh3d_switch_iterateLeafs_on_off ()
 
static HELEMENT * bnd_next_macro (HELEMENT *prevEl, MESH_ELEMENT_FLAGS flag)
 
static HELEMENT * bnd_first_macro (GENMESHnD *mesh, MESH_ELEMENT_FLAGS flag)
 
HMESH * genmesh_boundary_disp ()
 
HMESH * newHmeshHardCopy ()
 

Variables

static const double EPSILON = 1.0e-2
 
static const double INFTY = 999999.
 
static std::string grapeMethodName
 
static int ruler_bnd_id = 0
 

Macro Definition Documentation

#define __GRAPE_HMESH_C__
#define FCT_NONE   "none"
#define FCT_ZERO   "zero"
#define FVAL_ON_NODE (   b)    (jump_data[b])
#define MAXIMUM (   a,
 
)    (((a) < (b)) ? (b) : (a))
#define MINIMUM (   a,
 
)    (((a) > (b)) ? (b) : (a))
#define SLT_DEFAULT   "default"
#define STA (   el)    ((STACKENTRY *) (el))
#define SYMBOL_LENGTH   8

Typedef Documentation

typedef struct stackentry STACKENTRY

Function Documentation

void addDataToHmesh ( void *  hmesh,
DUNE_FDATA *  data 
)
inline
void addHmeshToGlobalTimeScene ( double  time,
void *  hmesh,
int  proc 
)
inline
void addHmeshToTimeScene ( void *  timescene,
double  time,
void *  hmesh,
int  proc 
)
inline
static void addProjectUIF ( )
inlinestatic
static HELEMENT* bnd_first_macro ( GENMESHnD *  mesh,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic
static HELEMENT* bnd_next_macro ( HELEMENT *  prevEl,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic
static double calc_hmax ( HELEMENT *  el)
inlinestatic

References dist().

Referenced by first_macro(), and next_macro().

void colorBarMinMax ( const double  min,
const double  max 
)
inline
static ELEMENT* complete_element ( ELEMENT *  el,
MESH_ELEMENT_FLAGS  flags 
)
inlinestatic

Referenced by setupHmesh().

static ELEMENT* copy_element ( ELEMENT *  el,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic

Referenced by setupHmesh().

void copyFdata ( F_DATA *  copy,
F_DATA *  org 
)
inline

Referenced by copyHmeshes().

static void copyHmeshes ( GRAPEMESH *  orgMesh,
GRAPEMESH *  self 
)
inlinestatic

References copyFdata().

Referenced by grape_mesh_interpol(), and newHmeshHardCopy().

void deleteFunctions ( void *  hmesh)
inline
void deleteHmesh ( void *  hmesh)
inline
static double dist ( const double *  x,
const double *  y 
)
inlinestatic
static void dune_function_info ( HELEMENT *  el,
F_EL_INFO *  f_el_info,
void *  function_data 
)
inlinestatic

Referenced by grapeInitScalarData().

static void evaluateFunction ( DUNE_ELEM *  elem,
DUNE_FDATA *  fem,
int  ind,
double G_CONST *  coord,
double *  val 
)
inlinestatic

Referenced by f_real(), and f_real_polOrd_zero().

DUNE_FDATA* extractData ( void *  hmesh,
int  num 
)
inline
void f_bounds ( HELEMENT *  el,
double *  min,
double *  max,
void *  function_data 
)
inline
void f_level ( HELEMENT *  el,
int  ind,
double G_CONST *  coord,
double *  val,
void *  function_data 
)
inline

Referenced by grapeAddLevelFunction().

static void f_real ( HELEMENT *  el,
int  ind,
double G_CONST *  coord,
double *  val,
void *  function_data 
)
inlinestatic

References evaluateFunction().

Referenced by grapeInitScalarData().

static void f_real_polOrd_zero ( HELEMENT *  el,
int  ind,
double G_CONST *  coord,
double *  val,
void *  function_data 
)
inlinestatic

References evaluateFunction().

Referenced by grapeInitScalarData().

static HELEMENT* first_child ( HELEMENT *  ael,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic
static ELEMENT* first_element ( GRAPEMESH *  mesh,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic

References first_macro().

static HELEMENT* first_macro ( GENMESHnD *  mesh,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic
GENMESH2D* genmesh2d_chess_disp ( )
GENMESH2D* genmesh2d_geometry_graph_disp ( )
GENMESH2D* genmesh2d_isoline_disp ( )
GENMESH2D* genmesh2d_isoline_select_disp ( )
GENMESH3D* genmesh3d_bnd_isoline_disp ( )
GENMESH3D* genmesh3d_bnd_isoline_select_disp ( )
GENMESH3D* genmesh3d_clip_isoline_multi_disp ( )
GENMESHnD * genmesh3d_partition_disp ( )
inline
GENMESH3D* genmesh3d_switch_iterateLeafs_on_off ( )
GENMESHnD* genmesh3d_switch_part_displaybar_on_off ( )
inline

References bar_ctl, and bar_on.

Referenced by initPartitionDisp().

GENMESHnD* genmesh3d_switch_part_light_model_on_off ( )
inline

References light_ctl, and light_on.

Referenced by initPartitionDisp().

GENMESH3D* genmesh3d_volume_disp ( )
HMESH* genmesh_boundary_disp ( )
inline
static double get_geometry_element_estimate ( HELEMENT *  helement)
inlinestatic

Referenced by setupHmesh().

static void get_geometry_vertex_estimate ( HELEMENT *  helement,
double *  results 
)
inlinestatic

Referenced by setupHmesh().

HMESH* get_partition_number ( int *  partition)
inline
GRAPEMESH* getAndFreeMesh ( GRAPEMESH *  mesh = 0)
inline

References getMesh().

Referenced by deleteHmesh().

GRAPEMESH* getMesh ( const char *  meshName = "Dune Mesh")
inline

Referenced by getAndFreeMesh(), and setupHmesh().

static void gFreeElement ( ELEMENT *  el)
inlinestatic
static void grape_add_remove_methods ( void  )
inlinestatic
double grape_get_element_estimate ( HELEMENT *  el,
void *  function_data 
)
inline
void grape_get_vertex_estimate ( HELEMENT *  el,
double *  value,
void *  function_data 
)
inline
static GRAPEMESH* grape_mesh_interpol ( GRAPEMESH *  mesh1,
GRAPEMESH *  mesh2,
double  factor 
)
inlinestatic

References copyHmeshes().

Referenced by grape_add_remove_methods().

void grapeAddLevelFunction ( GRAPEMESH *  grape_mesh)
inline
void grapeInitScalarData ( GRAPEMESH *  grape_mesh,
DUNE_FDATA *  dfunc 
)
inline
void handleMesh ( void *  hmesh,
bool  gridMode 
)
inline
static void helementUpdate ( DUNE_ELEM *  elem,
HELEMENT *  grapeEl 
)
inlinestatic
HPMESH2D* hpmesh2d_isoline_disp ( )
HPMESH2D* hpmesh2d_pdegfine_disp ( )
static void level_function_info ( HELEMENT *  el,
F_EL_INFO *  f_el_info,
void *  function_data 
)
inlinestatic

Referenced by grapeAddLevelFunction().

MESH2D* mesh2d_flic_disp ( )

Referenced by addProjectUIF().

MESH2D * mesh2d_isoline_disp ( )
MESH2D * mesh2d_isoline_select_disp ( )
MESH2D* mesh2d_vect_disp ( )
MESH3D* mesh3d_bnd_isoline_disp ( )
MESH3D* mesh3d_bnd_isoline_select_disp ( )
HMESH* newHmeshHardCopy ( )
inline

References copyHmeshes().

Referenced by grape_add_remove_methods().

static HELEMENT* next_child ( HELEMENT *  el,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic
static ELEMENT* next_element ( ELEMENT *  el,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic

References next_macro().

static HMESH* next_f_data_send ( void  )
inlinestatic
static HELEMENT* next_macro ( HELEMENT *  el,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic
static HMESH* prev_f_data_send ( void  )
inlinestatic
void printDuneFunc ( DUNE_FDATA *  df)
inline
void printfFdata ( DUNE_FDATA *  fem)
inline
SCENE* scene_maxlevel_on_off ( )
inline
SCENE* scene_set_min_max_values ( )
inline
static HELEMENT* select_child ( HELEMENT *  ael,
double *  parent_coord,
double *  child_coord,
MESH_ELEMENT_FLAGS  flag 
)
inlinestatic

Referenced by setupHmesh().

GRAPEMESH* setMinMaxValue ( )
inline
static void setMinMaxValuesToColorbars ( const char *  meshName,
const double  min,
const double  max 
)
inlinestatic
void* setupHmesh ( const int  noe,
const int  nov,
const int  maxlev,
DUNE_DAT *  dune,
const char *  meshName 
)
inline
int switchMethods ( GENMESHnD *  actHmesh)

Variable Documentation

const double EPSILON = 1.0e-2
static
std::string grapeMethodName
static
const double INFTY = 999999.
static
int ruler_bnd_id = 0
static