|
[Sponsors] |
Pressure Inlet and Pressure Outlet to analyse flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 18, 2019, 08:40 |
Pressure Inlet and Pressure Outlet to analyse flow
|
#1 |
New Member
Nidal
Join Date: Nov 2018
Posts: 17
Rep Power: 8 |
Hi,
I am using an inlet and an outlet pressure to try and solve an incompressible flow problem. The issue I am facing is that my solver always fails due to a high courant number no matter what I use. I tried Simple, Pimple, Piso. Please let me know if you can find a mistake in my code below. PS: You can think of my problem as a box with a few internal walls directing the flow. 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; } } // ************************************************************************* // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 07:40 |
Reversed flow using pressure inlet and outlet? | here_for_help | FLUENT | 0 | September 28, 2018 16:20 |
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions | Vishnu_bharathi | CFX | 12 | November 21, 2017 07:56 |
Pressure Outlet Targeted Mass Flow Rate | LuckyTran | FLUENT | 1 | November 23, 2016 11:40 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |