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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
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

Old   March 6, 2024, 04:21
Default
  #2
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by quwsk View Post
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;
}

}

// ************************************************** *********************** //
You can not define total pressure both at inlet and outlet. Try total pressure at inlet and static pressure at outlet.

Furthermore, can I ask why not use the typical flow rate inlet and pressure outlet or vice versa?
unilord is offline   Reply With Quote

Old   March 6, 2024, 21:34
Default
  #3
New Member
 
Quincy
Join Date: Sep 2023
Posts: 5
Rep Power: 2
quwsk is on a distinguished road
Quote:
Originally Posted by unilord View Post
You can not define total pressure both at inlet and outlet. Try total pressure at inlet and static pressure at outlet.

Furthermore, can I ask why not use the typical flow rate inlet and pressure outlet or vice versa?

I assumed the pipe would be the wind tunnel for the fan. Which the massflow or velocity is unknown.

And I am more familiar with starccm+ and Fluent, which is set as Pressure inlet and Pressure outlet. Therefore I would like to know how to use Pressure inlet and outlet in OpenFOAM.
quwsk is offline   Reply With Quote

Old   March 6, 2024, 21:41
Default
  #4
New Member
 
Quincy
Join Date: Sep 2023
Posts: 5
Rep Power: 2
quwsk is on a distinguished road
And sorry, does static pressure means

type fixedValue;
value $internalField;

correct be if I am wrong
quwsk is offline   Reply With Quote

Reply

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 05:59.