Rheolef
7.2
an efficient C++ finite element environment
Loading...
Searching...
No Matches
cosinusprod_dirichlet.h
Go to the documentation of this file.
1
25
#include "
cosinusprod.h
"
26
struct
f
{
27
Float
operator()
(
const
point
& x)
const
{
28
return
d
*
pi
*
pi
*cos(
pi
*x[0])*cos(
pi
*x[1])*cos(
pi
*x[2]); }
29
f
(
size_t
d1) :
d
(d1),
pi
(acos(
Float
(-1))) {}
30
size_t
d
;
const
Float
pi
;
31
};
32
struct
g
{
33
Float
operator()
(
const
point
& x)
const
{
return
_u
(x); }
34
g
(
size_t
d
) :
_u
(
d
) {}
35
u_exact
_u
;
36
};
Float
see the Float page for the full documentation
point
see the point page for the full documentation
cosinusprod.h
The cosinus product function.
f
Definition
cavity_dg.h:29
f::d
size_t d
Definition
cosinusprod_dirichlet.h:30
f::operator()
point operator()(const point &x) const
Definition
cavity_dg.h:30
f::f
f(size_t d1)
Definition
cosinusprod_dirichlet.h:29
f::pi
const Float pi
Definition
cosinusprod_dirichlet.h:30
g
Definition
cavity_dg.h:25
g::d
size_t d
Definition
sinusprod_helmholtz.h:45
g::operator()
point operator()(const point &x) const
Definition
cavity_dg.h:26
g::g
g(size_t d)
Definition
cosinusprod_dirichlet.h:34
g::_u
u_exact _u
Definition
cosinusprod_dirichlet.h:35
u_exact
Definition
interpolate_RTk_polynom.icc:125