fluidThermophysicalTransportModel: Removed alphaEff from the public interface
alphaEff is now an internal field used only for the implicit energy correction term, kappaEff, q and divq are the general and rational interface to thermal transport. XiFoam and PDRFoam now explicitly instantiate a unityLewisEddyDiffusivity fluidThermophysicalTransportModel as the the unity Lewis number approximation is hard-coded into the formulation of the energy/composition system.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
? mvConvection->fvcDiv(fvc::absolute(phi, rho, U), p/rho)
|
||||
: -dpdt
|
||||
)
|
||||
- fvm::laplacian(thermophysicalTransport->alphaEff(), hea)
|
||||
+ thermophysicalTransport.divq(hea)
|
||||
+ fvModels.source(rho, hea)
|
||||
);
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ if (ign.ignited())
|
||||
*rho/thermo.rhou()
|
||||
: -dpdt*rho/thermo.rhou()
|
||||
)
|
||||
- fvm::laplacian(thermophysicalTransport->alphaEff(), heau)
|
||||
+ thermophysicalTransport.divq(heau)
|
||||
|
||||
// These terms cannot be used in partially-premixed combustion due to
|
||||
// the resultant inconsistency between ft and heau transport.
|
||||
|
||||
@ -70,7 +70,8 @@ Description
|
||||
#include "fvCFD.H"
|
||||
#include "psiuMulticomponentThermo.H"
|
||||
#include "compressibleMomentumTransportModels.H"
|
||||
#include "fluidThermoThermophysicalTransportModel.H"
|
||||
#include "RASThermophysicalTransportModel.H"
|
||||
#include "unityLewisEddyDiffusivity.H"
|
||||
#include "laminarFlameSpeed.H"
|
||||
#include "XiModel.H"
|
||||
#include "PDRDragModel.H"
|
||||
@ -144,7 +145,7 @@ int main(int argc, char *argv[])
|
||||
if (pimple.turbCorr())
|
||||
{
|
||||
turbulence->correct();
|
||||
thermophysicalTransport->correct();
|
||||
thermophysicalTransport.correct();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -58,15 +58,17 @@ autoPtr<compressible::RASModel> turbulence
|
||||
);
|
||||
|
||||
Info<< "Creating thermophysical transport model\n" << endl;
|
||||
autoPtr<RASFluidThermophysicalTransportModel>
|
||||
thermophysicalTransport
|
||||
(
|
||||
RASFluidThermophysicalTransportModel::New
|
||||
(
|
||||
turbulence(),
|
||||
thermo
|
||||
)
|
||||
);
|
||||
turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity
|
||||
<
|
||||
RASThermophysicalTransportModel
|
||||
<
|
||||
ThermophysicalTransportModel
|
||||
<
|
||||
compressibleMomentumTransportModel,
|
||||
fluidThermo
|
||||
>
|
||||
>
|
||||
> thermophysicalTransport(turbulence(), thermo, true);
|
||||
|
||||
Info<< "Creating field dpdt\n" << endl;
|
||||
volScalarField dpdt
|
||||
|
||||
@ -52,7 +52,8 @@ Description
|
||||
#include "fvCFD.H"
|
||||
#include "psiuMulticomponentThermo.H"
|
||||
#include "compressibleMomentumTransportModels.H"
|
||||
#include "fluidThermoThermophysicalTransportModel.H"
|
||||
#include "RASThermophysicalTransportModel.H"
|
||||
#include "unityLewisEddyDiffusivity.H"
|
||||
#include "laminarFlameSpeed.H"
|
||||
#include "ignition.H"
|
||||
#include "Switch.H"
|
||||
@ -177,7 +178,7 @@ int main(int argc, char *argv[])
|
||||
if (pimple.turbCorr())
|
||||
{
|
||||
turbulence->correct();
|
||||
thermophysicalTransport->correct();
|
||||
thermophysicalTransport.correct();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -52,7 +52,7 @@ if (ign.ignited())
|
||||
+ mvConvection->fvmDiv(phi, b)
|
||||
+ fvm::div(phiSt, b)
|
||||
- fvm::Sp(fvc::div(phiSt), b)
|
||||
- fvm::laplacian(thermophysicalTransport->alphaEff(), b)
|
||||
- fvm::laplacian(thermophysicalTransport.DEff(b), b)
|
||||
==
|
||||
fvModels.source(rho, b)
|
||||
);
|
||||
@ -105,7 +105,7 @@ if (ign.ignited())
|
||||
phiSt
|
||||
- fvc::interpolate
|
||||
(
|
||||
fvc::laplacian(thermophysicalTransport->alphaEff(), b)/mgb
|
||||
fvc::laplacian(thermophysicalTransport.DEff(b), b)/mgb
|
||||
)*nf
|
||||
+ fvc::interpolate(rho)*fvc::interpolate(Su*(1.0/Xi - Xi))*nf
|
||||
);
|
||||
|
||||
@ -59,10 +59,17 @@ autoPtr<compressible::momentumTransportModel> turbulence
|
||||
);
|
||||
|
||||
Info<< "Creating thermophysical transport model\n" << endl;
|
||||
autoPtr<fluidThermoThermophysicalTransportModel> thermophysicalTransport
|
||||
(
|
||||
fluidThermoThermophysicalTransportModel::New(turbulence(), thermo)
|
||||
);
|
||||
turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity
|
||||
<
|
||||
RASThermophysicalTransportModel
|
||||
<
|
||||
ThermophysicalTransportModel
|
||||
<
|
||||
compressibleMomentumTransportModel,
|
||||
fluidThermo
|
||||
>
|
||||
>
|
||||
> thermophysicalTransport(turbulence(), thermo, true);
|
||||
|
||||
Info<< "Creating field dpdt\n" << endl;
|
||||
volScalarField dpdt
|
||||
|
||||
@ -17,7 +17,7 @@ if (composition.contains("ft"))
|
||||
(
|
||||
fvm::ddt(rho, ft)
|
||||
+ mvConvection->fvmDiv(phi, ft)
|
||||
- fvm::laplacian(thermophysicalTransport->alphaEff(), ft)
|
||||
- fvm::laplacian(thermophysicalTransport.DEff(ft), ft)
|
||||
==
|
||||
fvModels.source(rho, ft)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user