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

p_rgh BC for chimney effect: how to make the air stands still?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By thiagopl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2020, 16:47
Question p_rgh BC for chimney effect: how to make the air stands still?
  #1
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 62
Rep Power: 14
thiagopl is on a distinguished road
I am working on a transient buoyancy driven flow. The domain has a inner heated plate and some openings trough which air should flow once heated. It is a chimney, basically. The air should flow only at the presence of a temperature difference and a gravitational field. After some work I noticed the even when there is no temperature difference, the air was flowing and its magnitude was clearly dependent of my pressure (p_rgh) boundary conditions.
To investigate that I propose a simple question: how to make the air stands still on a buoyant solver?
Attached is a toy case (see figure) which I tested different combinations of p_rgh boundary conditions and all of them results in air movement, even though there is no temperature difference.

To me the following boundary conditions make sense to me:
ambient.bottom
p_rhg: totalPressure, p_0=101325
U: pressureInletOutletVelocity
p: $calculated, once it is a p_rgh solver

ambient.top:
p_rhg: total pressure, p_0=101325
U: pressureInletOutletVelocity
p: $calculated, once it is a p_rgh solver

But it results in a downward flow. Certainly this pressure boundary condition results in a pressure difference which is driven the flow.
Attached Images
File Type: png chimney2D.png (40.8 KB, 80 views)
Attached Files
File Type: zip chimney2D.zip (14.7 KB, 21 views)
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam.
thiagopl is offline   Reply With Quote

Old   April 9, 2020, 18:41
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Have you tried fixedValue (or fixedMean) as boundary condition for p_rgh?
jherb is offline   Reply With Quote

Old   April 10, 2020, 10:33
Default
  #3
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 62
Rep Power: 14
thiagopl is on a distinguished road
Hi jherb,

Thank you for your interest in the topic. I tried the fixedValue boundary condition as the following:
Code:
    ambient.bottom
    {
    type        fixedValue;
    value        uniform 101325;
    }
    ambient.top
    {
    type        fixedValue;
    value        uniform 101325;
    }
It still results in a downard flow as in totalPressure condition. As the figure attached shows, there is a small inbalance in p_rhg along the chimney axis which apparently causes the downard flow. The fixedValue also forces this "not so much natural" behaviour of p_rgh curve. The velocity boundary conditions also doesn't affect the results.
Attached Images
File Type: png fixedValue.png (39.6 KB, 57 views)
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam.
thiagopl is offline   Reply With Quote

Old   April 13, 2020, 17:52
Default
  #4
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Okay. A shot in the dark: set g to 0 and look what happens.



Another idea: In the fvSolution file, you have set tolerance for p_rgh to 1e-4. Set it to something much smaller (1e-7 or 1e-8). Also increase the number of nOuterCorrectors to something like 10.
jherb is offline   Reply With Quote

Old   April 16, 2020, 06:49
Default
  #5
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 62
Rep Power: 14
thiagopl is on a distinguished road
Hi jherb,

A colleague also alert me about the residuals control* and the temperature. Then I lowered the residuals and also improved the schemes. Now I get only what it seems to be round off errors on p_rgh and T (see figure). The number of nOuterCorrectors didn't affect the results.

I also turn the gravity off I get zero velocity everywhere, what suggests the driven force comes from the buoyancy term. But, if I change the direction of the gravity vector, say up and down along y axis, the final velocity field doesn't change accordingly, it remains downward! So now it seems to be a pressure thing.

This accelarating velocity field reachs Uy=-0.04 m/s after 60s. If I put "bubble" of higher temperature (+1 K) in the domain, the bubble rises a bit and then is pushed down. I if closed the domain the bubble rises perfectly.

Other threads in this forum discussed about this behaviour. I will keep trying...
Attached Images
File Type: png totalPressure.png (41.5 KB, 41 views)
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam.

Last edited by thiagopl; April 16, 2020 at 06:50. Reason: Attaching the figure.
thiagopl is offline   Reply With Quote

Old   April 17, 2020, 19:06
Default
  #6
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
I have looked at your case file and I think the problem is, that specifying the presssure on all openings is overdeterming the problem. It looks like p_rgh and U show a checkerboard pattern at the lower end of the pipe.

If you set the pressure boundary condition to zeroGradient at the button inlet (probably it does not matter on which end), the problem goes away and the velocity settles to zero in the whole flow domain.

In the attached case, a "bubble" rises first up and then the velocities go back to (nearly) zero. If you start the case without the call to setFields in Allrun, then there should be zero velocity all the time.


(I increased the viscosity by a factor of 100 to have more friction, so the slow down happens faster. Just doing this without changing the boundary conditions does not help.)


Another edit:
If you set the boundary on the top to something, which imposes constant pressure on the whole outlet, the bubble is not really leafing the flow domain. On the other hand, if you set it to fixedMean, convergence takes much longer and the case without a bubble has small velocities at this outlet which take long to settle down.
Attached Files
File Type: zip chimney2D.new.zip (11.0 KB, 33 views)

