mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: pisoFoam: allow runTimeModifiable. Fixes #2997.
This commit is contained in:
@ -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"
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user