|
[Sponsors] |
January 17, 2018, 18:25 |
FLUID THROUGH A HOLE (2D) interFoam
|
#1 |
New Member
Join Date: Jan 2018
Posts: 1
Rep Power: 0 |
Hello everybody!
first of all, I would like to thank you for the help you provide! My case is quite simple, it's a 2d case, a plate with a hole (geometry like case ''plate with a hole'') https://cfd.direct/openfoam/user-guide/platehole/ but i have an inlet that is the hole with fluid and an outlet ( a face of the plate) i dont know why but when i run my case with interFoam after several minutes my simulation fails without any iteration. At time t=0 the water is located in the center of the hole. i set this boundary with ''sphereToCell'' in the setfields file the radius of region of alpha water is the same as the hole, volScalarFieldValue alpha.water 0 ); regions ( sphereToCell { centre (0.2 0.2 0); radius 0.02; sMy p rgh file FoamFile { version 2.0; format ascii; class volScalarField; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { left { type zeroGradient; } right { type totalPressure; rho rho; phi rhoPhi; p0 uniform 0.0; gamma 0; } opposite hole face { type zeroGradient; } hole face { type zeroGradient; } DefaultFaces { type empty; } hole { type totalPressure; rho rho; phi rhoPhi; p0 uniform 1.0e6; gamma 0; } } // ************************************************** *********************** // my u file FoamFile { version 2.0; format ascii; class volVectorField; location "0"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { left { type slip; } opposite hole face { type slip; } hole face { type slip; } hole { type pressureInletOutletVelocity; value uniform (0.0 0.0 0.0); } right { type pressureInletOutletVelocity; value uniform (0.0 0.0 0.0); } DefaultFaces { type empty; } } // ************************************************** *********************** // Thank you for your advice! Last edited by AmélieO; January 18, 2018 at 13:34. Reason: word mistake |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with chtMultiregionFoam radiation boundary condition | baran_foam | OpenFOAM Running, Solving & CFD | 10 | December 17, 2019 18:36 |
Physics of an incompressible fluid | Jonas Holdeman | Main CFD Forum | 87 | April 22, 2019 11:40 |
Relaxation of a "Squared" Droplet using the Volume of Fluid method in interFoam | pablitobass | OpenFOAM Running, Solving & CFD | 9 | February 27, 2016 15:20 |
My Revised "Time Vs Energy" Article For Review | Abhi | Main CFD Forum | 2 | July 9, 2002 10:08 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |