|
[Sponsors] |
porousInterFoam - problem setting correct bcs |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 8, 2013, 08:07 |
porousInterFoam - problem setting correct bcs
|
#1 |
Member
Join Date: Feb 2013
Posts: 30
Rep Power: 13 |
Dear all,
I'm working with the porousInterFoam solver. Currently, I'm trying to simulate two porous layers which have the same porosity but differ in their permeability. The fluid is injected laterally. I expect the fluid to move through the layers at different velocities, resulting in an asymmetric flow front (see attachments, both pictures depict the volume fraction alpha1 at t=10 s. ). Additional, I have a kind of "leakage flow" where fluid leaks from the higher permeable layer into the other one. Basically, the simulation performs as expected. However, the flow front lead lag I find is much greater than expected, and having a close look at the simulation (see Problem2.jpg) it becomes clear that the fluid does not arrive at the bottom of the lower permeable layer as it should. Since this phenomenon only affects the last layer of cells regardless how many volume elements I have in "thickness" direction, I assume that this problem is due to the applied boundary conditions. Presently, I set the following boundary conditions: HTML Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object alpha; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { wall { type zeroGradient; } outflow { type inletOutlet; inletValue uniform 0; value uniform 0; } inflow { type fixedValue; value 1; } } // ************************************************************************* // HTML Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { wall { type zeroGradient; } inflow { type fixedValue; value 3.5e4; } outflow { type fixedValue; value $internalField; } } // ************************************************************************* // HTML Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ 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 { wall { type slip; value uniform (0 0 0); } inflow { type pressureInletUniformVelocity; phi phi; rho rho; value uniform (0 0 0); } outflow { type pressureInletOutletVelocity; phi phi; value uniform (0 0 0); } } // ************************************************************************* // I have no idea what the bc "symmetry plane" does, is it of use here? Thank you, Natalie |
|
October 10, 2013, 06:42 |
|
#2 |
Member
Join Date: Feb 2013
Posts: 30
Rep Power: 13 |
Hi everybody,
I think I can now state the problem differently: Basically, in my setup as described in the previous post, I have two layers of material. The fluid flows faster through the upper material since it presents less resistance than the lower material layer due to different permeability values specified for each. So, the fluid flows fast through the upper layer and leaks into the lower layer. This leakage flow in thickness (z-) direction is considerable and almost fills the lower layer completely. Due to this differences in velocities, I also obtain a non-constant pressure profile - basically, the pressure should drop in direction of the lower permeable layer. The attached plot shows that this is actually the case. However, in the lower permeable layer at z=0, a nearly constant pressure profile is present. Therefore, there is no driving force to force the fluid from the top to actually the very bottom of the simulation domain, which results in the problem stated in the previous thread. I believe that the pressure profile in thickness direction is heavily influenced by the boundary condition I pose, namely, I pose a zeroGradient boundary condition on the pressure. However, what I really want is the linear continuation of my pressure profile at the boundary. Is there a boundary condition in OpenFoam which can do this? Thank you for patiently reading my post, Natalie |
|
December 2, 2013, 06:26 |
|
#3 |
Member
Join Date: Feb 2013
Posts: 30
Rep Power: 13 |
No one here has any thoughts on this? I'd still be interested, you know..
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting BCs for Riverine Flows using Interfoam | kflora | OpenFOAM Running, Solving & CFD | 38 | July 27, 2022 07:51 |
Point BCs for Heat Transfer Problem | cdm | OpenFOAM | 6 | May 31, 2013 13:48 |
[blockMesh] Cyclic BC's: Possible face ordering problem? (Channel flow) | sega | OpenFOAM Meshing & Mesh Conversion | 3 | September 28, 2010 13:46 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |
A problem about setting boundary conditions | lyang | Main CFD Forum | 0 | September 19, 1999 19:29 |