|
[Sponsors] |
Water level is raising as simulation progresses |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 31, 2022, 09:31 |
Water level is raising as simulation progresses
|
#1 |
New Member
Akshay
Join Date: Jan 2020
Posts: 28
Rep Power: 6 |
I am conducting two-phase flow simulations in a separator with 3 inlets and 2 outlets using twoPhaseEulerFoam in OF version 8.
The inlet velocity BC is specified at 2 inlets and pressure outlet BC is specified at the 2 outlets. Initially, half of the separator volume is filled with water using setFieldDict. I am expecting the water level to remain constant but strangely the water level increases. I was expecting flow in = flow out, the velocity vector at the water outlet is not correctly calculating the water velocity at the outlet. I have attached my BC for U, p_rgh, alpha fields below. Code:
FoamFile { version 2.0; format ascii; class volScalarField; location "0"; object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { inlet1 { type fixedValue; value uniform 0.698; } inlet2 { type fixedValue; value uniform 0.698; } inlet3 { type fixedValue; value uniform 0.698; } walls { type zeroGradient; } baffle1 { type zeroGradient; } baffle2 { type zeroGradient; } baffle3 { type zeroGradient; } outlet1 { type inletOutlet; phi phi.water; inletValue uniform 1; value uniform 1; } outlet2 { type inletOutlet; phi phi.water; inletValue uniform 0; value uniform 0; } } // ************************************************************************* // Code:
FoamFile { version 2.0; format ascii; class volScalarField; location "0"; object alpha.oxygen; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 1; boundaryField { inlet1 { type fixedValue; value uniform 0.302; } inlet2 { type fixedValue; value uniform 0.302; } inlet3 { type fixedValue; value uniform 0.302; } walls { type zeroGradient; } baffle1 { type zeroGradient; } baffle2 { type zeroGradient; } baffle3 { type zeroGradient; } outlet1 { type inletOutlet; phi phi.oxygen; inletValue uniform 0; value uniform 0; } outlet2 { type inletOutlet; phi phi.oxygen; inletValue uniform 1; value uniform 1; } } // ************************************************************************* // Code:
FoamFile { version 2.0; format ascii; class volScalarField; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 4.01325e5; boundaryField { inlet1 { type fixedFluxPressure; value $internalField; } inlet2 { type fixedFluxPressure; value $internalField; } inlet3 { type fixedFluxPressure; value $internalField; } walls { type fixedFluxPressure; value $internalField; } baffle1 { type fixedFluxPressure; value $internalField; } baffle2 { type fixedFluxPressure; value $internalField; } baffle3 { type fixedFluxPressure; value $internalField; } outlet1 //water outlet { type prghPressure; p $internalField; value $internalField; } outlet2 //oxygen outlet { type fixedValue; value $internalField; } } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Code:
FoamFile { version 2.0; format binary; class volVectorField; object U.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet1 { type fixedValue; value uniform (0 0 3.83); } inlet2 { type fixedValue; value uniform (0 0 -3.83); } inlet3 { type fixedValue; value uniform (0 0 -3.83); } walls { type noSlip; } baffle1 { type noSlip; } baffle2 { type noSlip; } baffle3 { type noSlip; } outlet1 { type pressureInletOutletVelocity; phi phi.water; value $internalField; } outlet2 { type pressureInletOutletVelocity; phi phi.water; value $internalField; } } // ************************************************************************* // Code:
FoamFile { version 2.0; format binary; class volVectorField; object U.oxygen; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet1 { type fixedValue; value uniform (0 0 1.66); } inlet2 { type fixedValue; value uniform (0 0 -1.66); } inlet3 { type fixedValue; value uniform (0 0 -1.66); } walls { type fixedValue; value uniform (0 0 0); } baffle1 { type fixedValue; value uniform (0 0 0); } baffle2 { type fixedValue; value uniform (0 0 0); } baffle3 { type fixedValue; value uniform (0 0 0); } outlet1 { type pressureInletOutletVelocity; phi phi.oxygen; value $internalField; } outlet2 { type pressureInletOutletVelocity; phi phi.oxygen; value $internalField; } } // ************************************************************************* // out.0000.png out.0399.png Thank you. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solid object falling in water tank simulation | cassini83 | CFX | 3 | August 9, 2021 17:05 |
postProcessing to visualize areas touched by water during a sprinkling simulation | TheBigLebowski | OpenFOAM | 0 | August 1, 2021 10:20 |
Water level doesn't rise in CFD-DEM simulation of air-water-solid. What should I chec | gsiitd | OpenFOAM | 0 | January 23, 2019 00:25 |
For a single phase flow, is there any way to check water surface level? | Tanjina | FLUENT | 0 | February 23, 2014 22:56 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 03:32 |