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

The diffusive Burgers equation – its exact solution.

The diffusive Burgers equation – its exact solution

struct u_exact {
Float operator() (const point& x) const {
return 1 - tanh((x[0]-x0-t)/(2*epsilon)); }
u_exact (Float e1, Float t1=0) : epsilon(e1), t(t1), x0(-0.5) {}
Float M() const { return 0; }
};
using u_init = u_exact;
using g = u_exact;
see the Float page for the full documentation
see the point page for the full documentation
Definition cavity_dg.h:25
point operator()(const point &x) const
Float M() const