Go to the documentation of this file.
51 pressureControlPtr_(nullptr),
52 turbulencePtr_(nullptr),
53 daTurbulenceModelPtr_(nullptr),
54 initialMass_(dimensionedScalar(
"initialMass", dimensionSet(1, 0, 0, 0, 0, 0, 0), 0.0))
66 Info <<
"Initializing fields for DARhoSimpleCFoam" << endl;
74 const word turbModelName(
77 "turbulenceProperties",
78 mesh.time().constant(),
102 Info <<
"\nStarting time loop\n"
110 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< DATurbulenceModel > daTurbulenceModelPtr_
DATurbulenceModel pointer.
autoPtr< DAOption > daOptionPtr_
DAOption pointer.
static autoPtr< DATurbulenceModel > New(const word modelType, const fvMesh &mesh, const DAOption &daOption)
virtual label solvePrimal()
solve the primal equations
defineTypeNameAndDebug(DAFunction, 0)
DARhoSimpleCFoam(char *argsAll, PyObject *pyOptions)
label regModelFail_
whether the regModel compute fails
autoPtr< Time > runTimePtr_
runTime pointer
autoPtr< fvMesh > meshPtr_
fvMesh pointer
autoPtr< argList > argsPtr_
args pointer
virtual void initSolver()
initialize fields and variables
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