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

Stagnation inlet and Pressure outlet Boundary condition

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 5, 2024, 23:35
Default Stagnation inlet and Pressure outlet Boundary condition
  #1
New Member
 
Quincy
Join Date: Sep 2023
Posts: 5
Rep Power: 2
quwsk is on a distinguished road
I'm very new to OpenFOAM, and not familiar with the BC of OpenFOAM.
I am doing a simulation with a pipe flow with Stagnation inlet and Pressure outlet. But it diverges with the setting below, which part did I do wrong?
And anyone help me please.


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / 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 101.629889;

boundaryField
{

inlet
{
type totalPressure;
p0 uniform 97.5;
value uniform 97.5;
}


outlet
{
type totalPressure;
p0 uniform 0;
value uniform 0;
}

wall
{
type zeroGradient;
}

}

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



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

outlet
{
type pressureInletOutletVelocity;
tangentialVelocity $internalField;
value $internalField;
}


wall
{
type noSlip;
}

}

// ************************************************** *********************** //
quwsk is offline   Reply With Quote

 

Tags
openfoam, pressure inlet, pressure outlet, stagnation inlet


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
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
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 13:19.