The stream function for the driven cavity benchmark.
The stream function for the driven cavity benchmark
int main (
int argc,
char** argv) {
din >> uh;
string approx = "P" + to_string(uh.get_space().degree());
space Xh = uh.get_space();
size_t d = uh.get_geo().dimension();
form a = (
d == 3) ? integrate (ddot(grad(
psi),grad(
phi)))
: integrate ( dot(grad(
psi),grad(
phi)));
form b = (
d==3) ? integrate (dot(curl(
u),
phi))
: integrate (curl(
u)*
phi);
}
field lh(Float epsilon, Float t, const test &v)
The driven cavity benchmark: 2D boundary conditions.
see the field page for the full documentation
see the problem page for the full documentation
see the catchmark page for the full documentation
see the environment page for the full documentation
see the space page for the full documentation
see the test page for the full documentation
see the test page for the full documentation
This file is part of Rheolef.
rheolef - reference manual
static field streamf_field(space Ph)
static space streamf_space(geo omega, string approx)