Hermes2D  3.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

singleton  Hermes::Hermes2D::DiscreteProblem< Scalar >
 
singleton  Hermes::Hermes2D::MeshFunctionSharedPtr< Scalar >
 
singleton  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...
 
singleton  Hermes::Hermes2D::MeshFunction< Scalar >
 Represents a function defined on a mesh. More...
 
singleton  Hermes::Hermes2D::Solution< Scalar >
 Represents the solution of a PDE.
More...
 

Namespaces

 Hermes
 
 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   4
 An internal parameter.
 
#define H2D_MAX_NODE_ID   10000000
 
#define H2D_MAX_SOLUTION_COMPONENTS   2
 
#define H2D_NUM_FUNCTION_VALUES   3
 
#define CENTROID_QUAD_X   0.
 Centroid of the reference quadrilateral.
 
#define CENTROID_QUAD_Y   0.
 
#define CENTROID_TRI_X   -0.3333333333333333
 Centroid of the reference triangle.
 
#define CENTROID_TRI_Y   -0.3333333333333333
 
#define ELEMENT_DELTA_X   2.0
 Reference element size.
 
#define ELEMENT_DELTA_Y   2.0
 
#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_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 MAX_NUMBER_FUNCTION_VALUES_FOR_SELECTORS   3
 
#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))
 
#define H2DRS_DEFAULT_ORDER   -1
 A default order. Used to indicate an unkonwn order or a maximum support order.
 
#define H2DRS_MAX_ORDER   10
 A maximum order suported by refinement selectors.
 
#define H2D_NUM_SHAPES_SIZE   12
 A maximum order suported by refinement selectors.
 

Enumerations

enum  Hermes::Hermes2D::NormType {
  HERMES_L2_NORM, HERMES_H1_NORM, HERMES_H1_SEMINORM, HERMES_HCURL_NORM,
  HERMES_HDIV_NORM, HERMES_UNSET_NORM
}
 
enum  Hermes::Hermes2D::ElementMode2D { HERMES_MODE_TRIANGLE = 0, HERMES_MODE_QUAD = 1 }
 
enum  SpaceType {
  HERMES_H1_SPACE = 0, HERMES_HCURL_SPACE = 1, HERMES_HDIV_SPACE = 2, HERMES_L2_SPACE = 3,
  HERMES_L2_MARKERWISE_CONST_SPACE = 4, HERMES_INVALID_SPACE = -9999
}
 
enum  Hermes::Hermes2D::ShapesetType {
  HERMES_H1_JACOBI = 0, HERMES_L2_LEGENDRE = 1, HERMES_L2_TAYLOR = 2, HERMES_HDIV_LEGENDRE = 3,
  HERMES_HCURL_GRADLEG = 4
}
 Important not to change the indices - used in an array enumeration.
 
enum  Hermes::Hermes2D::GeomType { HERMES_PLANAR = 0, HERMES_AXISYM_X = 1, HERMES_AXISYM_Y = 2 }
 Geometrical type of weak forms.
 
enum  Hermes::Hermes2D::SymFlag { HERMES_ANTISYM = -1, HERMES_NONSYM = 0, HERMES_SYM = 1 }
 Bilinear form symmetry flag, see WeakForm::add_matrix_form.
 
enum  Hermes::Hermes2D::LinearizerOutputType { OpenGL, FileExport }
 

Functions

const char * Hermes::Hermes2D::spaceTypeToString (SpaceType spaceType)
 
SpaceType Hermes::Hermes2D::spaceTypeFromString (const char *spaceTypeString)
 

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