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

Pressure Driven Flow in Tube

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2018, 13:05
Question Pressure Driven Flow in Tube
  #1
New Member
 
George
Join Date: Jun 2017
Posts: 12
Rep Power: 9
last_jedi is on a distinguished road
Hello guys, i am trying to solve a case with icoFoam in a simple tube geometry, where laminar flow is driven by pressure.

More specific pressure is implemented in a sinusoidal form. I have been facing a problem with setting the BCs correctly.

Especially for outlet in pressure file, when i use zeroGradient case runs but results are not good. When i change this BC to fixedValue 0, then after some iterations CFL goes crazy. Pls any help would be great. My BC files can be seen below:




Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
      type            uniformFixedValue;
      uniformValue    sine;
      amplitude       6.85;
      frequency       0.25;
      scale           1;
      level           0;
      refValue        uniform 0;
  }
    
    outlet 
    {
        type            fixedValue;
        value           uniform 0;
    }
    
    wall
    {
        type            zeroGradient;
    }
    
}

// ************************************************************************* //

Code:
    /*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     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 (0 0 0);
    }
    
    outlet
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    
    wall
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    
}

// ************************************************************************* //
last_jedi is offline   Reply With Quote

Old   July 25, 2018, 04:59
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


You should use zeroGradient for velocity on the inlet and outlet if you define the pressure there.
simrego is offline   Reply With Quote

Old   July 25, 2018, 10:19
Default
  #3
New Member
 
George
Join Date: Jun 2017
Posts: 12
Rep Power: 9
last_jedi is on a distinguished road
Quote:
Originally Posted by simrego View Post
Hi!


You should use zeroGradient for velocity on the inlet and outlet if you define the pressure there.

Hi Simrego, i have tried also with zeroGradient for velocity inlet and outlet and CFL still goes crazy after a while..
last_jedi is offline   Reply With Quote

Old   July 25, 2018, 15:37
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
You should use zeroGradient, but at least not fixedValue (0 0 0).
If it's possible to post your case or at least a simplified (if your geometry is not public) one, it's easier to help you.
simrego is offline   Reply With Quote

Reply

Tags
bcs, icofoam, openfaom, pressure driven flow

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
static vs. total pressure auf dem feld FLUENT 17 February 26, 2016 13:04
Discrepancy in Pressure Driven Flow Behaviour in 211 vs 221 cdm OpenFOAM Running, Solving & CFD 5 December 17, 2013 07:48
velocity and pressure driven flow in openfoam jr33 OpenFOAM Running, Solving & CFD 1 August 7, 2013 11:00
pressure driven flow by pressure correction method justentered Main CFD Forum 0 December 29, 2003 23:52
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 00:52.