combustion_continuation.cc

The combustion problem by continuation

#include "rheolef.h"
using namespace rheolef;
using namespace std;
#include "combustion.h"
int main(int argc, char**argv) {
environment rheolef (argc, argv);
cin >> noverbose;
geo omega (argv[1]);
string approx = (argc > 2) ? argv[2] : "P1";
Float eps = numeric_limits<Float>::epsilon();
continuation_option opts;
opts.ini_delta_parameter = 0.1;
opts.max_delta_parameter = 1;
opts.min_delta_parameter = 1e-7;
opts.tol = eps;
derr << setprecision(numeric_limits<Float>::digits10)
<< "# continuation in lambda:" << endl
<< "# geo = " << omega.name() << endl
<< "# approx = " << approx << endl
<< "# dlambda_ini = " << opts.ini_delta_parameter << endl
<< "# dlambda_min = " << opts.min_delta_parameter << endl
<< "# dlambda_max = " << opts.max_delta_parameter << endl
<< "# tol = " << opts.tol << endl;
combustion F (omega, approx);
field uh = F.initial();
F.put (dout, uh);
continuation (F, uh, &dout, &derr, opts);
}
Float
see the Float page for the full documentation
field
see the field page for the full documentation
geo
see the geo page for the full documentation
rheolef::dout
odiststream dout(cout)
see the diststream page for the full documentation
Definition: diststream.h:430
rheolef::derr
odiststream derr(cerr)
see the diststream page for the full documentation
Definition: diststream.h:436
combustion.h
The combustion problem: class header for the Newton method.
main
int main(int argc, char **argv)
Definition: combustion_continuation.cc:29
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::continuation
void continuation(Problem &F, typename Problem::value_type &uh, odiststream *p_out, odiststream *p_err, const continuation_option &opts=continuation_option())
see the continuation page for the full documentation
Definition: continuation.h:303
rheolef.h
rheolef - reference manual
combustion
Definition: combustion.h:25
combustion::put
odiststream & put(odiststream &os, const field &uh) const
Definition: combustion1.icc:43
combustion::initial
field initial(std::string restart="")
Definition: combustion1.icc:35
epsilon
Float epsilon
Definition: transmission_error.cc:25