foamRun: Ensure PIMPLE outer loop parameters are re-read if fvSolution changed
This commit is contained in:
@ -123,6 +123,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
while (pimple.run(runTime))
|
||||
{
|
||||
// Update PIMPLE outer-loop parameters if changed
|
||||
pimple.read();
|
||||
|
||||
solver.preSolve();
|
||||
|
||||
// Adjust the time-step according to the solver maxDeltaT
|
||||
|
||||
@ -33,14 +33,6 @@ namespace Foam
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||
|
||||
bool Foam::pimpleSingleRegionControl::read()
|
||||
{
|
||||
return pimple_.read() && pimpleLoop::read();
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::pimpleSingleRegionControl::pimpleSingleRegionControl
|
||||
@ -90,6 +82,12 @@ Foam::pimpleSingleRegionControl::~pimpleSingleRegionControl()
|
||||
|
||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||
|
||||
bool Foam::pimpleSingleRegionControl::read()
|
||||
{
|
||||
return pimple_.read() && pimpleLoop::read();
|
||||
}
|
||||
|
||||
|
||||
bool Foam::pimpleSingleRegionControl::loop()
|
||||
{
|
||||
if (!pimpleLoop::loop(pimple_))
|
||||
|
||||
@ -77,14 +77,6 @@ class pimpleSingleRegionControl
|
||||
pimpleNoLoopControl& pimple_;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
// Protected Member Functions
|
||||
|
||||
//- Read controls
|
||||
virtual bool read();
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Static Data Members
|
||||
@ -108,6 +100,10 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
//- Read controls
|
||||
virtual bool read();
|
||||
|
||||
|
||||
// Evolution
|
||||
|
||||
//- Pimple loop
|
||||
|
||||
Reference in New Issue
Block a user