16 #ifndef __H2D_MESH_FUNCTION_H
17 #define __H2D_MESH_FUNCTION_H
20 #include "../mesh/refmap.h"
21 #include "../space/space.h"
22 #include "exceptions.h"
28 template<
typename Scalar>
46 template<
typename Scalar>
69 MeshSharedPtr get_mesh()
const;
76 RefMap* get_refmap(
bool update =
true);
79 virtual Func<Scalar>* get_pt_value(
double x,
double y,
bool use_MeshHashGrid =
false,
Element* e =
nullptr) = 0;
86 virtual void multiply(Scalar coef);
93 virtual Scalar get_approx_max_value(
int item = H2D_FN_VAL_0);
96 virtual Scalar get_approx_min_value(
int item = H2D_FN_VAL_0);
99 virtual bool isOkay()
const;
110 virtual void reinit();
114 virtual void set_quad_2d(
Quad2D* quad_2d);
118 virtual void set_active_element(
Element* e);
121 virtual int get_edge_fn_order(
int edge);
127 void update_refmap();
131 template<
typename T>
friend class Adapt;
133 template<
typename T>
friend class Func;
Stores one element of a mesh.
This class represents a function with jump discontinuity on an interface of two elements.
Represents a function defined on a mesh.
Used to pass the instances of Space around.
HERMES_API Func< double > * init_fn(PrecalcShapeset *fu, RefMap *rm, const int order)
Init the shape function for the evaluation of the volumetric/surface integral (transformation of valu...
Represents an arbitrary function defined on an element.
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
Represents the reference mapping.
This class characterizes a neighborhood of a given edge in terms of adjacent elements and provides me...
Represents the solution of a PDE.