formulaFromWeight.hh

Go to the documentation of this file.
1 
6 #ifndef formulaFromWeight_hh
7 #define formulaFromWeight_hh
8 
9 #include "space/formula.hh"
10 #include "shortestDist.hh"
11 
12 namespace hp3D {
13 
14  // ***************************************************** FormulaFromWeight **
15 
20  template<typename Weight = TrivialWeight>
21  class FormulaFromWeight : public concepts::ElementFormula<concepts::Real> {
22  public:
26  FormulaFromWeight(const SingularSet& singularities) :
27  weight_(), singularities_(singularities) {}
28 
30  const Real p, const Real t = 0.0) const;
32  const concepts::Real2d& p,
33  const Real t = 0.0) const;
35  const concepts::Real3d& p,
36  const Real t = 0.0) const;
37  virtual FormulaFromWeight<Weight>* clone() const {
38  return new FormulaFromWeight(singularities_); }
39  private:
40  Weight weight_;
42  };
43 
44 } // namespace concepts
45 
46 #endif // formulaFromWeight_hh
virtual FormulaFromWeight< Weight > * clone() const
Virtual constructor.
virtual Real operator()(const concepts::ElementWithCell< Real > &elm, const Real p, const Real t=0.0) const
const SingularSet & singularities_
virtual Real operator()(const concepts::ElementWithCell< Real > &elm, const concepts::Real2d &p, const Real t=0.0) const
FormulaFromWeight(const SingularSet &singularities)
Constructor.
Interface for a formula defined element by element.
virtual Real operator()(const concepts::ElementWithCell< Real > &elm, const concepts::Real3d &p, const Real t=0.0) const
Makes it possible to plot a given Weight.
Class for handling a set of singular edges and vertices.
Definition: singularSet.hh:136
3D hp-FEM for H1-conforming elements.
Definition: meshDX.hh:23
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich