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

Boundary conditions - Pressure input ONLY

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2019, 09:29
Default Boundary conditions - Pressure input ONLY
  #1
New Member
 
Nidal
Join Date: Nov 2018
Posts: 17
Rep Power: 7
Nidalsb is on a distinguished road
Hi,

I am using an inlet and an outlet pressure to try and solve an incompressible flow problem. I do not have any velocity or flow rate data.

The issue I am facing is that my solver always fails due to a high courant number no matter what solver I use. I tried Simple, Pimple and Piso.

Please let me know if you can find a mistake in my code below or feel free to suggest anything that would help.

PS: You can think of my problem as a box with a few internal walls directing the flow. xmin is the pressure inlet, xmax is the pressure outlet. the walls on the sides of the box are zmin. zmax, ymin, ymax and finally the internalwall is walls directing the flow in the interior of the box.

My P:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.0                                   |
|   \\  /    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
{
    xmin
    {
	type         totalPressure;
	p0           uniform 130000;
        value        $internalField;

    }

    xmax
    {
	type         totalPressure;
	p0           uniform 100000;
        value        $internalField;

    }

    ymin
    {
	type            zeroGradient;
    }

    ymax
    {
	type            zeroGradient;
    }

    zmin
    {
	type            zeroGradient;
    }

    zmax
    {
	type            zeroGradient;
    }
    
   internalWall
    {
        type            zeroGradient;
    }
}

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

My U:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.0                                   |
|   \\  /    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
{
    xmin
    {
        type            pressureInletVelocity;
	value		$internalField;
    }

    xmax
    {
	type 		pressureInletOutletVelocity;
	value		uniform (0 0 0);
    }

    ymin
    {
        type            noSlip;
    }

    ymax
    {
        type            noSlip;
    }

    zmin	
    {
        type            noSlip;
    }

    zmax
    {
        type            noSlip;
    }

    internalWall
    {
        type            noSlip;
    }
}

// ************************************************************************* //
Nidalsb is offline   Reply With Quote

Old   September 22, 2019, 04:48
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Quote:
I am using an inlet and an outlet pressure to try and solve an incompressible flow problem. I do not have any velocity or flow rate data.
The short answer is that you cannot specify only pressure-valued boundary conditions for incompressible flow computations. Otherwise, the linear system of equations are over-determined, the velocity field can be anything.

Possibly, with these settings, the velocity field will therefore keep increasing without any bounding as you have already observed it that your simulation got high Courant number problem.

Please do more elborate search the forum. The topic had been discussed quite many times.

Kind regards,
HPE

Last edited by HPE; September 22, 2019 at 05:10. Reason: Adds the signature
HPE is offline   Reply With Quote

Reply

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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
interFoam (HELYX-OS) pressure boundary conditions SFr OpenFOAM Running, Solving & CFD 8 June 23, 2016 16:36
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32


All times are GMT -4. The time now is 22:26.