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

The Taylor benchmark – the exact solution of the Stokes problem.

The Taylor benchmark – the exact solution of the Stokes problem

#include "taylor.h"
typedef g u_exact;
struct p_exact {
Float operator() (const point& x) const {
return - Re*(cos(2*pi*x[0]) + cos(2*pi*x[1]))/4
- (!have_kinetic_energy ? 0 : Re*(norm2(u(x))/2 - 0.25));
}
p_exact(Float Re1=0, bool have_kinetic_energy1=false)
: u(), pi(acos(Float(-1.0))), Re(Re1), have_kinetic_energy(have_kinetic_energy1) {}
};
see the Float page for the full documentation
see the point page for the full documentation
Definition cavity_dg.h:25
bool have_kinetic_energy
u_exact u
Float operator()(const point &x) const
const Float pi
const Float Re
The Taylor benchmark – right-hand-side and boundary condition.