|
[Sponsors] |
![]() |
![]() |
#1 |
Member
HouKen
Join Date: Jul 2011
Posts: 67
Rep Power: 13 ![]() |
Hi foamers!
I tried to apply temperature calculation to interFoam according to the hot thread: http://www.cfd-online.com/Forums/ope...interfoam.html And what I did was exactly same with the author "ovie" wrote in the #14 reply to the above thread. Everything compiled well, however when I run it on a two-phase flow case, temperature results near interface was higher than heat source temperature which is surely not reliable result. Also I test the modified solver to solve for single phase heat transfer calculation, although I didnot do precise validation, temperature field seems to be reasonable. Thus I think the main problem here lies in the interface. On the other hand, from a theoretical view, no matter interface properties(cp, Pr...) is linear interpolated or harmonic interpolated, interface temperature should be no higher than phase temperature surrounding it. I cant figure out what is the reason for this problem, plz help! (Also I am trying to debug it by output cp and other properties on the fly, but I am not sure how to do it elegantly, directly to the console or paraView, plz help ...) |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
HouKen
Join Date: Jul 2011
Posts: 67
Rep Power: 13 ![]() |
I read the thread post by "ovie" again, and I do find that move the Cp to RHS (i.e., now the TEqn becomes:
fvScalarMatrix TEqn ( fvm::ddt(rho, T) + fvm::div(rhoPhi, T) - fvm::laplacian((kappa/Cp), T) ); )help the convergence. But from a theoretical view, I believe it's mathematically equal. So I got even more confused, I think there must be sth. I misunderstood/didn't understood in the whole process. plz help! |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,265
Blog Entries: 1
Rep Power: 23 ![]() |
![]() ![]() ![]()
__________________
Telegram channel (https://telegram.me/openfoam4Iranian) My Weblog in Persian(http://openfoam.blogfa.com/) My Personal Website (http://nimasamkhaniani.ir/) |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Member
HouKen
Join Date: Jul 2011
Posts: 67
Rep Power: 13 ![]() |
Quote:
Basically I have only read Patankar and Versteeg's book on cfd and both these books didn't focus much on detailed numerical scheme. (Another newbie question: I want to output Cp in order to see the space distribution of it(just like T and alpha), how can I do it? plz help!) |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,265
Blog Entries: 1
Rep Power: 23 ![]() |
if you want to see Cp
just define a volScalarField like T ![]()
__________________
Telegram channel (https://telegram.me/openfoam4Iranian) My Weblog in Persian(http://openfoam.blogfa.com/) My Personal Website (http://nimasamkhaniani.ir/) |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
InterFoam viscosity problem / possible bug | pbryant | OpenFOAM Running, Solving & CFD | 24 | March 30, 2020 04:25 |
Adding temperature equation to porousSimpleFoam | David_010 | OpenFOAM Programming & Development | 9 | February 14, 2018 01:22 |
adding temperature field to icofoam | houkensjtu | OpenFOAM | 5 | September 26, 2012 22:20 |
Interface location problem in interFoam | cfd_user2011 | OpenFOAM | 1 | July 7, 2011 12:04 |
[CFXv11]fluid temperature distr problem | mactech001 | CFX | 1 | June 10, 2010 08:08 |