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

Simple heat transfer in tube case

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Gimlas
  • 1 Post By Gimlas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2013, 07:17
Default Simple heat transfer in tube case
  #1
Member
 
Join Date: Nov 2011
Posts: 30
Rep Power: 14
Gimlas is on a distinguished road
Dear Forum Users,

I would like to ask you for your help with a simple case of air cooling in a pipe. The geometry i very simple: it's a pipe of a diameter D which narrows to a smaller diameter and then goes straight up. I can't upload the mesh file due to its size which results from the viscous layer on the walls. But you can assume that its a simple straight pipe. Warm air (238 K) enters through the bottom inlet and it flows out through the top outlet. Meanwhile it is cooled by cold walls (283 K).

I am learning how to prepare a simulation in openFOAM therefore I try to modify existing cases. In my calculation I've used the tutorial case of buoyantBoussinesqSimpleFoam hotRoom. All modified files are attached to this post. Unfortunatelly I do not understand some of the code therefore I had to improvise.

For the initial conditions I have generated velocity field U using potentialFoam (in other case the calculations of p_rgh crashed after few iterations). The oryginal U file is also attached.

But I have encontured a weird problem. Everything looks fine except the outlet where static pressure fluctuations appeared. The boundary conditions for outlet is set to 0. However there are small regions wher this pressure goes below 0 Pa and there is no reason for that. I have followed an advice from this forum and changed the boundary conditions for:

Code:
    Outlet
    {
        type            fixedMean;
        meanValue       0;
        value        uniform 0;
     }
But the results didn't change. There are still pressure fluctuations (small regions which drops well below 0 Pa).

I have made a similar simulations without heat exchange using SimpleFoamWizard from CAELinuks and everything looks normal.

Could you help me to solve this problem?
Attached Files
File Type: gz case.tar.gz (1.6 KB, 11 views)
rajcfd likes this.
Gimlas is offline   Reply With Quote

Old   July 2, 2013, 07:52
Default
  #2
Member
 
Join Date: Nov 2011
Posts: 30
Rep Power: 14
Gimlas is on a distinguished road
Dear forum users,

I have managed to enhance some of the boundary conditions but still there is one problem that has to be solved, i.e. static pressure. All parameters are predicted properly:
- p_rgh
- U
- T

The pressure difference between inlet and outlet seems to be ok to. But my intention was to set the static pressure at the outlet (pipe top) to 0 so the openfoam determine the overpressure at the inlet (bottom). Dou you have any ideas how to achieve that? I'm attaching new case files and contour graphs.
Attached Images
File Type: jpg p.jpg (21.7 KB, 27 views)
File Type: jpg p_rgh.jpg (18.1 KB, 23 views)
Attached Files
File Type: gz case2.tar.gz (2.6 KB, 9 views)
ScarFace likes this.
Gimlas is offline   Reply With Quote

Old   July 2, 2013, 14:05
Default
  #3
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16
cfdonline2mohsen is on a distinguished road
Dear Gimlas
I quote the section 4.5.3.1 of the user guide
4.5.3 PISO and SIMPLE algorithms :
Quote:
In a closed incompressible system, pressure is relative: it is the pressure range that matters not the absolute values. In these cases, the solver sets a reference level of pRefValue in cell pRefCell where p is the name of the pressure solution variable. Where the pressure is p rgh, the names are p rhgRefValue and p rhgRefCell respectively.


you can fix your reference value for pressure in system/fvSolution inside your case folder.
just add the two below lines inside PIMPLE (or PISO):

Code:
pRefValue           0;
pRefPoint           (1.3 0.15 0.325) //the coordinates of your outlet
see the user guide for more help.

__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Reply

Tags
buoyantboussinesq, heat exchange, open foam, pressure boundaries


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
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Heat transfer from a heated plate using fins pathakamit FLUENT 1 April 30, 2013 04:07
simple heat transfer problem openfoam1 OpenFOAM 2 January 27, 2010 14:17
Heat transfer in tube bank. Paul FLUENT 0 August 6, 2004 10:05
Heat Transfer Validation test case Chris Whitney Main CFD Forum 1 July 21, 1999 14:36


All times are GMT -4. The time now is 23:39.