CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

RhoCentralFoam internal energy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2022, 13:06
Default RhoCentralFoam internal energy
  #1
New Member
 
Alessio Piccolo
Join Date: May 2022
Location: Italy
Posts: 9
Rep Power: 4
Ale22pic is on a distinguished road
Hi everybody, it is my first thread, even if I'm always on this forum reading other threads in order to learn something new.

Anyway, I'm working on Openfoam V2112 for my PhD project and more precisely on a solver developed here in my group, called rhoEnergyFoam, which is based on rhoCentralFoam but obviously, there are some modifications.

The solver works perfectly on V6 and V2006 versions, but now we are trying to use it on V2112 too, but I've found that there is a problem in rhoCentralFoam in V2112.

If you do whatever rhoCentralFoam tutorial, and asking to the code to give you in the output the specific internal energy "e" (Info << "e \n" << e << endl; in rhoCentralFoam.C) you'll find that the energy is negative. This value seems to not be a problem for rhoCentralFoam, but for my solver, it is since I got a square root of this value.

Reading the createFields.H in rhoCentralFoam the specific internal energy "e" is defined as follows:

Code:
Info<< "Reading thermophysical properties\n" << endl;

autoPtr<psiThermo> pThermo
(
    psiThermo::New(mesh)
);
psiThermo& thermo = pThermo();

volScalarField& e = thermo.he();
Does anybody have the same issues? How can be solved? And also does anybody know how it is defined "e"? I've searched in all the OpenFOAM files.

Thanks in advance for your time.
Ale22pic is offline   Reply With Quote

Old   July 13, 2022, 09:57
Default
  #2
New Member
 
Ali Shahanaghi
Join Date: Nov 2016
Posts: 3
Rep Power: 10
Alishaha2 is on a distinguished road
Hello Alessio,


Probably it is from your reference temperature (Tref).
if you get negative energy values it means for your case the reference temperature is bellow the standard temperature (300 K).

you can fix it in thermophysicalProperties file by setting:


mixture
{
thermodynamics
{
Tref 0; // or etc.
}
}


Best,
Ali
Alishaha2 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turbulence dissipation vs Viscous dissipation granzer Main CFD Forum 18 January 10, 2022 01:27
Internal Energy vs. Enthalpy TommyM Main CFD Forum 3 May 16, 2020 14:32
Internal Energy in Fluent ymoucha Main CFD Forum 1 February 11, 2014 05:07
energy equation in rhoCentralFoam nakul OpenFOAM 0 October 10, 2010 16:07
Internal fan - energy used pk FLUENT 0 April 22, 2008 08:01


All times are GMT -4. The time now is 01:29.