CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   alphaEff (https://www.cfd-online.com/Forums/openfoam-pre-processing/154939-alphaeff.html)

zahraa June 22, 2015 22:44

alphaEff
 
Hello foamers,
I would like to find the difinition of alphaEff() wich is used in hEqn.H in following form :

fvm::laplacian(turb.alphaEff(), h)


Does anyone know where "alphaEff()" is defined?:confused:

alexeym June 23, 2015 02:27

Hi,

I guess, turb in your message is compressible turbulent model, so for RAS alphaEff is defined as

Code:

virtual tmp<volScalarField> alphaEff() const
{
    return thermo().alphaEff(alphat());
}

for LES it is

Code:

virtual tmp<volScalarField> alphaEff() const
{
    return thermo().alphaEff(alphaSgs());
}

and finally thermo.alphaEff() is http://foam.sourceforge.net/docs/cpp...b7cebc3adf4b1d

pmdelgado2 August 19, 2016 12:47

It took me a very long time to figure this one out. The reason why it took me (and probably you) so long is because of the complicated structure of openFoam's thermophysical classes.

As alexeym indicates, no matter which type of turbulence model you choose (RAS or LES), the turbulence model will have a call to a thermophysical model. Searching through the various files, i figured out that in

/src/thermophysicalModels/basic/heThermo/heThermo.C

you will find a line that says something along the lines that

alphaEff = CpByCpv* (alpha + alphat)

I haven't found any other thermophysical model that also says this (if anyone discovers another one like this, please post a reply!!)

Note: alpha is defined in the

/src/thermophysicalModels/basic/basicThermo/basicThermo.H

as having the units kg/m/s. This probably looks strange to you knowing that thermal conductivity (kappa) usually has units of kg*m/s^3/k, where k is the degrees in kelvin.

In effect, alpha is known as the thermal diffusivity for the enthalpy of a mixture, where as kappa is the thermal diffusivity for temperature. The relation between the two is that

kappa = alpha * Cp,

where Cp is the specific heat capacity at constant pressure.

You may also notice that the definition of alphaEff above is also scaled by a factor of CpByCpv. CpByCpv = Cp/Cpv, where Cpv is the specific heat capacity at constant pressure/volume.

Depending on which energy model you use, e.g. sensibleEnthalpy, then

cpbycpv = 1

since it is assumed that cp=cpv.

If you use sensibleInternalEnergy, then

cpbycpv = Cp/Cv,

where cv is the specific heat capacity at constant volume.

The different types of energy models can be found in the directory

src/thermophysicalModels/specie/thermo

However, keep in mind that some solvers limit which of these energy models that you can use.

vasava September 1, 2016 06:37

Quote:

Originally Posted by pmdelgado2 (Post 614701)
In effect, alpha is known as the thermal diffusivity for the enthalpy of a mixture, where as kappa is the thermal diffusivity for temperature.

Did you mean, alphaEff is known as the thermal diffusivity for the enthalpy of a mixture, where as kappaEff is the thermal diffusivity for temperature?

Quote:

Originally Posted by pmdelgado2 (Post 614701)
where as kappa is the thermal diffusivity for temperature

You mean that kappa is the thermal conductivity, right?

PositronCascade December 8, 2016 16:13

Dear Paritosh,

kappa is thermal diffusivity in OpenFOAM, isn't it correct? And I think it is Alpha / Cp as OpenFOAM SIMPLE solvers neglect the rho.

amuzeshi May 17, 2020 08:43

Quote:

Originally Posted by alexeym (Post 551605)
Hi,

I guess, turb in your message...
...and finally thermo.alphaEff() is http://foam.sourceforge.net/docs/cpp...b7cebc3adf4b1d

Dear alexy,
The link has been corrupted. Please include a new one, as your description is insightful.


All times are GMT -4. The time now is 18:40.