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

Nonsensical results with wall heat flux boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By jtipton2
  • 1 Post By jtipton2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2019, 14:29
Unhappy Nonsensical results with wall heat flux boundary condition
  #1
New Member
 
Joseph Tipton
Join Date: Jun 2010
Posts: 27
Rep Power: 15
jtipton2 is on a distinguished road
I am befuddled with heat transfer in OpenFOAM and would very much appreciate someone's insight.

My test case is a 2D parallel channel that's 50-mm tall and 1000-mm long. The Reynolds number is 40,000 and the fluid is air. I'm using OF6 and the rhoSimpleFoam solver with RANS turbulence modeled with kOmegaSST.

I first ran my solution with a uniform temperature of 293K. Everything checks out fine. My mesh is resolved to provide y+ ~ 0.3 at the walls. The fluid velocity profile develops nicely.

Next, I changed my top and bottom wall to have a fixed temperature of 353K. Again, everything checks out fine. I can post-process the wall heat flux and see about 1000 W/m^2 being delivered to the walls. In paraView, the temperature profile looks normal, and I can see the thermal boundary layer develop.

Finally, I changed my top and bottom wall to externalWallHeatFluxTemperature. I've tried to set a flux of 1000 W/m^2. The solution still progresses to convergence, however, the results now show cryogenic temperatures at the wall and negative heat flux. Changing the heat flux to -1000 W/m^2 doesn't appear to change the results either. Here's how I'm trying to set the BC:

Code:
    upperWall
    {
        type            externalWallHeatFluxTemperature;
        mode            flux;
        q               1000;
        relaxation      0.9;
        kappaMethod     fluidThermo;
        value           uniform 353;
    }
As you can see, I am at a complete loss how to apply a heat flux boundary condition. I'm attaching the example setup described above. Does anyone understand what's happening here?

Many thanks,

~ Joseph
Attached Files
File Type: zip parallelChannelHeat.zip (8.7 KB, 10 views)
uckmhnds likes this.
jtipton2 is offline   Reply With Quote

Old   December 20, 2019, 16:03
Smile Solution found - setting a fixed heat flux boundary condition
  #2
New Member
 
Joseph Tipton
Join Date: Jun 2010
Posts: 27
Rep Power: 15
jtipton2 is on a distinguished road
All,

Well, after some more digging, I believe I found the answer. For archival, here's the helpful post:

Defining Heat Flux to wall

The solution is to use the fixedGradient boundary type and set the value to q"/K where q" is the desired heat flux and K is the thermal conductivity of the fluid.

Code:
    lowerWall
    {
        type            fixedGradient;
        gradient        uniform 39770.9;
    }
I'm still very confused why the externalWallHeatFluxTemperature boundary condition is not working. Any insight into that would be most appreciated.
uckmhnds likes this.
jtipton2 is offline   Reply With Quote

Old   December 22, 2019, 13:43
Default
  #3
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 219
Rep Power: 18
tas38 is on a distinguished road
You may want to re-run with some of the debug switches turned-on. I see that the bc will print additional info.

This may provide more insight into what is going on at bc.


However, I am not 100% on which debug flag to turn on.

You could add the following to your controlDict file (setting the values to 1 turns the debug flags on) ...


Code:
 DebugSwitches {     

wallHeatTransfer    1;    

 HeatTransferModel   1;     

heatTransferModel   1; 

}
tas38 is offline   Reply With Quote

Reply

Tags
heat flux, rhosimplefoam


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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Velocity vector in impeller passage ngoc_tran_bao CFX 24 May 3, 2016 21:16
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 17:30
Enforce bounds error with heat loss boundary condition at solid walls Chander CFX 2 May 1, 2012 20:11


All times are GMT -4. The time now is 07:33.