32 #ifndef CORE_BASIS_CONSTANT_H
33 #define CORE_BASIS_CONSTANT_H 1
50 static double unit_vertices[1][1];
51 static int unit_edges[1][1];
52 static double unit_center[3];
104 template<
class VECTOR>
106 const unsigned div_per_unit,
107 VECTOR& coords)
const
115 template<
class VECTOR>
117 const unsigned div_per_unit,
118 VECTOR &coords)
const
144 template <
class ElemData,
class VECTOR>
151 template <
class ElemData,
class VECTOR1,
class VECTOR2>
152 void derivate(
const VECTOR1 &coords,
const ElemData &,
153 VECTOR2 &derivs)
const
158 derivs[si] = static_cast<typename VECTOR2::value_type>(0);
162 template <
class VECTOR>
169 template <
class VECTOR>
178 static const std::string
type_name(
int n = -1);
186 ASSERT((n >= -1) && n <= 1);
194 static const std::string nm(
"ConstantBasis");
204 #define CONSTANTBASIS_VERSION 1
217 std::string(__FILE__),
ConstantApprox()
Definition: Constant.h:98
void get_derivate_weights(const VECTOR &coords, double *w) const
Get the weights for doing a gradient.
Definition: Constant.h:170
static int vertices_of_face()
return number of vertices per face
Definition: Constant.h:82
specializations of template<class T> find_type_name() function for build-in and simple types not deri...
static int domain_dimension()
return dimension of domain
Definition: Constant.h:58
ConstantBasis()
Definition: Constant.h:137
Class for describing unit geometry of ConstantBasis.
Definition: Constant.h:48
Definition: Persistent.h:89
void approx_face(const unsigned face, const unsigned div_per_unit, VECTOR &coords) const
Definition: Constant.h:116
Definition: TypeDescription.h:45
#define SCISHARE
Definition: share.h:39
void derivate(const VECTOR1 &coords, const ElemData &, VECTOR2 &derivs) const
get first derivative at parametric coordinate
Definition: Constant.h:152
std::vector< const TypeDescription * > td_vec
Definition: TypeDescription.h:56
static double volume()
return volume
Definition: Constant.h:90
static const std::string type_name(int n=-1)
Functions for dynamic compilation and storing this object on disk.
Definition: Constant.h:184
static int dofs()
return degrees of freedom
Definition: Constant.h:78
virtual ~ConstantBasis()
Definition: Constant.h:138
#define ASSERT(condition)
Definition: Assert.h:110
Class for describing interfaces to basis elements.
Definition: Basis.h:48
static int faces_of_cell()
return number of faces per cell
Definition: Constant.h:86
virtual int begin_class(const std::string &name, int current_version)
Definition: Persistent.cc:143
virtual ~ConstantBasisUnitElement()
Definition: Constant.h:55
const string find_type_name(float *)
Definition: TypeName.cc:63
Base class for persistent objects...
ConstantBasisUnitElement()
Definition: Constant.h:54
const char * name[]
Definition: BoostGraphExampleTests.cc:87
long long size_type
Definition: Types.h:40
Class for handling of element with constant field variables.
Definition: Constant.h:128
T interpolate(const VECTOR &, const ElemData &cd) const
get value at parametric coordinate
Definition: Constant.h:145
static int number_of_mesh_vertices()
return number of vertices
Definition: Constant.h:70
static int number_of_edges()
return number of edges
Definition: Constant.h:74
T value_type
Definition: Constant.h:135
void get_weights(const VECTOR &coords, double *w) const
Get the weights for doing an interpolation.
Definition: Constant.h:163
static int polynomial_order()
Definition: Constant.h:141
static const std::string make_template_id(const std::string &templateName, const std::string &templateParam)
Definition: TypeName.h:62
Definition: PntSamplingSchemes.h:42
virtual void end_class()
Definition: Persistent.cc:178
Definition: NoElementWeights.h:36
#define CONSTANTBASIS_VERSION
Definition: Constant.h:204
static int number_of_vertices()
return number of vertices
Definition: Constant.h:66
virtual ~ConstantApprox()
Definition: Constant.h:99
static double domain_size()
return size of domain
Definition: Constant.h:62
int n
Definition: eab.py:9
virtual void io(Piostream &str)
Definition: Constant.h:226
Definition: TypeDescription.h:49
void approx_edge(const unsigned edge, const unsigned div_per_unit, VECTOR &coords) const
Definition: Constant.h:105
const TypeDescription * get_type_description(Core::Basis::ConstantBasis< T > *)
Definition: Constant.h:209
Definition: Constant.h:96