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

add temperature equation to interFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 20, 2010, 22:22
Default add temperature equation to interFoam
  #1
New Member
 
NieYongguang
Join Date: Sep 2010
Posts: 27
Rep Power: 6
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, 03:52
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 16
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:

Diverging result for Temperature field in interFoam
akidess is offline   Reply With Quote

Old   October 21, 2010, 04:30
Default
  #3
New Member
 
NieYongguang
Join Date: Sep 2010
Posts: 27
Rep Power: 6
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:

Diverging result for Temperature field in interFoam
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, 07:28
Default
  #4
New Member
 
Join Date: Nov 2010
Posts: 10
Rep Power: 6
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

Thread Tools
Display Modes

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 On
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 20: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 20: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 02:16.