twoPhaseEulerFoam/twoPhaseSystem/diameterModels/IATE: Added fvOptions support
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1402
This commit is contained in:
parent
994a61992e
commit
5252c800eb
@ -1,13 +1,16 @@
|
||||
EXE_INC = \
|
||||
-I../twoPhaseSystem \
|
||||
-I../interfacialModels/lnInclude \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
|
||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||
-I$(LIB_SRC)/TurbulenceModels/phaseCompressible/lnInclude
|
||||
-I$(LIB_SRC)/TurbulenceModels/phaseCompressible/lnInclude \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/fvOptions/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(LIB_SRC)/sampling/lnInclude
|
||||
|
||||
LIB_LIBS = \
|
||||
-lincompressibleTransportModels \
|
||||
|
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -32,6 +32,7 @@ License
|
||||
#include "fvcDdt.H"
|
||||
#include "fvcDiv.H"
|
||||
#include "fvcAverage.H"
|
||||
#include "fvOptionList.H"
|
||||
#include "mathematicalConstants.H"
|
||||
#include "fundamentalConstants.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
@ -155,6 +156,13 @@ void Foam::diameterModels::IATE::correct()
|
||||
R -= sources_[j].R();
|
||||
}
|
||||
|
||||
// const_cast needed because the operators and functions of fvOptions
|
||||
// are currently non-const.
|
||||
fv::optionList& fvOptions = const_cast<fv::optionList&>
|
||||
(
|
||||
phase_.U().mesh().lookupObject<fv::optionList>("fvOptions")
|
||||
);
|
||||
|
||||
// Construct the interfacial curvature equation
|
||||
fvScalarMatrix kappaiEqn
|
||||
(
|
||||
@ -163,9 +171,13 @@ void Foam::diameterModels::IATE::correct()
|
||||
==
|
||||
- fvm::SuSp(R, kappai_)
|
||||
//+ Rph() // Omit the nucleation/condensation term
|
||||
+ fvOptions(kappai_)
|
||||
);
|
||||
|
||||
kappaiEqn.relax();
|
||||
|
||||
fvOptions.constrain(kappaiEqn);
|
||||
|
||||
kappaiEqn.solve();
|
||||
|
||||
// Update the Sauter-mean diameter
|
||||
|
Loading…
Reference in New Issue
Block a user