Rheolef  7.1
an efficient C++ finite element environment
rotating-hill-statio.h
Go to the documentation of this file.
1 #include "rotating-hill.h"
22 struct f: phi { // - d phi/dt
23  Float operator() (const point& x) const {
24  return (4*nu/t0 - 4*nu*dist2(x,x0t())/sqr(t0+4*nu*t)
25  -2*dot(d_x0t_dt(),x-x0t())/(t0+4*nu*t))*phi::operator()(x); }
26  f (size_t d1, Float nu1, Float t1=0) : phi(d1,nu1,t1) {}
27 };
nu
Definition: nu.h:26
phi
Definition: phi.h:25
rotating-hill.h
Convection-diffusion equation – the rotating hill benchmark.
phi::operator()
Float operator()(const Float &x) const
Definition: phi.h:27
f::operator()
point operator()(const point &x) const
Definition: cavity_dg.h:30
Float
see the Float page for the full documentation
point
see the point page for the full documentation
f
Definition: cavity_dg.h:29
rheolef::dist2
T dist2(const point_basic< T > &x, const point_basic< T > &y)
Definition: point.h:293
rheolef::details::dot
rheolef::details::is_vec dot
f::f
f(size_t d1, Float nu1, Float t1=0)
Definition: rotating-hill-statio.h:26