|
[Sponsors] |
September 15, 2023, 10:21 |
Water doesn't flow out of the domain freely
|
#1 |
New Member
Tom Zen-Mor
Join Date: Sep 2023
Posts: 1
Rep Power: 0 |
Hi.
My goal is to use the multi-phase solver called interFoam in order to simulate water flowing down some topology. The topology looks like an inclined half-pipe. The water comes in through the inlet boundary and should flow out freely at the outlet boundary. In the attached pictures, you can see the surface of the half-pipe, the inflow boundary and the large outflow boundary downstream. The water flows down quite reasonable until it hits the outlet boundary. Then it seems like the water reflects at the boundary, or it blows up the simulation. 0.jpg 1.jpg 2.jpg 3.jpg What I had already tried to fix this problem was - to change the outlet boundary condition according to the tutorial cases in interFoam/LES/nozzleFlow2D/ and /interFoam/laminar/dambreak/dambreak/. - to decrease the time step. - to increase the spatial resolution of the mesh where the water flows. - to run the simulation using LES instead of laminar flow. Unfortunately, none of these tries helped the water flowing out of the outlet freely. Is there anyone who can help me? ------ Here are the fvSolution and fvSchemes files, as well as the files for the p_rgh- and U-boundary conditions: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default Euler; } gradSchemes { default Gauss linear; } divSchemes { div(rhoPhi,U) Gauss linearUpwind grad(U); div(phi,alpha) Gauss vanLeer; div(phirb,alpha) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { "alpha.water.*" { nAlphaCorr 2; nAlphaSubCycles 1; cAlpha 1; MULESCorr yes; nLimiterIter 5; solver smoothSolver; smoother symGaussSeidel; tolerance 1e-8; relTol 0; } "pcorr.*" { solver PCG; preconditioner DIC; tolerance 1e-5; relTol 0; } p_rgh { solver PCG; preconditioner DIC; tolerance 1e-07; relTol 0.05; } p_rghFinal { $p_rgh; relTol 0; } U { solver smoothSolver; smoother symGaussSeidel; tolerance 1e-06; relTol 0; } } PIMPLE { momentumPredictor no; nOuterCorrectors 1; nCorrectors 3; nNonOrthogonalCorrectors 0; } relaxationFactors { equations { ".*" 1; } } // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ 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 { inlet { type zeroGradient; } outlet // Treat the outlet like the atmosphere boundary, like in tutorials/multiphase/interfoam/LES/nozzleFlow2D/0/. { type totalPressure; p0 uniform 0; } inletWall { type zeroGradient; } half_pipe { type zeroGradient; } atmosphere { type totalPressure; p0 uniform 0; } defaultFaces { type zeroGradient; } } // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ 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 fixedValue; value uniform (-10 0 0); } outlet { type zeroGradient; } inletWall { type zeroGradient; } half_pipe { type noSlip; } atmosphere { type pressureInletOutletVelocity; value uniform (0 0 0); } defaultFaces { type noSlip; } } // ************************************************************************* // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Atmospheric BCs for domain with a single boundary serving as both the inlet & outlet | Newtonian | OpenFOAM Running, Solving & CFD | 0 | July 21, 2022 14:07 |
Can I achieve better convergence? | sheaker | CFX | 12 | September 19, 2019 15:36 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 06:20 |
convergenceof natural convection prob. in cfx | cpkewat | CFX | 15 | January 31, 2014 06:29 |
uptodate water distribution network | fredius,magige,tanzanian,(e.a) | Main CFD Forum | 0 | January 27, 2002 07:10 |