|
[Sponsors] |
October 20, 2010, 23:22 |
add temperature equation to interFoam
|
#1 |
New Member
NieYongguang
Join Date: Sep 2010
Posts: 27
Rep Power: 16 |
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? |
|
October 21, 2010, 04:52 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
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 |
|
October 21, 2010, 05:30 |
|
#3 | |
New Member
NieYongguang
Join Date: Sep 2010
Posts: 27
Rep Power: 16 |
Quote:
( fvm::ddt(rhoCp, T) + fvm::div(rhoPhiCpf, T) - fvm::laplacian(kappaf, T) ); |
||
September 4, 2011, 08:28 |
|
#4 |
New Member
Join Date: Nov 2010
Posts: 10
Rep Power: 16 |
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 |
|
|
|
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 |