Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
dirichlet2.cc

The Poisson problem with homogeneous boundary conditions – variable right-hand-side.

The Poisson problem with homogeneous boundary conditions – variable right-hand-side

#include "rheolef.h"
using namespace rheolef;
using namespace std;
int main(int argc, char**argv) {
environment rheolef(argc, argv);
geo omega (argv[1]);
size_t d = omega.dimension();
space Xh (omega, argv[2]);
Xh.block ("boundary");
trial u (Xh); test v (Xh);
form a = lazy_integrate (dot(grad(u),grad(v)));
field lh = lazy_integrate (f(d)*v);
field uh (Xh);
uh ["boundary"] = 0;
problem p (a);
p.solve (lh, uh);
dout << catchmark("u") << uh;
}
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 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
see the test page for the full documentation
see the test page for the full documentation
int main()
Definition field2bb.cc:58
This file is part of Rheolef.
STL namespace.
rheolef - reference manual
The sinus product function – right-hand-side and boundary condition for the Poisson problem with Neum...
Definition cavity_dg.h:29
Definition sphere.icc:25
Definition leveque.h:25