|
[Sponsors] |
Temperature calculation from sensible internal energy |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 12, 2019, 05:42 |
Temperature calculation from sensible internal energy
|
#1 |
New Member
Matteo
Join Date: Jan 2019
Posts: 4
Rep Power: 7 |
Hi guys. I'm writing a code using the NACA0012 airfoil tutorial for rhoSimpleFoam compressible solver as a guide.
Actually I'm not able to figure out how the temperature is calculated. I mean, If I'm right everything should be done inside the hePsiThermo.C and thermoI.H files where thermo.correct() and calculate() functions are defined. Temperature calculation is coded this way: Code:
Test = Tnew; Tnew = (this->*limit) (Test - ((this->*F)(p, Test) - f)/(this->*dFdT)(p, Test)); Inside the thermophysicalProperties these are the selected parameters: Code:
thermoType { type hePsiThermo; mixture pureMixture; transport const; thermo hConst; equationOfState perfectGas; specie specie; energy sensibleInternalEnergy; } Code:
template<class Thermo, template<class> class Type> inline Foam::scalar Foam::species::thermo<Thermo, Type>::Es(const scalar p, const scalar T) const { return this->Hs(p, T) - p/this->rho(p, T); } Code:
template<class Thermo, template<class> class Type> inline Foam::scalar Foam::species::thermo<Thermo, Type>::es(const scalar p, const scalar T) const { return this->Es(p, T)*this->W(); } Does anyone of you know what it stands for and why it should be there? I cannot understand exactly which is the whole functional I have to use inside the Newton iterations. Thanks a lot to anyone who can help me. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Total vs Internal Energy | acalado | FLUENT | 2 | May 3, 2018 17:08 |
Adding pressure and temperature sources instead of energy | rae | CFX | 3 | October 24, 2016 02:31 |
warning - extrapolating on temperature calculation | cedame | CONVERGE | 2 | September 5, 2016 11:55 |
Temperature to energy loss | Vcent | FLUENT | 0 | November 28, 2012 10:13 |
Why FVM for high-Re flows? | Zhong Lei | Main CFD Forum | 23 | May 14, 1999 13:22 |