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

calculating thermo.T() using a given he=cp*T_other

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2019, 07:13
Default calculating thermo.T() using a given he=cp*T_other
  #1
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
Thamali is on a distinguished road
Hi,
I am doing a multiphase simulation as a single phase.
This is about gasification/combustion of a single particle. And I am resolving inside the particle too.
My particle is not moving. Therefore, it only involves in enthalpy by reaction and changes to the gas phase species and mass by reactions.
I assume the particle and gas inside the particle is in thermal equilibrium.
I use a binary function(gamma or whatever which is '0' and '1') to identify the two different phases in governing equations.
My problem is when I use OpenFoam thermo packages and if I solve enthalpy of gas phase equation (by considering solid phase terms as sources) the equation does not converge.
Therefore, I tried to solve temperature equation for thermo.T() and it does not captured by thermo package since I do not solve enthalp and it considers the 'enthalpy' change is zero and thermo.correct() gives same constant temperature over and over during simulations.
I thought I can do a trick like solve the 'T_otherEqn' and calculate
HTML Code:
thermo.he()=cp*T_other;
and then thermo.T() will change based on the he().
HTML Code:
thermo.T() should be =T_other.
But, thermo.T() calcluated by correct() function is different from T_other.

Could somebody explain this to me?
Or what are my other options plsss?
If I don't use available thermo packages, coding willl become complicated and lot of work to do.

Thanks a lot in advance..!
Thamali 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
Questions on dynamicTopoFvMesh danvica OpenFOAM Running, Solving & CFD 80 April 16, 2019 16:58
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 05:25
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 27 December 19, 2017 20:47
''unknown radialModelType type Gidaspow'' PROBLEM WITH THE BED TUTORIAL AndoniBM OpenFOAM Running, Solving & CFD 2 March 25, 2015 18:44
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


All times are GMT -4. The time now is 03:22.