mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: interCondensingEvaporatingFoam - updated for postProcess utility; tidying
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
interPhaseChangePath = $(FOAM_SOLVERS)/multiphase/interPhaseChangeFoam
|
interPhaseChangePath = $(FOAM_SOLVERS)/multiphase/interPhaseChangeFoam
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
|
-I. \
|
||||||
-ItemperaturePhaseChangeTwoPhaseMixtures/lnInclude \
|
-ItemperaturePhaseChangeTwoPhaseMixtures/lnInclude \
|
||||||
-I$(interPhaseChangePath) \
|
-I$(interPhaseChangePath) \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
|
|||||||
@ -38,10 +38,6 @@
|
|||||||
temperaturePhaseChangeTwoPhaseMixture::New(thermo(), mesh);
|
temperaturePhaseChangeTwoPhaseMixture::New(thermo(), mesh);
|
||||||
|
|
||||||
|
|
||||||
volScalarField& T = thermo->T();
|
|
||||||
volScalarField& e = thermo->he();
|
|
||||||
e.oldTime();
|
|
||||||
|
|
||||||
// Correct e from T and alpha
|
// Correct e from T and alpha
|
||||||
//thermo->correct();
|
//thermo->correct();
|
||||||
|
|
||||||
@ -81,10 +77,9 @@
|
|||||||
incompressible::turbulenceModel::New(U, phi, thermo())
|
incompressible::turbulenceModel::New(U, phi, thermo())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#include "readGravitationalAcceleration.H"
|
||||||
Info<< "Calculating field g.h\n" << endl;
|
#include "readhRef.H"
|
||||||
volScalarField gh("gh", g & mesh.C());
|
#include "gh.H"
|
||||||
surfaceScalarField ghf("ghf", g & mesh.Cf());
|
|
||||||
|
|
||||||
volScalarField& p = thermo->p();
|
volScalarField& p = thermo->p();
|
||||||
|
|
||||||
@ -110,6 +105,9 @@
|
|||||||
p_rgh = p - rho*gh;
|
p_rgh = p - rho*gh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mesh.setFluxRequired(p_rgh.name());
|
||||||
|
mesh.setFluxRequired(alpha1.name());
|
||||||
|
|
||||||
// Turbulent Prandtl number
|
// Turbulent Prandtl number
|
||||||
dimensionedScalar Prt("Prt", dimless, thermo->transportPropertiesDict());
|
dimensionedScalar Prt("Prt", dimless, thermo->transportPropertiesDict());
|
||||||
|
|
||||||
@ -141,3 +139,4 @@
|
|||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("pDivU", p.dimensions()/dimTime, 0)
|
dimensionedScalar("pDivU", p.dimensions()/dimTime, 0)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -56,19 +56,22 @@ Description
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#include "postProcess.H"
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createMesh.H"
|
#include "createMesh.H"
|
||||||
|
#include "createControl.H"
|
||||||
pimpleControl pimple(mesh);
|
|
||||||
|
|
||||||
#include "readGravitationalAcceleration.H"
|
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "createTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
|
volScalarField& T = thermo->T();
|
||||||
|
volScalarField& e = thermo->he();
|
||||||
|
e.oldTime();
|
||||||
|
|
||||||
turbulence->validate();
|
turbulence->validate();
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user