Rheolef  7.1
an efficient C++ finite element environment
navier_stokes_criterion.cc
Go to the documentation of this file.
1 // zcat square-4.field.gz | ./navier_stokes_criterion | geo -
22 #include "rheolef.h"
23 using namespace rheolef;
24 using namespace std;
26 int main (int argc, char**argv) {
27  environment rheolef (argc, argv);
28  adapt_option options;
29  options.err = (argc > 1) ? atof(argv[1]) : 1e-4;
30  options.hmin = (argc > 2) ? atof(argv[2]) : 0.004;
31  options.additional = "-RelError";
32  options.hmax = 0.1;
33  Float Re;
34  field uh;
35  din >> catchmark("Re") >> Re
36  >> catchmark("u") >> uh;
37  field ch = navier_stokes_criterion (Re, uh);
38  dout << adapt (ch, options);
39 }
rheolef::adapt
geo_basic< T, M > adapt(const field_basic< T, M > &uh, const adapt_option &opts)
adapt(uh,opts): see the adapt page for the full documentation
Definition: adapt.cc:172
rheolef::catchmark
see the catchmark page for the full documentation
Definition: catchmark.h:67
field
see the field page for the full documentation
rheolef::adapt_option
adapt_option: see the adapt page for the full documentation
Definition: adapt.h:147
main
int main(int argc, char **argv)
Definition: navier_stokes_criterion.cc:26
rheolef.h
rheolef - reference manual
rheolef::adapt_option::hmin
Float hmin
Definition: adapt.h:154
rheolef::din
idiststream din
see the diststream page for the full documentation
Definition: diststream.h:427
rheolef::environment
see the environment page for the full documentation
Definition: environment.h:115
navier_stokes_criterion.icc
The Navier-Stokes equations – adaptive mesh criterion.
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::adapt_option::err
Float err
Definition: adapt.h:151
Float
see the Float page for the full documentation
rheolef::adapt_option::additional
std::string additional
Definition: adapt.h:164
rheolef::dout
odiststream dout(cout)
see the diststream page for the full documentation
Definition: diststream.h:430
navier_stokes_criterion
field navier_stokes_criterion(Float Re, const field &uh)
Definition: navier_stokes_criterion.icc:25
rheolef::std
Definition: vec_expr_v2.h:402
rheolef::adapt_option::hmax
Float hmax
Definition: adapt.h:155