|
[Sponsors] |
Stagnation inlet and Pressure outlet Boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 6, 2024, 00:35 |
Stagnation inlet and Pressure outlet Boundary condition
|
#1 |
New Member
Quincy
Join Date: Sep 2023
Posts: 5
Rep Power: 3 |
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; } } // ************************************************** *********************** // |
|
March 6, 2024, 05:21 |
|
#2 | |
Member
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 64
Rep Power: 4 |
Quote:
Furthermore, can I ask why not use the typical flow rate inlet and pressure outlet or vice versa? |
||
March 6, 2024, 22:34 |
|
#3 | |
New Member
Quincy
Join Date: Sep 2023
Posts: 5
Rep Power: 3 |
Quote:
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. |
||
March 6, 2024, 22:41 |
|
#4 |
New Member
Quincy
Join Date: Sep 2023
Posts: 5
Rep Power: 3 |
And sorry, does static pressure means
type fixedValue; value $internalField; correct be if I am wrong |
|
Tags |
openfoam, pressure inlet, pressure outlet, stagnation inlet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
Table bounds warnings at: END OF TIME STEP | CFXer | CFX | 4 | July 17, 2020 00:44 |
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions | Vishnu_bharathi | CFX | 12 | November 21, 2017 07:56 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |