nonUnityLewisEddyDiffusivity: Laminar unity Lewis assumption
The laminar Lewis number is now assumed to be one. This model only provides specification of the turbulent diffusivity properties.
This commit is contained in:
@ -181,6 +181,27 @@ public:
|
|||||||
return this->thermo().alphahe(patchi);
|
return this->thermo().alphahe(patchi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- Effective mass diffusivity for a given specie mass-fraction [kg/m/s]
|
||||||
|
virtual tmp<volScalarField> DEff(const volScalarField& Yi) const
|
||||||
|
{
|
||||||
|
return volScalarField::New
|
||||||
|
(
|
||||||
|
"DEff",
|
||||||
|
alphaEff()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Effective mass diffusivity for a given specie mass-fraction
|
||||||
|
// for patch [kg/m/s]
|
||||||
|
virtual tmp<scalarField> DEff
|
||||||
|
(
|
||||||
|
const volScalarField& Yi,
|
||||||
|
const label patchi
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
return alphaEff(patchi);
|
||||||
|
}
|
||||||
|
|
||||||
//- Correct the laminar transport
|
//- Correct the laminar transport
|
||||||
virtual void correct();
|
virtual void correct();
|
||||||
|
|
||||||
|
|||||||
@ -116,6 +116,17 @@ public:
|
|||||||
// for patch [kg/m/s]
|
// for patch [kg/m/s]
|
||||||
virtual tmp<scalarField> alphaEff(const label patchi) const = 0;
|
virtual tmp<scalarField> alphaEff(const label patchi) const = 0;
|
||||||
|
|
||||||
|
//- Effective mass diffusivity for a given specie mass-fraction [kg/m/s]
|
||||||
|
virtual tmp<volScalarField> DEff(const volScalarField& Yi) const = 0;
|
||||||
|
|
||||||
|
//- Effective mass diffusivity for a given specie mass-fraction
|
||||||
|
// for patch [kg/m/s]
|
||||||
|
virtual tmp<scalarField> DEff
|
||||||
|
(
|
||||||
|
const volScalarField& Yi,
|
||||||
|
const label patchi
|
||||||
|
) const = 0;
|
||||||
|
|
||||||
//- Return the heat flux
|
//- Return the heat flux
|
||||||
virtual tmp<volVectorField> q() const = 0;
|
virtual tmp<volVectorField> q() const = 0;
|
||||||
|
|
||||||
|
|||||||
@ -175,7 +175,7 @@ eddyDiffusivity<TurbulenceThermophysicalTransportModel>::j
|
|||||||
"j(" + Yi.name() + ')',
|
"j(" + Yi.name() + ')',
|
||||||
this->momentumTransport().alphaRhoPhi().group()
|
this->momentumTransport().alphaRhoPhi().group()
|
||||||
),
|
),
|
||||||
-this->alphaEff()*this->alpha()*fvc::grad(Yi)
|
-this->DEff(Yi)*this->alpha()*fvc::grad(Yi)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ eddyDiffusivity<TurbulenceThermophysicalTransportModel>::divj
|
|||||||
volScalarField& Yi
|
volScalarField& Yi
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return -fvm::laplacian(this->alpha()*this->alphaEff(), Yi);
|
return -fvm::laplacian(this->alpha()*this->DEff(Yi), Yi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -178,6 +178,27 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- Effective mass diffusivity for a given specie mass-fraction [kg/m/s]
|
||||||
|
virtual tmp<volScalarField> DEff(const volScalarField& Yi) const
|
||||||
|
{
|
||||||
|
return volScalarField::New
|
||||||
|
(
|
||||||
|
"DEff",
|
||||||
|
alphaEff()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Effective mass diffusivity for a given specie mass-fraction
|
||||||
|
// for patch [kg/m/s]
|
||||||
|
virtual tmp<scalarField> DEff
|
||||||
|
(
|
||||||
|
const volScalarField& Yi,
|
||||||
|
const label patchi
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
return alphaEff(patchi);
|
||||||
|
}
|
||||||
|
|
||||||
//- Return the heat flux
|
//- Return the heat flux
|
||||||
virtual tmp<volVectorField> q() const;
|
virtual tmp<volVectorField> q() const;
|
||||||
|
|
||||||
|
|||||||
@ -95,17 +95,17 @@ nonUnityLewisEddyDiffusivity<TurbulenceThermophysicalTransportModel>::q() const
|
|||||||
|
|
||||||
const PtrList<volScalarField>& Y = composition.Y();
|
const PtrList<volScalarField>& Y = composition.Y();
|
||||||
|
|
||||||
volScalarField alphaEffMinusDEff
|
volScalarField alphatMinusDt
|
||||||
(
|
(
|
||||||
"alphaEffMinusDEff",
|
"alphatMinusDt",
|
||||||
this->alphaEff()*(1 - this->Prt_/Sct_)
|
this->alphat()*(1 - this->Prt_/Sct_)
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(Y, i)
|
forAll(Y, i)
|
||||||
{
|
{
|
||||||
tmpq.ref() +=
|
tmpq.ref() +=
|
||||||
this->alpha()
|
this->alpha()
|
||||||
*alphaEffMinusDEff
|
*alphatMinusDt
|
||||||
*composition.HE(i, this->thermo().p(), this->thermo().T())
|
*composition.HE(i, this->thermo().p(), this->thermo().T())
|
||||||
*fvc::grad(Y[i]);
|
*fvc::grad(Y[i]);
|
||||||
}
|
}
|
||||||
@ -131,10 +131,10 @@ nonUnityLewisEddyDiffusivity<TurbulenceThermophysicalTransportModel>::divq
|
|||||||
|
|
||||||
const PtrList<volScalarField>& Y = composition.Y();
|
const PtrList<volScalarField>& Y = composition.Y();
|
||||||
|
|
||||||
volScalarField alphaEffMinusDEff
|
volScalarField alphatMinusDt
|
||||||
(
|
(
|
||||||
"alphaEffMinusDEff",
|
"alphatMinusDt",
|
||||||
this->alphaEff()*(1 - this->Prt_/Sct_)
|
this->alphat()*(1 - this->Prt_/Sct_)
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(Y, i)
|
forAll(Y, i)
|
||||||
@ -143,7 +143,7 @@ nonUnityLewisEddyDiffusivity<TurbulenceThermophysicalTransportModel>::divq
|
|||||||
fvc::laplacian
|
fvc::laplacian
|
||||||
(
|
(
|
||||||
this->alpha()
|
this->alpha()
|
||||||
*alphaEffMinusDEff
|
*alphatMinusDt
|
||||||
*composition.HE(i, this->thermo().p(), this->thermo().T()),
|
*composition.HE(i, this->thermo().p(), this->thermo().T()),
|
||||||
Y[i]
|
Y[i]
|
||||||
);
|
);
|
||||||
@ -154,32 +154,6 @@ nonUnityLewisEddyDiffusivity<TurbulenceThermophysicalTransportModel>::divq
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class TurbulenceThermophysicalTransportModel>
|
|
||||||
tmp<volVectorField>
|
|
||||||
nonUnityLewisEddyDiffusivity<TurbulenceThermophysicalTransportModel>::j
|
|
||||||
(
|
|
||||||
const volScalarField& Yi
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
return
|
|
||||||
this->Prt_/Sct_
|
|
||||||
*eddyDiffusivity<TurbulenceThermophysicalTransportModel>::j(Yi);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class TurbulenceThermophysicalTransportModel>
|
|
||||||
tmp<fvScalarMatrix>
|
|
||||||
nonUnityLewisEddyDiffusivity<TurbulenceThermophysicalTransportModel>::divj
|
|
||||||
(
|
|
||||||
volScalarField& Yi
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
return
|
|
||||||
this->Prt_/Sct_
|
|
||||||
*eddyDiffusivity<TurbulenceThermophysicalTransportModel>::divj(Yi);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace turbulenceThermophysicalTransportModels
|
} // End namespace turbulenceThermophysicalTransportModels
|
||||||
|
|||||||
@ -27,7 +27,8 @@ Class
|
|||||||
Description
|
Description
|
||||||
Non-unity-Lewis-Eddy-diffusivity based gradient heat flux model for RAS or
|
Non-unity-Lewis-Eddy-diffusivity based gradient heat flux model for RAS or
|
||||||
LES of turbulent flow. Allows independent specification of turbulent
|
LES of turbulent flow. Allows independent specification of turbulent
|
||||||
Prandtl and Schmidt numbers.
|
Prandtl and Schmidt numbers. The laminar Lewis number is still assumed to
|
||||||
|
equal one.
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
\verbatim
|
\verbatim
|
||||||
@ -113,17 +114,36 @@ public:
|
|||||||
//- Read thermophysicalTransport dictionary
|
//- Read thermophysicalTransport dictionary
|
||||||
virtual bool read();
|
virtual bool read();
|
||||||
|
|
||||||
|
//- Effective mass diffusivity for a given specie mass-fraction [kg/m/s]
|
||||||
|
virtual tmp<volScalarField> DEff(const volScalarField& Yi) const
|
||||||
|
{
|
||||||
|
return volScalarField::New
|
||||||
|
(
|
||||||
|
"DEff",
|
||||||
|
this->thermo().alphaEff(this->Prt_/Sct_*this->alphat())
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Effective mass diffusivity for a given specie mass-fraction
|
||||||
|
// for patch [kg/m/s]
|
||||||
|
virtual tmp<scalarField> DEff
|
||||||
|
(
|
||||||
|
const volScalarField& Yi,
|
||||||
|
const label patchi
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
return this->thermo().alphaEff
|
||||||
|
(
|
||||||
|
this->Prt_.value()/Sct_.value()*this->alphat(patchi),
|
||||||
|
patchi
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
//- Return the heat flux
|
//- Return the heat flux
|
||||||
virtual tmp<volVectorField> q() const;
|
virtual tmp<volVectorField> q() const;
|
||||||
|
|
||||||
//- Return the source term for the energy equation
|
//- Return the source term for the energy equation
|
||||||
virtual tmp<fvScalarMatrix> divq(volScalarField& he) const;
|
virtual tmp<fvScalarMatrix> divq(volScalarField& he) const;
|
||||||
|
|
||||||
//- Return the specie flux for the given specie mass-fraction
|
|
||||||
virtual tmp<volVectorField> j(const volScalarField& Yi) const;
|
|
||||||
|
|
||||||
//- Return the source term for the given specie mass-fraction equation
|
|
||||||
virtual tmp<fvScalarMatrix> divj(volScalarField& Yi) const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user