Hermes2D  2.0
global.h File Reference

Common definitions for Hermes2D. More...

#include "hermes_common.h"
#include "config.h"

Go to the source code of this file.

Classes

class  Hermes::Hermes2D::DiscreteProblem< Scalar >
 
class  Hermes::Hermes2D::Space< Scalar >
 Represents a finite element space over a domain. More...
 
class  Hermes::Hermes2D::WeakForm< Scalar >
 Represents the weak formulation of a PDE problem. More...
 
class  Hermes::Hermes2D::MeshFunction< Scalar >
 Represents a function defined on a mesh. More...
 
class  Hermes::Hermes2D::Solution< Scalar >
 Represents the solution of a PDE.
More...
 
class  Hermes::Hermes2D::Global< Scalar >
 Class for global functions. More...
 

Namespaces

namespace  Hermes
 
namespace  Hermes::Hermes2D
 Namespace containing definitions specific for Hermes2D.
 

Macros

#define H2D_MAX_ELEMENT_SONS   4
 Macros. More...
 
#define H2D_MAX_NUMBER_EDGES   4
 A maximum number of edges of an element.
 
#define H2D_MAX_NUMBER_VERTICES   4
 A maximum number of vertices of an element.
 
#define H2D_NUM_MODES   2
 Internal. More...
 
#define H2D_SOLUTION_ELEMENT_CACHE_SIZE   2
 A maximum number of vertices of an element.
 
#define H2D_MAX_NODE_ID   10000000
 
#define H2D_MAX_SOLUTION_COMPONENTS   2
 
#define HERMES_ONE   NULL
 
#define HERMES_DEFAULT_FUNCTION   NULL
 
#define HERMES_DEFAULT_SPLINE   NULL
 
#define HERMES_TOTAL_ERROR_REL   0x00
 Constant used by Adapt::calc_eror(). More...
 
#define HERMES_TOTAL_ERROR_ABS   0x01
 
#define HERMES_ELEMENT_ERROR_REL   0x00
 
#define HERMES_ELEMENT_ERROR_ABS   0x10
 
#define H2DRS_ASSUMED_MAX_CANDS   512
 An estimated maximum number of candidates. Used for purpose of reserving space.
 
#define H2DRS_INTR_GIP_ORDER   20
 An integration order used to integrate while evaluating a candidate.
 
#define H2DRS_MAX_ORDER_INC   1
 Maximum increase of an order in candidates.
 
#define H2DRS_SCORE_DIFF_ZERO   1E-13
 A threshold of difference between scores. Anything below this values is considered zero.
 
#define H2DRS_ORDER_ANY   -1
 Any order. Used as a wildcard to indicate that a given order can by any valid order.
 
#define H2DRS_DEFAULT_ERR_WEIGHT_H   2.0
 A default multiplicative coefficient of an error of a H-candidate.
 
#define H2DRS_DEFAULT_ERR_WEIGHT_P   1.0
 A default multiplicative coefficient of an error of a P-candidate.
 
#define H2DRS_DEFAULT_ERR_WEIGHT_ANISO   1.414214
 A default multiplicative coefficient of an error of a ANISO-candidate.
 
#define H2D_GET_H_ORDER(encoded_order)   ((encoded_order) & H2D_ORDER_MASK)
 Macros for combining quad horizontal and vertical encoded_orders.
 
#define H2D_GET_V_ORDER(encoded_order)   ((encoded_order) >> H2D_ORDER_BITS)
 
#define H2D_MAKE_QUAD_ORDER(h_encoded_order, v_encoded_order)   (((v_encoded_order) << H2D_ORDER_BITS) + (h_encoded_order))
 
#define H2D_MAKE_EDGE_ORDER(mode, edge, order)   ((mode == HERMES_MODE_TRIANGLE || edge == 0 || edge == 2) ? H2D_GET_H_ORDER(order) : H2D_GET_V_ORDER(order))
 

Enumerations

enum  Hermes::Hermes2D::ProjNormType {
  HERMES_L2_NORM, HERMES_H1_NORM, HERMES_H1_SEMINORM, HERMES_HCURL_NORM,
  HERMES_HDIV_NORM, HERMES_UNSET_NORM
}
 
enum  ElementMode2D { HERMES_MODE_TRIANGLE = 0, HERMES_MODE_QUAD = 1 }
 

Variables

const int Hermes::Hermes2D::H2D_ORDER_BITS = 5
 How many bits the encoded_order number takes.
 
const int Hermes::Hermes2D::H2D_ORDER_MASK = (1 << H2D_ORDER_BITS) - 1
 

Detailed Description

Common definitions for Hermes2D.

Todo:
Put more common H2D stuff here.

Definition in file global.h.

Macro Definition Documentation

#define H2D_NUM_MODES   2