|
[Sponsors] |
April 25, 2024, 01:47 |
Correct interFoam outlet BCs
|
#1 |
New Member
Jahir Bahena
Join Date: Feb 2024
Location: Mexico
Posts: 7
Rep Power: 2 |
Hello.
As you all know, the implementation of cases that go beyond what the tutorials offer is a bit complicated sometimes. I started using interFoam last year and it's mostly worked out well, but I'm not sure I'm using the boundary condition my model requires. In short, I'd like to know if this is the best way to approach outlets that are open to both fluids (n \cdot T = nP_{atm}). This are the files contained in the 0 directory: alpha.water Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type fixedValue; value uniform 1; } walls { type zeroGradient; } outlet { type zeroGradient; value uniform 0; } atmosphere { type inletOutlet; inletValue uniform 0; value uniform 0; } } // ************************************************************************* // U Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type flowRateInletVelocity; volumetricFlowRate constant 10.7; } walls { type noSlip; } atmosphere { type pressureInletOutletVelocity; value uniform (0 0 0); } outlet { type inletOutlet; inletValue uniform (0 0 0); value $internalField; } } // ************************************************************************* // p_rgh Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { atmosphere { type totalPressure; p0 uniform 0; } ".*" { type fixedFluxPressure; value uniform 0; } } // ************************************************************************* // I tried with totalPressure for the p_rgh condition at the outlets but it crashed. Since my goemetry is too big I can't say for certain that these are wrong, but I'm not sure these are the best BCs I could use for my simulation. I also checked the veolcities (and volumetric flows) at these boundaries and I think the values are too small. Thank you very much in advance! |
|
April 26, 2024, 04:49 |
|
#2 |
Senior Member
Join Date: Dec 2021
Posts: 256
Rep Power: 6 |
Hey,
What are you trying to simulate? An open channel? Can you share a picture of your geometry? |
|
April 26, 2024, 11:11 |
|
#3 | |
New Member
Jahir Bahena
Join Date: Feb 2024
Location: Mexico
Posts: 7
Rep Power: 2 |
Quote:
It's a tank meant for separating water and sediment. To the left is the inlet and there are 4 outlets that are on the right side. |
||
April 29, 2024, 06:40 |
|
#4 |
Senior Member
Join Date: Dec 2021
Posts: 256
Rep Power: 6 |
Hey,
My usual setup for this kind of simulation is the following:
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Incorrect pressure results and problems with outlet BC's | jdw135 | OpenFOAM | 0 | December 9, 2020 10:16 |
[isoAdvector] Correct isoAdvector/interIsoFoam/InterFoam BCs | schf | OpenFOAM Community Contributions | 6 | February 6, 2019 11:09 |
interFoam BC partially submerged outlet | potac | OpenFOAM Running, Solving & CFD | 0 | November 30, 2017 13:54 |
interFoam BC's | jakitsch | OpenFOAM Running, Solving & CFD | 1 | November 17, 2015 21:09 |
define BCs at inlet and outlet for natural ventilation simulation | jjz2013 | Main CFD Forum | 0 | January 29, 2013 16:50 |