Loading...
Searching...
No Matches
sinusprod_helmholtz.h
Go to the documentation of this file.
struct f {
Float operator() (const point& x) const {
switch (d) {
case 1: return (1+d*pi*pi)*sin(pi*x[0]);
case 2: return (1+d*pi*pi)*sin(pi*x[0])*sin(pi*x[1]);
default: return (1+d*pi*pi)*sin(pi*x[0])*sin(pi*x[1])*sin(pi*x[2]);
}}
f(size_t d1) : d(d1), pi(acos(Float(-1.0))) {}
size_t d; const Float pi;
};
struct g {
Float operator() (const point& x) const {
switch (d) {
case 1: return -pi;
case 2: return -pi*(sin(pi*x[0]) + sin(pi*x[1]));
default: return -pi*( sin(pi*x[0])*sin(pi*x[1])
+ sin(pi*x[1])*sin(pi*x[2])
+ sin(pi*x[2])*sin(pi*x[0]));
}}
g(size_t d1) : d(d1), pi(acos(Float(-1.0))) {}
size_t d; const Float pi;
};
Float
see the Float page for the full documentation
point
see the point page for the full documentation
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 sinusprod_helmholtz.h:32
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 d1)
Definition sinusprod_helmholtz.h:44
g::pi
const Float pi
Definition cosinusprod_laplace.h:35