You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
hp3D
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
29
virtual
Real operator()(
const
concepts::ElementWithCell<Real>
& elm,
30
const
Real p,
const
Real t = 0.0)
const
;
31
virtual
Real operator()(
const
concepts::ElementWithCell<Real>
& elm,
32
const
concepts::Real2d
& p,
33
const
Real t = 0.0)
const
;
34
virtual
Real operator()(
const
concepts::ElementWithCell<Real>
& elm,
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_;
41
const
SingularSet
& singularities_;
42
};
43
44
}
// namespace concepts
45
46
#endif
// formulaFromWeight_hh
concepts::ElementFormula
Definition
elementFormula.hh:35
concepts::ElementWithCell
Definition
element.hh:79
concepts::Point< Real, 2 >
hp3D::FormulaFromWeight
Definition
formulaFromWeight.hh:21
hp3D::FormulaFromWeight::FormulaFromWeight
FormulaFromWeight(const SingularSet &singularities)
Definition
formulaFromWeight.hh:26
hp3D::FormulaFromWeight::clone
virtual FormulaFromWeight< Weight > * clone() const
Virtual copy constructor.
Definition
formulaFromWeight.hh:37
hp3D::SingularSet
Definition
singularSet.hh:136
shortestDist.hh
hp3D
Definition
meshDX.hh:23
formula.hh
Generated on Wed Sep 13 2023 21:06:21 for Concepts by
1.9.8