Rheolef  7.1
an efficient C++ finite element environment
combustion_keller.cc
Go to the documentation of this file.
1 #include "rheolef.h"
26 using namespace rheolef;
27 using namespace std;
28 #include "combustion.h"
29 int main(int argc, char**argv) {
30  environment rheolef (argc, argv);
31  din >> noverbose;
32  geo omega (argv[1]);
33  string approx = (argc > 2) ? argv[2] : "P1";
34  string metric = (argc > 3) ? argv[3] : "orthogonal";
37  opts.ini_delta_parameter = 0.1;
38  opts.max_delta_parameter = 0.5;
39  opts.min_delta_parameter = 1e-10;
40  opts.tol = eps;
41  derr << setprecision(numeric_limits<Float>::digits10)
42  << "# continuation in s:" << endl
43  << "# geo = " << omega.name() << endl
44  << "# approx = " << approx << endl
45  << "# metric = " << metric << endl
46  << "# ds_init = " << opts.ini_delta_parameter << endl
47  << "# ds_min = " << opts.min_delta_parameter << endl
48  << "# ds_max = " << opts.max_delta_parameter << endl
49  << "# tol = " << opts.tol << endl;
50  dout << catchmark("metric") << metric << endl;
51  keller<combustion> F (combustion(omega,approx), metric);
52  keller<combustion>::value_type xh = F.initial();
53  F.put (dout, xh);
54  continuation (F, xh, &dout, &derr, opts);
55 }
see the Float page for the full documentation
see the geo 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
Definition: environment.h:115
see the continuation page for the full documentation
Definition: keller.h:32
idiststream din
see the diststream page for the full documentation
Definition: diststream.h:427
odiststream dout(cout)
see the diststream page for the full documentation
Definition: diststream.h:430
odiststream derr(cerr)
see the diststream page for the full documentation
Definition: diststream.h:436
The combustion problem: class header for the Newton method.
int main(int argc, char **argv)
This file is part of Rheolef.
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 - reference manual
see the continuation_option page for the full documentation
Float epsilon