Loading...
Searching...
No Matches
oldroyd_cavity.h
Go to the documentation of this file.
#include "cavity.h"
struct oldroyd_cavity: cavity {
static Float u0_top (const point& x) { return 16*sqr(x[0])*sqr(1-x[0]); }
static field velocity_field (const space& Xh) {
geo omega = Xh.get_geo();
space Wh (omega["top"], Xh.get_approx());
field uh (Xh, 0.);
uh[0]["top"] = lazy_interpolate (Wh, u0_top);
return uh;
}
struct tau_upstream {
tau_upstream (geo, Float, Float) {}
tensor operator() (const point& x) const { return tensor(); }
};
};
cavity.h
The driven cavity benchmark: 2D boundary conditions.
Float
see the Float page for the full documentation
field
see the field page for the full documentation
geo
see the geo page for the full documentation
point
see the point page for the full documentation
space
see the space page for the full documentation
tensor
see the tensor page for the full documentation
cavity
Definition cavity.h:25
oldroyd_cavity::tau_upstream::operator()
tensor operator()(const point &x) const
Definition oldroyd_cavity.h:37
oldroyd_cavity::tau_upstream::tau_upstream
tau_upstream(geo, Float, Float)
Definition oldroyd_cavity.h:36
oldroyd_cavity
Definition oldroyd_cavity.h:26
oldroyd_cavity::u0_top
static Float u0_top(const point &x)
Definition oldroyd_cavity.h:27
oldroyd_cavity::velocity_field
static field velocity_field(const space &Xh)
Definition oldroyd_cavity.h:28