CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Temperature in rhoSimpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/88041-temperature-rhosimplefoam.html)

atareen64 May 6, 2011 11:46

Temperature in rhoSimpleFoam
 
Hi all,

Does anybody know how temperature is handled in rhoSimpleFoam? I have a semi-complicated simulation that runs really well and I am getting great results for pressure and velocity but the temperature profile seems quite wrong. From the rhoSimpleFoam.C files I couldn't figure if enthalpy is taking care of temperature.

Basically, this might be stupid but I have no clue how temperature is solved for in rhoSimpleFoam or a simple loop in OF. Can somebody give me some insights?

Thanks a million,
~Ammar.

jcw December 3, 2015 07:59

rhoSimpleFoam
 
Hello!

I am facing the same problem. I try to simulate a radial compressor with pressure ratio about 2. I can not see any temperature rise. This behaviour is unphysical. OF2.3.
Does anyone have a hint?

Regards, JCW

olivierG December 3, 2015 10:05

hello,
take a look at http://cfd.direct/openfoam/energy-equation/
... and also the source file EEqn.H for rhoSimpleFoam.

what did you use in you thermophysicalProperties ? enthalpy or internal energy ?

regards,
olivier

anthony761 February 11, 2021 10:33

Quote:

Originally Posted by olivierG (Post 576074)
hello,
take a look at http://cfd.direct/openfoam/energy-equation/
... and also the source file EEqn.H for rhoSimpleFoam.

what did you use in you thermophysicalProperties ? enthalpy or internal energy ?

regards,
olivier

Ok, I think I understand now ...
I observed same problem with a calculation of a centrifugal compressor.

OpenFOAM-v2006
Geometry: Centrifugal compressor, only one blade passage with cyclic/cyclicAMI (with diffuser vanedless and without volute)
BCs: flowRateInletVelocity with fixedValue temperature inlet and fixedValue pressure outlet
MRF model
Turbulence: kOmegaSST
Thermophysical: hePsiThermo/heRhoThermo, pureMixture, transport const, hConst, perfectGas, sensibleInternalEnergy/Enthalpy
Solvers: rhoSimpleFoam, rhoCentralFoam, sonicFoam

The pressure increased as expected at the exit but not the temperature which seems remain almost constant.

So is this due to the viscous heating term \mathbf{\nabla\cdot(\tau\cdot U)} missing in the energy equation? And probably the most important question: Why OpenFOAM doesn't include this term in energy equation?

It seems that lot of people is facing about this problem, see:

tomf February 12, 2021 05:28

Hi,

It is usually not important for a lot of flows, but it is available via fvOptions in the OpenFOAM.com variants:

viscous dissipation fvOption

I do remember I once created something myself many years ago, but I would use that fvOption if I need it again.

Cheers,
Tom

anthony761 March 1, 2021 08:54

Quote:

Originally Posted by tomf (Post 796032)
Hi,

It is usually not important for a lot of flows, but it is available via fvOptions in the OpenFOAM.com variants:

viscous dissipation fvOption

I do remember I once created something myself many years ago, but I would use that fvOption if I need it again.

Cheers,
Tom

Thanks a lot! It's better :) behaviour is much more phyisical, I haven't my temperature level I have expected but I will continue to look for it.


All times are GMT -4. The time now is 07:39.