Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
sinusprod.h
Go to the documentation of this file.
1
25struct u_exact {
26 Float operator() (const point& x) const {
27 switch (d) {
28 case 0: return 0;
29 case 1: return sin(pi*x[0]);
30 case 2: return sin(pi*x[0])*sin(pi*x[1]);
31 default: return sin(pi*x[0])*sin(pi*x[1])*sin(pi*x[2]);
32 }
33 }
34 u_exact(size_t d1=0) : d(d1), pi(acos(Float(-1.0))) {}
35 size_t d; Float pi;
36};
see the Float page for the full documentation
see the point page for the full documentation
u_exact(size_t d1=0)
Definition sinusprod.h:34
point operator()(const point &x) const
Float pi
Definition cosinusprod.h:29