Last edited by jherb; April 18, 2020 at 08:36.
jherb is offline   Reply With Quote

Old   April 24, 2020, 15:38
Default
  #7
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 347
Rep Power: 10
Gerry Kan is on a distinguished road
Dear Thiago and Joachim:

I am also noticing similar issues with buoyancy in OpenFOAM.

Instead of p_rgh, I implemented gravity effects directly in the momentum and energy equations (rho*g in UEqn, and rho*(U&g) in EEqn). I did it this way because I cannot assume constant density as one would for p_rgh (yes, my flow solver is compressible).

In a hydrostatic setting, i.e., fixedValue p and T on the bottom and fixedGradient on top, I get a net non-zero vertical movement, even though the p, T and \rho appear as expected. My observation is similar to what Thiago is seeing.

If I set gravity to zero I get the trivial solution.

Somehow the solver is seeing the gravity-induced pressure gradient as an upward driving force. Any ideas what else could be missing?

Thanks in advance, Gerry.
Gerry Kan is offline   Reply With Quote

Old   April 29, 2020, 09:16
Lightbulb
  #8
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 62
Rep Power: 14
thiagopl is on a distinguished road
Hi all,

First, thank you Joachin for the time spent. I think your suggestion solved the problem and also shed some light on another problem. In the following I try to sumarized the findings.

Boundary conditions in open domain inlet/outlet for buoyant cases
As suggested by Joachin, with the zeroGradient condition for p_rgh the results show a near zero (~1e-4) velocity field as physically expected. Attached is the animation showing the U_y velocity component profiles along the chimney height. The legend represents the ambient.bottom-ambient.top boundary condition. For comparison purposes I added the case in which the gravity is set to zero.

fvSolution
Although at first it seemed to me (as also found in many other threads) that the problem here is about the right setup of boundary conditions, I think it is not (only). Actually I had also tried this boundary condition combination as many others. Therefore, attached is a figure that shows the same case, zeroGradient-zeroGradient, ran with my fvSolution and the fvSolution sent by Joachin. So, no matter the boundary condition, a bad setup of the fvSolution seems to produce the downward flow reported initially.

Bubble case
I also tested the case with a bubble of +1 K and nu=1.8e-5 within the domain. The bubble rises and leaves the domain in a good way (pretty qualitative...).

Finally, I think that the figure chimney2Dnew answers the initial question of the thread.


Edit: tha main thing about the fvSolution has to do with a good configuration of the PIMPLE algorithm which this link may help.
Attached Images
File Type: png fvSolution.png (23.1 KB, 53 views)
File Type: png chimney2Dnew.png (49.7 KB, 63 views)
Attached Files
File Type: zip video.zip (116.8 KB, 27 views)
Gerry Kan likes this.
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam.

Last edited by thiagopl; April 29, 2020 at 15:20. Reason: Pimple link
thiagopl is offline   Reply With Quote

Old   April 29, 2020, 17:29
Default
  #9
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Just one note: In you figure you say zeroGradient p_rgh as bottom and top boundary condition. But in my setup, p_rgh was set to fixedMean at the top and zeroGradient at to bottom.
jherb is offline   Reply With Quote

Old   April 30, 2020, 09:36
Thumbs up
  #10
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 62
Rep Power: 14
thiagopl is on a distinguished road
Joachin,

Correct, one should be aware of it.
The fixedMean for p_rgh resulted in a strange small velocity pattern near its boundary, as you already noticed. This is shown on the video of the velocity profiles I posted.
Bellow is a link for a video of the case with mu=1.8e-5 and a +1 K bubble. There you can see the velocity pattern generated near the top boundary set with fixedMean (p_rgh) and how it influences the flow as the bubble leaves the domain.
Video

*In the video both images have the same scale factor of 0.5 for the velocity glyph.
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam.
thiagopl is offline   Reply With Quote

Old   April 30, 2020, 18:13
Default
  #11
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Thank you for the videos. I am surprised that it works with two zeroGradient, because you set no pressure level. But as this is a transient simulation, you start with a given one, so it might work.


I think a solution might be to model the open atmospheric boundary at the top with a big volume (but probably with a coarse mesh) and at top of this set a fixed boundary condition.
jherb is offline   Reply With Quote

Reply

Tags
boundary condition, buoyancy driven flow, chimney, p_rgh open domain, totalpressure


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
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
OpenFOAM with IBM AIX matthias OpenFOAM Installation 20 March 25, 2008 02:36
a way to make lots of money quick and easy no lies Dob Main CFD Forum 0 October 10, 2006 16:45
FOAM installation error gcc amp g hanks OpenFOAM Installation 9 January 26, 2006 14:14


All times are GMT -4. The time now is 02:18.