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

Simple gas flow through pipe

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mikeR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2014, 08:26
Default Simple gas flow through pipe
  #1
New Member
 
anonymous
Join Date: Apr 2014
Posts: 8
Rep Power: 12
mikeR is on a distinguished road
Hi CFD-Community!

I'm very new to cfd simulations, especially I just started with openFoam. I'm kinda stuck on probably the most basic examples using icoFoam, maybe someone can spot my stupid mistake

Minimal test case: A simple small rectangular capillary - internal pressure 0.1Pa - with a pressure inlet on one side. It is assumed that there is an infinite volume with with a fixed pressure of 1000Pa connected to the inlet so we can assume there will be a constant flow into the capillary (for simplicity I assume the pressure is equal to the kinematic pressure).

The simulation is running without errors but when I view the data in paraFoam I would assume that after some time the pressure within the capillary should reach 1000Pa. This is however not the case, the pressure is somewhere in the magnitude of 1xE-16.
My p file:
Code:
dimensions      [0 2 -2 0 0 0 0];
internalField   uniform 0.1;
boundaryField
{
    Inlet
    {
        type            fixedValue;
        value           uniform 1000;
    }
    Walls
    {
        type            zeroGradient;
    }
My U file:
Code:
dimensions      [0 1 -1 0 0 0 0];
internalField   uniform (0 0 0);
boundaryField
{
    Inlet
    {
        type            pressureInletVelocity ;
        value           uniform (0 0 0);
    }
    Walls
    {
        type            zeroGradient;
    }
In my blockMeshDict is specified the Inlet type as Wall
Code:
Inlet
{
    type wall;
    [...]
}
Is this in general the right approach for the problem? Any tips are greatly appreciated
mikeR is offline   Reply With Quote

Old   April 4, 2014, 10:20
Default
  #2
New Member
 
anonymous
Join Date: Apr 2014
Posts: 8
Rep Power: 12
mikeR is on a distinguished road
so I think I solved my problem. In the end it was a problem with the mesh, can't really tell what it was but using netgen and converting it instead of using blockMesh solved everything
Annier likes this.
mikeR is offline   Reply With Quote

Reply


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
High speed compressible flow through pipe Munni Main CFD Forum 6 December 7, 2015 11:33
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
About Turbulence Intensity (Pipe flow assimilated) gRomK13 Main CFD Forum 1 July 10, 2009 03:11
What is the difference between liquid reactive flow and gas reactive flow? James Main CFD Forum 6 May 15, 2009 12:14
gas solid flow in a pipe Pandu CFX 0 July 30, 2001 16:53


All times are GMT -4. The time now is 15:30.