ENH: pisoFoam: allow runTimeModifiable. Fixes #2997.

This commit is contained in:
mattijs
2023-10-11 15:54:04 +01:00
parent dfb08af3de
commit 9ac0f03963
3 changed files with 16 additions and 0 deletions

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -105,6 +106,9 @@ int main(int argc, char *argv[])
#include "CourantNo.H"
// Update settings from the control dictionary
piso.read();
// Pressure-velocity PISO corrector
{
#include "UEqn.H"

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2015-2016 OpenFOAM Foundation
Copyright (C) 2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -51,4 +52,12 @@ Foam::pisoControl::~pisoControl()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::pisoControl::read()
{
return pimpleControl::read();
}
// ************************************************************************* //

View File

@ -84,6 +84,9 @@ public:
// Solution control
//- Read controls from fvSolution dictionary
virtual bool read();
//- Return true if in the final inner (PISO) iteration
inline bool finalInnerIter() const;
};