ghmesh.cc File Reference

Classes

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

Namespaces

namespace  FctSelector

Defines

#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

Define Documentation

#define FCT_NONE   "none"
#define FCT_ZERO   "zero"
#define FVAL_ON_NODE (   b  )     (jump_data[b])
#define MAXIMUM (   a,
  b 
)    (((a) < (b)) ? (b) : (a))
#define MINIMUM (   a,
  b 
)    (((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 (  )  [inline, static]

Referenced by handleMesh().

static HELEMENT* bnd_first_macro ( GENMESHnD *  mesh,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]
static HELEMENT* bnd_next_macro ( HELEMENT *  prevEl,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]

References next_macro(), and ruler_bnd_id.

Referenced by bnd_first_macro().

static double calc_hmax ( HELEMENT *  el  )  [inline, static]

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 
) [inline, static]
static ELEMENT* copy_element ( ELEMENT *  el,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]
void copyFdata ( F_DATA *  copy,
F_DATA *  org 
) [inline]

Referenced by copyHmeshes().

static void copyHmeshes ( GRAPEMESH *  orgMesh,
GRAPEMESH *  self 
) [inline, static]

References copyFdata().

Referenced by grape_mesh_interpol(), and newHmeshHardCopy().

void deleteFunctions ( void *  hmesh  )  [inline]
static double dist ( const double *  x,
const double *  y 
) [inline, static]
static void dune_function_info ( HELEMENT *  el,
F_EL_INFO *  f_el_info,
void *  function_data 
) [inline, static]
static void evaluateFunction ( DUNE_ELEM *  elem,
DUNE_FDATA *  fem,
int  ind,
double G_CONST *  coord,
double *  val 
) [inline, static]

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]
static void f_real ( HELEMENT *  el,
int  ind,
double G_CONST *  coord,
double *  val,
void *  function_data 
) [inline, static]

References evaluateFunction().

Referenced by grapeInitScalarData().

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

References evaluateFunction().

Referenced by grapeInitScalarData().

static HELEMENT* first_child ( HELEMENT *  ael,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]

References gFreeElement(), and helementUpdate().

static ELEMENT* first_element ( GRAPEMESH *  mesh,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]

References first_macro().

static HELEMENT* first_macro ( GENMESHnD *  mesh,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]

References calc_hmax(), and helementUpdate().

Referenced by bnd_first_macro(), and first_element().

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 (  ) 
GENMESH3D* genmesh3d_switch_iterateLeafs_on_off (  ) 
GENMESHnD* genmesh3d_switch_part_displaybar_on_off (  )  [inline]

References bar_ctl, and bar_on.

GENMESHnD* genmesh3d_switch_part_light_model_on_off (  )  [inline]

References light_ctl, and light_on.

GENMESH3D* genmesh3d_volume_disp (  ) 
HMESH* genmesh_boundary_disp (  )  [inline]

References ruler_bnd_id.

static double get_geometry_element_estimate ( HELEMENT *  helement  )  [inline, static]
static void get_geometry_vertex_estimate ( HELEMENT *  helement,
double *  results 
) [inline, static]
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  )  [inline, static]

Referenced by first_child(), next_child(), and next_macro().

static void grape_add_remove_methods ( void   )  [inline, static]

Referenced by displayTimeScene(), and handleMesh().

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 
) [inline, static]

References copyHmeshes().

void grapeAddLevelFunction ( GRAPEMESH *  grape_mesh  )  [inline]

Referenced by setupHmesh().

void grapeInitScalarData ( GRAPEMESH *  grape_mesh,
DUNE_FDATA *  dfunc 
) [inline]

References f_real(), and f_real_polOrd_zero().

Referenced by addDataToHmesh().

static void helementUpdate ( DUNE_ELEM *  elem,
HELEMENT *  grapeEl 
) [inline, static]
HPMESH2D* hpmesh2d_isoline_disp (  ) 
HPMESH2D* hpmesh2d_pdegfine_disp (  ) 
static void level_function_info ( HELEMENT *  el,
F_EL_INFO *  f_el_info,
void *  function_data 
) [inline, static]
MESH2D* mesh2d_flic_disp (  ) 
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().

static HELEMENT* next_child ( HELEMENT *  el,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]

References gFreeElement(), and helementUpdate().

static ELEMENT* next_element ( ELEMENT *  el,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]

References next_macro().

static HMESH* next_f_data_send ( void   )  [inline, static]
static HELEMENT* next_macro ( HELEMENT *  el,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]
static HMESH* prev_f_data_send ( void   )  [inline, static]
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]

References grapeMethodName.

static HELEMENT* select_child ( HELEMENT *  ael,
double *  parent_coord,
double *  child_coord,
MESH_ELEMENT_FLAGS  flag 
) [inline, static]
GRAPEMESH* setMinMaxValue (  )  [inline]
static void setMinMaxValuesToColorbars ( const char *  meshName,
const double  min,
const double  max 
) [inline, static]

Referenced by setMinMaxValue().

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]

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].