AndreaDesan / pimpleTKEBudgetFoam

OpenFOAM solver to calculate the resolved Reynolds stress, turbulent kinetic energy and dissipation rate at runtime in LES
GNU General Public License v3.0
25 stars 10 forks source link

Dissipation #1

Closed WWIIWWIIWW closed 3 years ago

WWIIWWIIWW commented 3 years ago

Hi, got a feeling that the below line is incorrect in calculating resolved part of dissipation? volScalarField epsilonRes=-2*nuLam*(SRes && SRes); //Instantaneous resolved dissipation rate

Shouldn't it be: volScalarField epsilonRes=-2*nuLam*(gradU && gradU); ->I don't mind the constant -2*nuLam though.

Bests, Kai.

AndreaDesan commented 3 years ago

Hi Kai,

thanks for the message. I think the dissipation rate should be defined based on the gradient of the fluctuating velocity and not of the gradient of the velocity (as in your proposed modification). See the definition of epsilon here and note that the gradients are calculated with respect to u' (UPrime in the code) and not U. This is why SRes is defined as SRes = symm(fvc::grad(UPrime)) and not SRes = symm(fvc::grad(U)), basically because epsilon should be evaluated based on the resolved fluctuating rate of strain (and not on the resolved rate of strain). Hope this clarifies it.

Andrea

WWIIWWIIWW commented 3 years ago

Hi, Thanks for the reply. There was a typo in my last message. I mean, we should probably use volScalarField epsilonRes=-2*nuLam*(gradUPrime && gradUPrime);

If symmetric part of grad(UPrime) is used, you will probably have something like gradU'*gradV' exist in the dissipation?

Kai/

AndreaDesan commented 3 years ago

Hi,

I believe the cross products of the velocity gradient should be in the definition of the dissipation rate (see equation 3 here. I think the definition that is in the code is in agreement with the development shown in Equation 3 of that reference and also with a commonly used definition of the dissipation rate, i.e.

epsilon = -2nu <S'_ij S'ij>

where S'_ij is the fluctuating rate of strain of tensor.

Andrea

WWIIWWIIWW commented 3 years ago

Thanks Andrea, I think I get your points. The epsilon here is basically the sum of the dissipation for 9 Reynolds stress components. It is not directly linked to the kRes containing 3 diagonal components.

Kai.

AndreaDesan commented 3 years ago

Hi Kai, no problem - this was a useful sanity check. I am going to close this issue.

Andrea