87 #include "setDeltaT.H"
93 int main(
int argc,
char *argv[])
115 solvers[i].preSolve();
118 solvers.setGlobalPrefix();
125 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
134 solvers[i].moveMesh();
142 solvers[i].motionCorrector();
150 solvers[i].fvModels().correct();
156 solvers[i].prePredictor();
164 && solvers[i].pimple.flow()
167 solvers[i].momentumTransportPredictor();
176 && solvers[i].pimple.thermophysics()
179 solvers[i].thermophysicalTransportPredictor();
187 solvers[i].momentumPredictor();
191 while (
pimple.correctEnergy())
197 solvers[i].thermophysicalPredictor();
206 solvers[i].pressureCorrector();
215 && solvers[i].pimple.flow()
218 solvers[i].momentumTransportCorrector();
227 && solvers[i].pimple.thermophysics()
230 solvers[i].thermophysicalTransportCorrector();
237 solvers[i].postSolve();
240 solvers.setGlobalPrefix();
244 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
245 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
#define forAll(list, i)
Loop across all elements in list.
bool thermophysics() const
Flag to indicate to solve for the thermophysics.
bool models() const
Flag to indicate to solve for the options models.
bool flow() const
Flag to indicate to solve for the flow.
bool run(Time &time)
Time run loop.
Pimple multi-region control class. As Foam::pimpleControl, but for a multi- region simulation compris...
bool correctTransport() const
Flag to indicate whether to correct the transport models.
bool predictTransport() const
Flag to indicate whether to predict the transport models.
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.