Loading...
Searching...
No Matches
dirichlet-nh.cc

The Poisson problem with non-homogeneous Dirichlet boundary conditions.

The Poisson problem with non-homogeneous Dirichlet boundary conditions

#include "rheolef.h"
using namespace rheolef;
using namespace std;
#include "cosinusprod_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 = integrate (dot(grad(u),grad(v)));
field lh = integrate (f(d)*v);
field uh (Xh);
space Wh (omega["boundary"], argv[2]);
uh ["boundary"] = lazy_interpolate(Wh, g(d));
problem p (a);
p.solve (lh, uh);
dout << 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::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
cosinusprod_laplace.h
The cosinus product function – right-hand-side and boundary condition for the Laplace problem.
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
f
Definition cavity_dg.h:29
g
Definition cavity_dg.h:25
p
Definition sphere.icc:25
u
Definition leveque.h:25