Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
stokes_taylor_dg.cc
Go to the documentation of this file.
1
25#include "rheolef.h"
26using namespace rheolef;
27using namespace std;
28#include "taylor.h"
30int main(int argc, char**argv) {
31 environment rheolef (argc, argv);
32 geo omega (argv[1]);
33 space Xh (omega, argv[2], "vector");
34 space Qh (omega, argv[2]);
35 form a, b, c, mp;
36 field lh, kh;
37 stokes_dirichlet_dg (Xh, Qh, a, b, c, mp, lh, kh);
38 field uh (Xh, 0), ph (Qh, 0);
39 problem_mixed stokes (a, b, c);
40 stokes.set_metric (mp);
41 stokes.solve (lh, kh, uh, ph);
42 dout << catchmark("u") << uh
43 << catchmark("p") << ph;
44}
field lh(Float epsilon, Float t, const test &v)
see the field page for the full documentation
see the form 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
Definition catchmark.h:67
see the environment page for the full documentation
see the space page for the full documentation
int main()
Definition field2bb.cc:58
This file is part of Rheolef.
STL namespace.
rheolef - reference manual
The Stokes problem with Dirichlet boundary condition by the discontinuous Galerkin method – solver fu...
void stokes_dirichlet_dg(const space &Xh, const space &Qh, form &a, form &b, form &c, form &mp, field &lh, field &kh, integrate_option iopt=integrate_option())
The Taylor benchmark – right-hand-side and boundary condition.