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

The tensor diffusion benchmark.

The tensor diffusion benchmark

#include "rheolef.h"
using namespace rheolef;
using namespace std;
int main(int argc, char**argv) {
environment rheolef (argc, argv);
geo omega (argv[1]);
space Xh (omega , argv[2], "tensor");
space Wh (omega["boundary"], argv[2], "tensor");
Xh.block("boundary");
trial sigma (Xh); test tau (Xh);
form ah = integrate (ddot(sigma,tau) + dddot(grad(sigma), grad(tau)));
field lh = integrate (ddot(chi(),tau));
field sigma_h(Xh);
sigma_h["boundary"] = interpolate(Wh, sigma_g());
problem p (ah);
p.solve (lh, sigma_h);
dout << catchmark("sigma") << sigma_h;
}
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
The tensorial diffusion benchmark – right-hand-side and exact solution.
sigma_exact sigma_g
int main()
Definition field2bb.cc:58
This file is part of Rheolef.
STL namespace.
rheolef - reference manual
Definition sphere.icc:25