CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Correct p_rgh boundary conditions to include buoyancy (https://www.cfd-online.com/Forums/openfoam-solving/249791-correct-p_rgh-boundary-conditions-include-buoyancy.html)

det May 8, 2023 17:47

Correct p_rgh boundary conditions to include buoyancy
 
3 Attachment(s)
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; 
    }


det May 24, 2023 15:01

1 Attachment(s)
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?

https://drive.google.com/file/d/1bac...ZV0lmD0RX/view


All times are GMT -4. The time now is 19:48.