Go to the documentation of this file.
30 pressureControlPtr_(nullptr),
31 turbulencePtr_(nullptr),
32 daTurbulenceModelPtr_(nullptr),
34 initialMass_(dimensionedScalar(
"initialMass", dimensionSet(1, 0, 0, 0, 0, 0, 0), 0.0))
46 Info <<
"Initializing fields for DATurboFoam" << endl;
54 const word turbModelName(
57 "turbulenceProperties",
58 mesh.time().constant(),
82 Info <<
"\nStarting time loop\n"
89 Info <<
"Time = " <<
runTime.timeName() << nl << endl;
label checkPrimalFailure()
check whether the primal fails based on residual and regression fail flag
label loop(Time &runTime)
return whether to loop the primal solution, similar to runTime::loop() except we don't do file IO
label printToScreen_
whether to print primal information to the screen
autoPtr< DARegression > daRegressionPtr_
DARegression pointer.
addToRunTimeSelectionTable(DAFunction, DAFunctionForce, dictionary)
autoPtr< DAOption > daOptionPtr_
DAOption pointer.
static autoPtr< DATurbulenceModel > New(const word modelType, const fvMesh &mesh, const DAOption &daOption)
autoPtr< DATurbulenceModel > daTurbulenceModelPtr_
DATurbulenceModel pointer.
defineTypeNameAndDebug(DAFunction, 0)
label regModelFail_
whether the regModel compute fails
virtual label solvePrimal()
solve the primal equations
autoPtr< Time > runTimePtr_
runTime pointer
autoPtr< fvMesh > meshPtr_
fvMesh pointer
autoPtr< argList > argsPtr_
args pointer
virtual void initSolver()
initialize fields and variables
DATurboFoam(char *argsAll, PyObject *pyOptions)
void printElapsedTime(const Time &runTime, const label printToScreen)
void calcAllFunctions(label print=0)
calculate the values of all objective functions and print them to screen