|
[Sponsors] |
August 5, 2009, 10:03 |
Adding temperature field to InterFoam
|
#1 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
Hi all,
I am trying to add the temperature field to the interFoam solver. I have followed the similar steps as given in one of the threads to add temperature field to icoFoam solver. I am not sure of the boundary conditions to be be prescribed to the temperature file in 0/T. Could anybody please help me. Thanks Ramesh |
|
August 5, 2009, 12:30 |
|
#2 |
Member
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17 |
Ramesh,
As I see it, there are four possible boundary condition you can choose from. 1) fixedValue 2) zeroGradient 3) gradient 4) empty If you have a 2D mesh, at least one patch has to be of the 'empty' kind. FixedValue will give you a fixed temperature at that specific boundary zeroGradient will give you no change in temperature across the boundary Gradient will give you something like a specified heat flux. Look at this example: dimensions [0 0 0 1 0 0 0]; internalField uniform 290; boundaryField { bottom { type fixedValue; value uniform 350; } Outflow { type zeroGradient; } side_wall { type zeroGradient; } } Good luck, Eelco |
|
August 5, 2009, 12:56 |
|
#3 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
Hi,
Thanks for your input. It worked!. I am still not sure whether I am following the correct way. I just followed the similar procedure as in the tutorial to add temperature field to icoFoam solver. Please give me some inputs whether this makes sense or not. Thanks Ramesh |
|
August 5, 2009, 12:58 |
|
#4 |
Member
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17 |
Can you be more specific in what your concerns are.....
|
|
August 5, 2009, 13:29 |
|
#5 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
Hi,
my worry is that is that so straightforward in adding temperature field to interFOam as in the case of cavity test case which involves icoFoam |
|
August 5, 2009, 13:33 |
|
#6 |
Member
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17 |
I think you try to say this: it is not so straightforward to add temperature into interFoam as it is in icoFoam.
This is true, the energy equation that you've just added does not take into account certain two phase properties which exist in interFoam. |
|
August 5, 2009, 13:35 |
|
#7 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
yes you are right. Do you have any idea how to go about it?
|
|
August 5, 2009, 13:50 |
|
#8 |
Member
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17 |
you could rewrite the equation to incoorporate the two-phase properties
|
|
October 14, 2009, 21:18 |
|
#9 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, dear yapalparvi, I am doing the same job just as you. The details of my rivision the solver is shown in the thread.
http://www.cfd-online.com/Forums/ope...tml#post232680 Please correct me if there is something wrong. Good luck. chiven |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting a concentration field around a bubble in InterFoam | azman | OpenFOAM Running, Solving & CFD | 3 | June 7, 2022 05:21 |
Adding Temperature field to IcoFoam | yapalparvi | OpenFOAM Programming & Development | 14 | November 19, 2015 05:57 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
transient temperature field with constant velocity | Törnquist | CFX | 0 | September 16, 2003 05:22 |