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

Correct p_rgh boundary conditions to include buoyancy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2023, 18:47
Default Correct p_rgh boundary conditions to include buoyancy
  #1
det
New Member
 
Daniel Thomas
Join Date: Mar 2020
Posts: 10
Rep Power: 6
det is on a distinguished road
I've not been able to include the effects of buoyancy in my 2D simulations of a counterflow flame. I'm using the EBI-DNS solver, which is based on the rhoReactingBuoyantFoam solver in OpenFOAM v1712. Simulations all run as expected, except that I can't produce any buoyancy effects, even in conditions where these should be evident and with exaggerated gravitational force.

I'm using a wedge domain as shown below, and have tried several boundary conditions for the 3 flow boundaries (air inlet, fuel inlet, and outlet). Currently they are waveTransmissive for the 0/p_rgh (as below), and calculated for 0/p. I am trying it with and without buoyancy by modifying the gravitational force defined in the file /constant/g. Are these boundary conditions appropriate, or is there something else that could be wrong? (See the attached p and p_rgh files.)

Thanks for any suggestions,

Daniel

Code:
dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 101325;

boundaryField
{
    fuel
    {
        type            waveTransmissive;  
        psi             thermo:psi;        
        gamma           1.3;               // Ratio of specific heats 
        fieldInf        101325;            // The far-field value to be applied to p
        lInf            0.1;               // A measure of how far away the far-field condition should be
        value           $internalField;  
    }
Attached Images
File Type: png Counterflow - OpenFOAM domain.png (11.4 KB, 4 views)
Attached Files
File Type: txt p_rgh.orig.txt (2.8 KB, 3 views)
File Type: txt p.orig.txt (1.4 KB, 2 views)
det is offline   Reply With Quote

Old   May 24, 2023, 16:01
Default
  #2
det
New Member
 
Daniel Thomas
Join Date: Mar 2020
Posts: 10
Rep Power: 6
det is on a distinguished road
I'm still working on this, and would be grateful for any suggestions. I saw the recent helpful reply by Yann in this post. Based discussions here and other example code, I'm using:
  • 0/U - fixedValue for both inlets and inletOutlet for the radial outlet. (In the corresponding experiment, flows are metered in at a constant flow rate.)
  • 0/p - calculated for both inlets and the outlet. (Standard for OpenFOAM with buoyancy.)
  • 0/p_rgh - I assume this is where I'm getting something wrong. I've tried fixedFluxPressure, zeroGradient, and waveTransmissive as described below.

The code runs fine with a waveTransmissive BC for the outlet. But for all these solutions, both the resulting p and p_rgh fields are uniform accross the domain. For the low velocity flows and exaggerated graviational force I'm using, I should see an upward shift in the flame position, but results are still identical regardless of the applied gravitational field. The attached plot shows the flame position with the temperature color plot, and a flow vector overlay.

It seems like a zeroGradient BC would be appropriate for the vertical outlet, to allow pressure to vary hydrostatically along the boundary. However, I run into numerical issues when trying this (and waveTransmissive or fixedFluxPressure for the inlets). And, as expected, I also can't get a solution when I try fix the pressure at an inlet with prghPressure.

Any suggestions for inlet p_rgh boundary conditions that would allow me to use the zeroGradient outlet BC? Or is there another BC that would allow for hydrostatic pressure variation along this vertical outlet boundary?

Attached Images
File Type: jpg counterflow_XH2-70_a-100_T_and_U.jpg (94.3 KB, 10 views)
det is offline   Reply With Quote

Reply

Tags
boundary conditions, bouyancy, p_rgh, rhoreactingbuoyantfoam


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 60 July 17, 2024 06:45
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 17:54.