navier_stokes_criterion.cc
Go to the documentation of this file.
// zcat square-4.field.gz | ./navier_stokes_criterion | geo -
#include "rheolef.h"
using namespace rheolef;
using namespace std;
#include "navier_stokes_criterion.icc"
int main (int argc, char**argv) {
environment rheolef (argc, argv);
adapt_option options;
options.err = (argc > 1) ? atof(argv[1]) : 1e-4;
options.hmin = (argc > 2) ? atof(argv[2]) : 0.004;
options.additional = "-RelError";
options.hmax = 0.1;
Float Re;
field uh;
din >> catchmark("Re") >> Re
>> catchmark("u") >> uh;
field ch = navier_stokes_criterion (Re, uh);
dout << adapt (ch, options);
}
Float
see the Float page for the full documentation
field
see the field page for the full documentation
rheolef::catchmark
see the catchmark page for the full documentation
Definition: catchmark.h:67
rheolef::environment
see the environment page for the full documentation
Definition: environment.h:115
rheolef::std
Definition: vec_expr_v2.h:402
rheolef::din
idiststream din
see the diststream page for the full documentation
Definition: diststream.h:427
rheolef::dout
odiststream dout(cout)
see the diststream page for the full documentation
Definition: diststream.h:430
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
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
main
int main(int argc, char **argv)
Definition: navier_stokes_criterion.cc:26
navier_stokes_criterion.icc
The Navier-Stokes equations – adaptive mesh criterion.
navier_stokes_criterion
field navier_stokes_criterion(Float Re, const field &uh)
Definition: navier_stokes_criterion.icc:25
rheolef.h
rheolef - reference manual
rheolef::adapt_option
adapt_option: see the adapt page for the full documentation
Definition: adapt.h:147
rheolef::adapt_option::err
Float err
Definition: adapt.h:151
rheolef::adapt_option::hmax
Float hmax
Definition: adapt.h:155
rheolef::adapt_option::additional
std::string additional
Definition: adapt.h:164
rheolef::adapt_option::hmin
Float hmin
Definition: adapt.h:154