|
[Sponsors] |
July 13, 2017, 18:08 |
Writing the following equation
|
#1 |
New Member
Achuth Nair Balachandran Nair
Join Date: Apr 2017
Location: Austria
Posts: 3
Rep Power: 9 |
Hello,
I am working with multiphase flow through a porous medium and I am implementing the temperature equation. I have a doubt regarding how the following convection term needs to be implemented. (rho*cp) * u * del(T) How I have implemented it is: rhocf * fvm::div(Uf,T) where Uf = fvc::interpolate(U) & mesh.Sf(); Is it right? Or should I take the temperature field as a fvc::grad(T) to be precise. I would really appreciate the help! |
|
July 14, 2017, 05:23 |
|
#2 |
Member
Join Date: Mar 2015
Posts: 36
Rep Power: 11 |
I don't know exactly your meaning of del(T).
I guess you want to implement the advection of your temperature-field, right? This would mean for constant density and heat capacity your equation reads: dT/dt = -divergence(u*T) as differential equation. Most of the time divergence(u) = 0. Therefore you will see dT/dt = -u*gradient(T) most of the time, but the equation above is more generall. Therfore you need fvc:: (Uf*T_face) for explicit or fvm:: (Uf,T) for implicit discretisation (and fvm::ddt(T)). I hope this was usefull for you. |
|
July 14, 2017, 18:40 |
|
#3 |
Senior Member
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18 |
See this presentation pages 84 to 93. See also pages 100 to 108 for a 2 temperatures model.
Cheers, Cyprien |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Derivation of the Temperature Equation | Tobi | OpenFOAM Programming & Development | 21 | April 10, 2018 23:15 |
Writing an equation of state | FAKHREDDINE | CFX | 2 | April 3, 2017 13:08 |
Pressure distribution on a wall | darazsbence | CFX | 17 | October 6, 2015 11:38 |
Basic question about writing a differential equation related to finite element | RbBb | Main CFD Forum | 1 | April 10, 2014 04:50 |
How to? Extra term in k-e equation. Implicit-Explicit | be_inspired | OpenFOAM Programming & Development | 1 | March 19, 2013 11:50 |