|
[Sponsors] |
September 19, 2019, 09:29 |
Boundary conditions - Pressure input ONLY
|
#1 |
New Member
Nidal
Join Date: Nov 2018
Posts: 17
Rep Power: 7 |
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; } } // ************************************************************************* // |
|
September 22, 2019, 04:48 |
|
#2 | |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Quote:
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 |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |