|
[Sponsors] |
May 19, 2022, 13:06 |
RhoCentralFoam internal energy
|
#1 |
New Member
Alessio Piccolo
Join Date: May 2022
Location: Italy
Posts: 9
Rep Power: 4 |
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(); Thanks in advance for your time. |
|
July 13, 2022, 09:57 |
|
#2 |
New Member
Ali Shahanaghi
Join Date: Nov 2016
Posts: 3
Rep Power: 10 |
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 |
|
|
|
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 |