Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
cosinusrad_laplace.h
Go to the documentation of this file.
1
25struct f {
26 Float operator() (const point& x) const {
27 Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
28 Float sin_over_ar = (r == 0) ? 1 : sin(a*r)/(a*r);
29 return sqr(a)*((d-1)*sin_over_ar + cos(a*r)); }
30 f(size_t d1) : d(d1), a(acos(Float(-1.0))) {}
31 size_t d; Float a;
32};
33struct g {
34 Float operator() (const point& x) const {
35 return cos(a*sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]))); }
36 g(size_t=0) : a(acos(Float(-1.0))) {}
38};
see the Float page for the full documentation
see the point page for the full documentation
Definition cavity_dg.h:29
Float a
point operator()(const point &x) const
Definition cavity_dg.h:30
f(size_t d1)
Definition cavity_dg.h:25
Float a
point operator()(const point &x) const
Definition cavity_dg.h:26
g(size_t=0)
Float r
Definition phi.h:54