Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
cosinusprod.h

The cosinus product function.

The cosinus product function

struct u_exact {
Float operator() (const point& x) const {
return cos(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]); }
u_exact(size_t d1) : d(d1), pi(acos(Float(-1.0))) {}
size_t d; Float pi;
};
see the Float page for the full documentation
see the point page for the full documentation
point operator()(const point &x) const
Float pi
Definition cosinusprod.h:29