The Stokes problem on the driven cavity benchmark – the P1-bubble element.
The Stokes problem on the driven cavity benchmark – the P1-bubble element
int main(
int argc,
char**argv) {
space Bh (omega,
"bubble",
"vector");
trial u1 (X1h), ub (Bh),
p (Qh);
test v1 (X1h), vb (Bh), q (Qh);
form b1 = integrate (-div(u1)*q);
form bb = integrate (-div(ub)*q);
form a1 = integrate (2*ddot(D(u1),D(v1)));
form inv_ab = integrate (2*ddot(D(ub),D(vb)), iopt);
form c = bb*inv_ab*trans(bb);
stokes.solve (
field(X1h,0),
field(Qh,0), u1h, ph);
}
see the field page for the full documentation
see the geo page for the full documentation
see the problem_mixed page for the full documentation
see the catchmark page for the full documentation
see the environment page for the full documentation
see the integrate_option 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
The contraction geometry: boundary conditions.
This file is part of Rheolef.
rheolef - reference manual
static space velocity_space(geo omega, string approx)
static field velocity_field(space Xh)