You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
hp2D
shortestDist.hh
Go to the documentation of this file.
1
6
#ifndef shortestDist2D_hh
7
#define shortestDist2D_hh
8
9
#include <cmath>
10
#include "
basics/vectorsMatrices.hh
"
11
#include "
hp2D/singularSet.hh
"
12
13
namespace
hp2D
{
14
15
// forward declarations
16
template
<
class
F>
17
class
Quad;
18
using
concepts::Real
;
19
20
// ********************************************************* TrivialWeight **
21
26
class
TrivialWeight
{
27
public
:
29
Real
operator()
(
const
SingularSet
&,
concepts::Real2d
,
30
const
Quad<Real>
*)
const
{
return
1.0; }
31
};
32
33
std::ostream& operator<<(std::ostream& os,
const
TrivialWeight& p);
34
35
// ********************************************************** ShortestDist **
36
43
class
ShortestDist
{
44
public
:
52
Real
operator()
(
const
SingularSet
& singularities,
53
concepts::Real2d
point,
const
Quad<Real>
* elm)
const
;
54
};
55
56
std::ostream& operator<<(std::ostream& os,
const
ShortestDist
& p);
57
58
// ********************************************************** DistancePost **
59
69
template
<
typename
DistClass,
typename
Function>
70
class
DistancePost
{
71
public
:
75
Real
operator()
(
const
SingularSet
& singularities,
76
concepts::Real2d
point,
const
Quad<Real>
* elm)
const
{
77
return
Function::post(dist_(singularities, point, elm));
78
}
79
private
:
80
DistClass dist_;
81
};
82
83
template
<
typename
DistClass,
typename
Function>
84
inline
std::ostream& operator<<(std::ostream& os,
85
const
DistancePost<DistClass, Function>& p) {
86
return
os << Function() <<
'('
<< DistClass() <<
')'
;
87
}
88
89
90
// ********************************************************** Postprocess4 **
91
96
class
Postprocess4
{
97
public
:
98
static
Real post(Real x) {
return
std::pow(x, 0.4); }
99
};
100
101
std::ostream& operator<<(std::ostream& os,
const
Postprocess4
& p);
102
103
// ********************************************************** Postprocess7 **
104
109
class
Postprocess7
{
110
public
:
111
static
Real post(Real x) {
return
std::pow(x, 0.7); }
112
};
113
114
std::ostream& operator<<(std::ostream& os,
const
Postprocess7
& p);
115
116
// ********************************************************** Postprocess8 **
117
122
class
Postprocess8
{
123
public
:
124
static
Real post(Real x) {
return
std::pow(x, 0.8); }
125
};
126
127
std::ostream& operator<<(std::ostream& os,
const
Postprocess8
& p);
128
129
// ********************************************************** Postprocess9 **
130
135
class
Postprocess9
{
136
public
:
137
static
Real post(Real x) {
return
std::pow(x, 0.9); }
138
};
139
140
std::ostream& operator<<(std::ostream& os,
const
Postprocess9
& p);
141
142
// ******************************************************* PostprocessSqrt **
143
148
class
PostprocessSqrt
{
149
public
:
150
static
Real post(Real x) {
return
std::sqrt(x); }
151
};
152
153
std::ostream& operator<<(std::ostream& os,
const
PostprocessSqrt
& p);
154
155
}
// namespace hp2D
156
157
#endif
// shortestDist2D_hh
concepts::Point< Real, 2 >
hp2D::DistancePost
Definition
shortestDist.hh:70
hp2D::DistancePost::operator()
Real operator()(const SingularSet &singularities, concepts::Real2d point, const Quad< Real > *elm) const
Definition
shortestDist.hh:75
hp2D::Postprocess4
Definition
shortestDist.hh:96
hp2D::Postprocess7
Definition
shortestDist.hh:109
hp2D::Postprocess8
Definition
shortestDist.hh:122
hp2D::Postprocess9
Definition
shortestDist.hh:135
hp2D::PostprocessSqrt
Definition
shortestDist.hh:148
hp2D::Quad
Definition
quad.hh:271
hp2D::ShortestDist
Definition
shortestDist.hh:43
hp2D::ShortestDist::operator()
Real operator()(const SingularSet &singularities, concepts::Real2d point, const Quad< Real > *elm) const
hp2D::SingularSet
Definition
singularSet.hh:63
hp2D::TrivialWeight
Definition
shortestDist.hh:26
hp2D::TrivialWeight::operator()
Real operator()(const SingularSet &, concepts::Real2d, const Quad< Real > *) const
Returns 1.
Definition
shortestDist.hh:29
singularSet.hh
concepts::Real
double Real
Definition
typedefs.hh:39
hp2D
Definition
explicitResidual.hh:120
vectorsMatrices.hh
Generated on Wed Sep 13 2023 21:06:21 for Concepts by
1.9.8