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

Initial conditions for uniform flow

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 12, 2012, 15:07
Default Initial conditions for uniform flow
  #1
New Member
 
Join Date: Oct 2012
Posts: 14
Rep Power: 13
andreas is on a distinguished road
Hello,

I'm new in CFD and would like to know how to write the initial conditions for an incompressible fluid between two plane surfaces. I used channelFlow for the mesh, but have to change the 0 folder.

My initial conditions are:
p_inlet = p_outlet
V_initial = 5 m/s

As you imagine, the fluid will slow down untill it stops since there is no pressure gradient.

My initial pressure conditions are:

Code:
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 1;

boundaryField
{

    inlet
    {
        type            fixedValue;
    value        uniform 1;
    }

    outlet
    {
        type            fixedValue;
    value        uniform 1;
    }

    upAndDown
    {
        type            zeroGradient;
    }
    frontAndBack
    {
        type            empty;
    }
}
My initial speed conditions are:

Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (5 0 0);

boundaryField
{
    inlet
    {
        type            cyclic;
    }

    outlet
    {
        type            cyclic;  
    }

    TopAndBottom
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    frontAndBack
    {
        type            empty;
    }
}
But when I try to push the "apply" button on paraFoam, it automaticaly closes and I come back to the terminal window.

Thanks for your help,
Andreas

Last edited by andreas; November 12, 2012 at 18:39.
andreas is offline   Reply With Quote

 


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
Interfoam blows on parallel run danvica OpenFOAM Running, Solving & CFD 16 December 22, 2012 02:09
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
MRFSimpleFOAM goes divergenced! renyun0511 OpenFOAM Running, Solving & CFD 0 November 19, 2009 02:11
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


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