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"] = 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
rheolef::space_constant::tensor
@ tensor
Definition: space_constant.h:138
rheolef::interpolate
field_basic< T, M > interpolate(const space_basic< T, M > &V2h, const field_basic< T, M > &u1h)
see the interpolate page for the full documentation
Definition: interpolate.cc:233
cavity
Definition: cavity.h:25
oldroyd_cavity::tau_upstream
Definition: oldroyd_cavity.h:35
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