CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Running a simple flow through an orifice

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2014, 18:07
Default Running a simple flow through an orifice
  #1
New Member
 
Raghav
Join Date: Oct 2014
Posts: 12
Rep Power: 11
raghav.venky is on a distinguished road
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;
    }
I've given the velocity boundary condition at the outlet as zeroGradient. So I don't know why the continuity equation shouldn't satisfied.

Can someone tell me where I'm making a mistake?
Attached Images
File Type: jpg mesh.jpg (54.9 KB, 86 views)
File Type: jpg problem.jpg (37.6 KB, 47 views)
raghav.venky is offline   Reply With Quote

Old   October 4, 2014, 20:26
Default
  #2
New Member
 
Raghav
Join Date: Oct 2014
Posts: 12
Rep Power: 11
raghav.venky is on a distinguished road
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.
Attached Images
File Type: jpg problem.jpg (36.6 KB, 61 views)
raghav.venky is offline   Reply With Quote

Old   October 5, 2014, 09:26
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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).
alexeym is offline   Reply With Quote

Old   October 6, 2014, 15:29
Default
  #4
New Member
 
Matthew
Join Date: Jul 2011
Location: Pittsburgh, PA
Posts: 4
Rep Power: 14
MPD78 is on a distinguished road
Yes, please attach your case.
MPD78 is offline   Reply With Quote

Old   October 10, 2014, 12:25
Default
  #5
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
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;
}
In fact your flow looks more like the pitzDaily (1 inlet, 1 outlet) tutorial than the cavity (only walls).

Regards,
Tom
tomf is offline   Reply With Quote

Old   October 19, 2014, 21:38
Default
  #6
New Member
 
Raghav
Join Date: Oct 2014
Posts: 12
Rep Power: 11
raghav.venky is on a distinguished road
Thanks @tomf, setting the outlet pressure to 0 worked. Thanks!
raghav.venky is offline   Reply With Quote

Old   September 4, 2020, 08:50
Default Openfoam flow in orifice
  #7
New Member
 
Join Date: Sep 2020
Posts: 1
Rep Power: 0
NikBomb is on a distinguished road
Does anyone have the case files for this problem?
NikBomb is offline   Reply With Quote

Reply

Tags
incompressible flow, orifice plate


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressible flow through an orifice callumso OpenFOAM Running, Solving & CFD 4 April 4, 2013 15:08
Need help in modeling flow through orifice kunal Main CFD Forum 0 April 16, 2010 09:12
SIMPLE method for inviscid flow abcdef123 Main CFD Forum 0 February 26, 2010 08:24
Orifice Flow John Eichler Main CFD Forum 1 November 6, 2002 12:26
Supercritical steam flow through orifice (/nozzle) Miqu Lehtinen Main CFD Forum 1 June 22, 1999 13:43


All times are GMT -4. The time now is 03:18.