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