1#include "ITHACAparameters.H"
5ITHACAparameters::ITHACAparameters(
const fvMesh& mesh, Time& localTime)
10 ITHACAdict =
new IOdictionary
17 IOobject::MUST_READ_IF_MODIFIED,
22 precision = ITHACAdict->lookupOrDefault<label>(
"OutPrecision", 10);
23 word typeout = ITHACAdict->lookupOrDefault<word>(
"OutType",
"fixed");
25 if (typeout ==
"fixed")
27 outytpe = std::ios_base::fixed;
30 if (typeout ==
"scientific")
32 outytpe = std::ios_base::scientific;
35 eigensolver = ITHACAdict->lookupOrDefault<word>(
"EigenSolver",
"spectra");
36 exportPython = ITHACAdict->lookupOrDefault<
bool>(
"exportPython", 0);
37 exportMatlab = ITHACAdict->lookupOrDefault<
bool>(
"exportMatlab", 0);
38 exportTxt = ITHACAdict->lookupOrDefault<
bool>(
"exportTxt", 0);
39 exportNpy = ITHACAdict->lookupOrDefault<
bool>(
"exportNpy", 0);
40 debug = ITHACAdict->lookupOrDefault<
bool>(
"debug", 0);
41 warnings = ITHACAdict->lookupOrDefault<
bool>(
"warnings", 0);
42 correctBC = ITHACAdict->lookupOrDefault<
bool>(
"correctBC", 1);
59 "ITHACAparameters needs to be initialized, call ITHACAparameters::getInstance(mesh, runTime) first");
Class for the definition of some general parameters, the parameters must be defined from the file ITH...
static ITHACAparameters * instance
Pointer to the ITHACAparameters class.
const fvMesh & mesh
Mesh object defined locally.
static ITHACAparameters * getInstance()
Gets an instance of ITHACAparameters, to be used if the instance is already existing.