CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Adding temperature field to InterFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By yapalparvi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2009, 10:03
Default Adding temperature field to InterFoam
  #1
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
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
Aadithya and lucas6lil like this.
yapalparvi is offline   Reply With Quote

Old   August 5, 2009, 12:30
Default
  #2
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
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
feijooos is offline   Reply With Quote

Old   August 5, 2009, 12:56
Default
  #3
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
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
yapalparvi is offline   Reply With Quote

Old   August 5, 2009, 12:58
Default
  #4
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
Can you be more specific in what your concerns are.....
feijooos is offline   Reply With Quote

Old   August 5, 2009, 13:29
Default
  #5
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
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
yapalparvi is offline   Reply With Quote

Old   August 5, 2009, 13:33
Default
  #6
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
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.
feijooos is offline   Reply With Quote

Old   August 5, 2009, 13:35
Default
  #7
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
yes you are right. Do you have any idea how to go about it?
yapalparvi is offline   Reply With Quote

Old   August 5, 2009, 13:50
Default
  #8
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
you could rewrite the equation to incoorporate the two-phase properties
feijooos is offline   Reply With Quote

Old   October 14, 2009, 21:18
Default
  #9
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
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
chiven is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:15.