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

add temperature equation to interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2010, 23:22
Default add temperature equation to interFoam
  #1
New Member
 
NieYongguang
Join Date: Sep 2010
Posts: 27
Rep Power: 16
nygbook is on a distinguished road
Hello everyone! I have a question! I want to add energy equation to inter Foam. I write energy equation below
fvm::ddt(rho, T)
+fvm::div(rhophi*cp,T)
-fvm::laplacian(Keff,T)
==-fvc::grad(p)
is it correct?
nygbook is offline   Reply With Quote

Old   October 21, 2010, 04:52
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
To me the grad(p) looks odd, are you sure about that? Also you don't need to keep Cp on it's own, just update a field rhoPhiCp the same way as you update rhoPhi. For more information have a look at this thread:

http://www.cfd-online.com/Forums/ope...interfoam.html
akidess is offline   Reply With Quote

Old   October 21, 2010, 05:30
Default
  #3
New Member
 
NieYongguang
Join Date: Sep 2010
Posts: 27
Rep Power: 16
nygbook is on a distinguished road
Quote:
Originally Posted by akidess View Post
To me the grad(p) looks odd, are you sure about that? Also you don't need to keep Cp on it's own, just update a field rhoPhiCp the same way as you update rhoPhi. For more information have a look at this thread:

http://www.cfd-online.com/Forums/ope...interfoam.html
Thank you for your reply! I have found the energy eqnation in the thread above. fvScalarMatrix TEqn
(
fvm::ddt(rhoCp, T)
+ fvm::div(rhoPhiCpf, T)
- fvm::laplacian(kappaf, T)
);
nygbook is offline   Reply With Quote

Old   September 4, 2011, 08:28
Default
  #4
New Member
 
Join Date: Nov 2010
Posts: 10
Rep Power: 16
siavash_abadeh is on a distinguished road
hi dears
i have a case that i want to solve energy equation to interfoam.
is there anyone who can help me(is there ready code).
thanks in advance
siavash_abadeh 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
Adding temperature field to InterFoam yapalparvi OpenFOAM Running, Solving & CFD 8 October 14, 2009 21:18
continuity equation Rafal Main CFD Forum 4 November 29, 2006 10:27
use kiva to solve another temperature equation zhzhguo Main CFD Forum 0 June 6, 2006 21:59
How to add a source term in u or v equation? luckyluke Phoenics 3 December 13, 2004 03:52
How to add a fixed force on momentum equation sun Phoenics 3 January 19, 2002 07:31


All times are GMT -4. The time now is 04:43.