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;
#include "sinusprod_laplace.h"
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;
}
lh
field lh(Float epsilon, Float t, const test &v)
Definition burgers_diffusion_operators.icc:25
field
see the field page for the full documentation
form
see the form page for the full documentation
geo
see the geo page for the full documentation
problem
see the problem page for the full documentation
rheolef::catchmark
see the catchmark page for the full documentation
Definition catchmark.h:67
rheolef::environment
see the environment page for the full documentation
Definition environment.h:121
space
see the space page for the full documentation
test
see the test page for the full documentation
trial
see the test page for the full documentation
main
int main()
Definition field2bb.cc:58
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
std
STL namespace.
d
size_t d
Definition neumann-laplace-lambda.cc:28
rheolef.h
rheolef - reference manual
sinusprod_laplace.h
The sinus product function – right-hand-side and boundary condition for the Poisson problem with Neum...
f
Definition cavity_dg.h:29
p
Definition sphere.icc:25
u
Definition leveque.h:25