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

The combustion problem by Keller continuation – post-treatment.

The combustion problem by Keller continuation – post-treatment

#include "rheolef.h"
using namespace rheolef;
using namespace std;
#include "combustion.h"
int main(int argc, char**argv) {
environment rheolef (argc,argv);
string metric;
din >> catchmark("metric") >> metric;
dout << noverbose
<< setprecision(numeric_limits<Float>::digits10)
<< "# metric " << metric << endl
<< "# s lambda umax det(mantissa,base,exp) |u| |grad(u)| |residue|"
<< endl;
for (size_t n = 0; F.get(din,xh); ++n) {
problem::determinant_type det;
if (n > 0 || metric != "spherical") det = F.update_derivative(xh);
const space& Xh = xh.second.get_space();
trial u (Xh); test v (Xh);
form a = integrate(dot(grad(u),grad(v))),
m = integrate(u*v);
const combustion& F0 = F.get_problem();
field mrh = F0.residue(xh.second);
dout << F.parameter() << " " << xh.first
<< " " << xh.second.max_abs()
<< " " << det.mantissa
<< " " << det.base
<< " " << det.exponant
<< " " << sqrt(m(xh.second,xh.second))
<< " " << sqrt(a(xh.second,xh.second))
<< " " << sqrt(F0.dual_space_dot (mrh,mrh))
<< endl;
dot_xh = F.direction (xh);
F.refresh (F.parameter(), xh, dot_xh);
}
}
see the field page for the full documentation
see the form 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 continuation page for the full documentation
Definition keller.h:32
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 combustion problem: class header for the Newton method.
int main()
Definition field2bb.cc:58
This file is part of Rheolef.
STL namespace.
rheolef - reference manual
float_type dual_space_dot(const field &mrh, const field &msh) const
field residue(const field &uh) const
Definition leveque.h:25