ENH: Updated steadyReactingParcelFoam -> LTSReactingParcelFoam
This commit is contained in:
parent
7d1e727372
commit
b2de414a99
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2008-2010 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,17 +22,13 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
porousExplicitSourceReactingParcelFoam
|
||||
LTSReactingParcelFoam
|
||||
|
||||
Description
|
||||
Transient PISO solver for compressible, laminar or turbulent flow with
|
||||
reacting multiphase Lagrangian parcels for porous media, including explicit
|
||||
sources for mass, momentum and energy
|
||||
|
||||
The solver includes:
|
||||
- reacting multiphase parcel cloud
|
||||
- porous media
|
||||
- mass, momentum and energy sources
|
||||
Local time stepping (LTS) solver for steady, compressible, laminar or
|
||||
turbulent reacting and non-reacting flow with multiphase Lagrangian
|
||||
parcels and porous media, including explicit sources for mass, momentum
|
||||
and energy
|
||||
|
||||
Note: ddtPhiCorr not used here when porous zones are active
|
||||
- not well defined for porous calculations
|
||||
@ -75,7 +71,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
while (runTime.run())
|
||||
{
|
||||
#include "readSIMPLEControls.H"
|
||||
#include "readPISOControls.H"
|
||||
#include "readChemistryProperties.H"
|
||||
#include "readAdditionalSolutionControls.H"
|
||||
#include "readTimeControls.H"
|
||||
@ -84,26 +80,24 @@ int main(int argc, char *argv[])
|
||||
|
||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||
|
||||
p.storePrevIter();
|
||||
parcels.evolve();
|
||||
|
||||
// --- Pressure-velocity corrector
|
||||
#include "chemistry.H"
|
||||
#include "timeScales.H"
|
||||
|
||||
#include "rhoEqn.H"
|
||||
#include "UEqn.H"
|
||||
#include "YEqn.H"
|
||||
#include "hsEqn.H"
|
||||
|
||||
// --- PISO loop
|
||||
for (int corr=0; corr<nCorr; corr++)
|
||||
{
|
||||
parcels.evolve();
|
||||
|
||||
#include "chemistry.H"
|
||||
|
||||
#include "timeScales.H"
|
||||
|
||||
#include "rhoEqn.H"
|
||||
#include "UEqn.H"
|
||||
#include "YEqn.H"
|
||||
#include "hsEqn.H"
|
||||
|
||||
#include "pEqn.H"
|
||||
|
||||
turbulence->correct();
|
||||
}
|
||||
|
||||
turbulence->correct();
|
||||
|
||||
if (runTime.write())
|
||||
{
|
||||
chemistry.dQ()().write();
|
@ -0,0 +1,3 @@
|
||||
LTSReactingParcelFoam.C
|
||||
|
||||
EXE = $(FOAM_APPBIN)/LTSReactingParcelFoam
|
@ -73,12 +73,12 @@
|
||||
|
||||
dimensionedScalar rhoMax
|
||||
(
|
||||
mesh.solutionDict().subDict("SIMPLE").lookup("rhoMax")
|
||||
mesh.solutionDict().subDict("PISO").lookup("rhoMax")
|
||||
);
|
||||
|
||||
dimensionedScalar rhoMin
|
||||
(
|
||||
mesh.solutionDict().subDict("SIMPLE").lookup("rhoMin")
|
||||
mesh.solutionDict().subDict("PISO").lookup("rhoMin")
|
||||
);
|
||||
|
||||
Info<< "Creating turbulence model\n" << endl;
|
@ -48,9 +48,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Explicitly relax pressure for momentum corrector
|
||||
p.relax();
|
||||
|
||||
Info<< "p min/max = " << min(p).value() << ", " << max(p).value() << endl;
|
||||
|
||||
// Second part of thermodynamic density update
|
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2008-2010 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2008-2011 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
@ -1,3 +0,0 @@
|
||||
steadyReactingParcelFoam.C
|
||||
|
||||
EXE = $(FOAM_APPBIN)/steadyReactingParcelFoam
|
@ -8,4 +8,4 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
runApplication blockMesh
|
||||
|
||||
# run the solver
|
||||
runApplication steadyReactingParcelFoam
|
||||
runApplication LTSReactingParcelFoam
|
@ -51,4 +51,8 @@ maxCo 0.5;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
alphaTauSpecie 1e10;
|
||||
|
||||
alphaTauTemp 0.005;
|
||||
|
||||
// ************************************************************************* //
|
@ -53,8 +53,9 @@ solvers
|
||||
}
|
||||
}
|
||||
|
||||
SIMPLE
|
||||
PISO
|
||||
{
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
momentumPredictor yes;
|
||||
rhoMin rhoMin [1 -3 0 0 0] 0.1;
|
@ -8,6 +8,6 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
runApplication blockMesh
|
||||
|
||||
# run the solver
|
||||
runApplication steadyReactingParcelFoam
|
||||
runApplication LTSReactingParcelFoam
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
@ -61,8 +61,9 @@ solvers
|
||||
};
|
||||
}
|
||||
|
||||
SIMPLE
|
||||
PISO
|
||||
{
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0; // 10;
|
||||
momentumPredictor yes;
|
||||
rhoMin rhoMin [ 1 -3 0 0 0 ] 0; // 0.5;
|
Loading…
Reference in New Issue
Block a user