CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   add temperature equation to interFoam (http://www.cfd-online.com/Forums/openfoam-solving/81247-add-temperature-equation-interfoam.html)

nygbook October 20, 2010 22:22

add temperature equation to interFoam
 
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?

akidess October 21, 2010 03:52

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

nygbook October 21, 2010 04:30

Quote:

Originally Posted by akidess (Post 280087)
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)
);

siavash_abadeh September 4, 2011 07:28

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


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