89 #include "setDeltaT.H"
95 int main(
int argc,
char *argv[])
117 solvers[i].preSolve();
120 solvers.setGlobalPrefix();
127 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
134 solvers[i].moveMesh();
139 solvers[i].motionCorrector();
144 solvers[i].fvModels().correct();
149 solvers[i].prePredictor();
154 solvers[i].momentumPredictor();
157 while (
pimple.correctEnergy())
161 solvers[i].thermophysicalPredictor();
167 solvers[i].pressureCorrector();
172 solvers[i].postCorrector();
178 solvers[i].postSolve();
181 solvers.setGlobalPrefix();
185 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
186 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
#define forAll(list, i)
Loop across all elements in list.
bool run(Time &time)
Time run loop.
Pimple multi-region control class. As Foam::pimpleControl, but for a multi- region simulation compris...
Class to hold the lists of region meshes and solvers.
pimpleControl pimple(mesh)
int main(int argc, char *argv[])
void adjustDeltaT(Time &runTime, const PtrList< solver > &solvers)
Adjust the time-step according to the solver maxDeltaT.
void setDeltaT(Time &runTime, const PtrList< solver > &solvers)
Set the initial time-step according to the solver maxDeltaT.
Ostream & endl(Ostream &os)
Add newline and flush stream.