|
[Sponsors] |
October 4, 2014, 19:07 |
Running a simple flow through an orifice
|
#1 |
New Member
Raghav
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
I learning OpenFOAM for about a month. I'm trying to run a simple 2D flow through an orifice. I think the problem is similar to the Cavity one in the tutorial. The problem and the mesh that i generated using blockMesh is attached. I'm using icoFoam as the solver. This is the error I get:
Code:
--> FOAM FATAL ERROR: Continuity error cannot be removed by adjusting the outflow. Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow. Total flux : 1.78803e-08 Specified mass inflow : 4.5e-07 Specified mass outflow : 0 Adjustable mass outflow : 2.32581e-53 From function adjustPhi(surfaceScalarField&, const volVectorField&,volScalarField&) in file cfdTools/general/adjustPhi/adjustPhi.C at line 118. FOAM exiting This is the boundary condition for u: Code:
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type fixedValue; value uniform (0.001 0 0); } outlet { type zeroGradient; } fixedWalls { type fixedValue; value uniform (0 0 0); } master1 { type fixedValue; value uniform (0 0 0); } master2 { type fixedValue; value uniform (0 0 0); } topAndBottom { type empty; } Can someone tell me where I'm making a mistake? |
|
October 4, 2014, 21:26 |
|
#2 |
New Member
Raghav
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
I tried tinkering around. I made the mesh very fine and deltaT very low so that the Courant number is very low. When I run it, it solves for a few time steps and the Courant number increases (order of 0.01) then gives out the same mistake again. I figured this could be because the fluid does not reach the outlet. So I gave a initial velocity for the internal flow field same as that of the inlet velocity. The solver seems to run fine, though I'm not sure if I'll the right answer.
Can someone explain physically and computationally whats happening here? PS: I had attached a wrong image of the problem before. Correct image attached now. |
|
October 5, 2014, 10:26 |
|
#3 |
Senior Member
|
Hi,
it'll be easier to answer your question if you post case files. Right now I can only try to guess that you've got problems with boundaries (boundaries near the orifice to be more exact). |
|
October 6, 2014, 16:29 |
|
#4 |
New Member
Matthew
Join Date: Jul 2011
Location: Pittsburgh, PA
Posts: 4
Rep Power: 15 |
Yes, please attach your case.
|
|
October 10, 2014, 13:25 |
|
#5 |
Senior Member
|
Although I am guessing here, I think you should actually change the boundary conditions in your p file. For the outlet you should use:
Code:
outlet { type fixedValue; value uniform 0; } Regards, Tom |
|
October 19, 2014, 22:38 |
|
#6 |
New Member
Raghav
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
Thanks @tomf, setting the outlet pressure to 0 worked. Thanks!
|
|
September 4, 2020, 09:50 |
Openfoam flow in orifice
|
#7 |
New Member
Join Date: Sep 2020
Posts: 1
Rep Power: 0 |
Does anyone have the case files for this problem?
|
|
Tags |
incompressible flow, orifice plate |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressible flow through an orifice | callumso | OpenFOAM Running, Solving & CFD | 4 | April 4, 2013 16:08 |
Need help in modeling flow through orifice | kunal | Main CFD Forum | 0 | April 16, 2010 10:12 |
SIMPLE method for inviscid flow | abcdef123 | Main CFD Forum | 0 | February 26, 2010 09:24 |
Orifice Flow | John Eichler | Main CFD Forum | 1 | November 6, 2002 13:26 |
Supercritical steam flow through orifice (/nozzle) | Miqu Lehtinen | Main CFD Forum | 1 | June 22, 1999 14:43 |