CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   how to add a new equation for solving rhoT? (https://www.cfd-online.com/Forums/openfoam-programming-development/136633-how-add-new-equation-solving-rhot.html)

Maanieh.h June 1, 2014 15:30

how to add a new equation for solving rhoT?
 
Hello,

I want to solve this simple equation for a simple test case :

\frac{d(rhoT)}{dt}\pm\nablarho.u.T=0

where the velocity is explicitly introduced ( simply the velocity is a vector (1,0,0) all over the domain.
How can I introduce this velocity to the solver, and what solver to use ? ( I used IcoFoam but i dont know how to deal with the velocity.)

Tushar@cfd June 3, 2014 00:50

Quote:

Originally Posted by Maanieh.h (Post 495094)
Hello,

I want to solve this simple equation for a simple test case :

\frac{d(rhoT)}{dt}\pm\nablarho.u.T=0

where the velocity is explicitly introduced ( simply the velocity is a vector (1,0,0) all over the domain.
How can I introduce this velocity to the solver, and what solver to use ? ( I used IcoFoam but i dont know how to deal with the velocity.)

I think you should check "scalarTransportFoam".

Refer the link for more detailed information:
http://openfoamwiki.net/index.php/ScalarTransportFoam

Best Luck!


All times are GMT -4. The time now is 21:36.