|
[Sponsors] |
April 2, 2019, 12:57 |
Add P_rgh to solver with P
|
#1 |
Member
Ramin
Join Date: Oct 2015
Posts: 33
Rep Power: 11 |
Hi,
I have an incompressible case and this case has some problems with pressure outlet bounday condition. it is just a duct with an velocity inlet and an pressure outlet. I asked a friend why the outlet works like this and I got this message: MPPICFoam/DPMFoam are incompressible solvers so you could use the uniformDensityHydrostaticPressure. However this is not as accurate or reliable as using p_rgh for strongly buoyant flows so you could change these solvers to solve for p_rgh or fund this development. I tried uniformDensityHydrostaticPressure but it didn't work. Now, I want to add p_rgh instead of p in my solver. Do you have any idea of what should I do? 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 { inlet { type fixedValue; value uniform (0.5 0 0); //phi phi.water; //alpha alpha.water; } outlet { type zeroGradient; /* type inletOutlet; phi phi.water; inletValue uniform (0 0 0); value uniform (0 0 0); */ } upperWall { type noSlip; /* type inletOutlet; phi phi.water; inletValue uniform (0 0 0); value uniform (0 0 0); */ } walls { type noSlip; } sides { type noSlip; } } // ************************************************************************* // 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 { inlet { type fixedFluxPressure; phi phi.water; value $internalField; } outlet { type fixedValue; value uniform 0;; //phi phi.water; //value $internalField; } upperWall { type zeroGradient; } walls { type zeroGradient; /* type fixedFluxPressure; phi phi.water; value $internalField; */ } sides { type zeroGradient; /* type fixedFluxPressure; phi phi.water; value $internalField; */ } } // ************************************************************************* // Last edited by wyldckat; May 1, 2019 at 11:24. Reason: Added [CODE][/CODE] markers |
|
April 2, 2019, 23:39 |
|
#2 |
Member
Join Date: Feb 2016
Posts: 41
Rep Power: 10 |
Dry but why not use the incompressible solvers for you incompressible case?
|
|
April 5, 2019, 18:18 |
|
#3 |
Member
Ramin
Join Date: Oct 2015
Posts: 33
Rep Power: 11 |
||
May 1, 2019, 11:53 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
A few quick answers/questions:
__________________
|
|
May 1, 2019, 15:36 |
|
#5 | |
Member
Ramin
Join Date: Oct 2015
Posts: 33
Rep Power: 11 |
Quote:
I tried the boundary condition that you proposed and I can see the problem with outlet boundary condition. Flow is incompressible and the length of the control volume is less than 10cm. Reynolds number is around 10 and 9.81 gravity. As far as the dimension is small and also Re is low, I thought that maybe we have buoyant flow. I did this simulation with MPPICInterFoam (with one phase) and everything works well because it works with p_rgh. I am sure that particles don't have any role in this disturbtion becasue I didn't inject any particle at this stage and I just used MPPICFoam solver. |
||
Tags |
buoyancy, dpmfoam, mppicfoam, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[waves2Foam] Add user defined gauges in waveFoam | Lewis Liang | OpenFOAM Community Contributions | 3 | October 18, 2020 11:32 |
Is it possible to add massless particles to an incompressible flow at solver level? | LauraSumner | OpenFOAM Running, Solving & CFD | 1 | September 30, 2019 18:13 |
how to modify a solver to add a disturbance | goodkid | OpenFOAM | 2 | June 25, 2011 05:35 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
How to add temperature to cavitatingFoam solver | chodki-c | OpenFOAM | 9 | September 30, 2010 12:21 |