|
[Sponsors] |
flow simulation with only delta pressure known |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2016, 10:15 |
flow simulation with only delta pressure known
|
#1 |
Member
power
Join Date: Jun 2014
Posts: 86
Rep Power: 12 |
Hi all,
I'm not new to OpenFoam but I don't have much experience on it. I followed a lot of tutorials but this case seams to be particular I have to simulate a flow through a 'pipe' knowing just the difference of pressure between inlet and outlet. I'm using simplefoam solver but I'm a bit confusing how to set the boundary conditions. All configurations I tried, diverge. The pipe has a trasversal surface with a lot of holes that has the function of a narrowing of the flow. I set all the obstacles as wall patches. No problem with the mesh, and also checkMesh command gives the OK. Thus the geometry has simply an inlet, an outlet and a wall. Really I know only the pressure conditions on the inlet and the outlet, and not the velocity. My problem is how to set these boundary conditions. I'm a bit confused if to use 'zeroGradient' or 'calculated' on the inlet/outlet. For the second I got also an error Code:
gradientInternalCoeffs cannot be called for a calculatedFvPatchField on patch inlet of field U in file "./pipe_250/0/U" You are probably trying to solve for a field with a default boundary condition. From function calculatedFvPatchField<Type>::gradientInternalCoeffs() const in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 199. FOAM exiting I hope you can help me making me clear how to best set the boundary condition and avoid the solver diverges. Moreover if I need to set some values for k, omega and epsilon, as I did basing on some supposition, how to calculate them? I just know the pressure and not the velocity. How to do that? Maybe I'm just confusing the phenomena or doing some flow wrong assumptions. Here is the files of the variables. It returns the error reported above. Thanks so much for who wants to help me!! |
|
July 15, 2016, 05:34 |
|
#2 |
Member
power
Join Date: Jun 2014
Posts: 86
Rep Power: 12 |
No one has any solution or suggestions? Thanks |
|
July 18, 2016, 05:35 |
|
#3 |
New Member
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10 |
My best guess would be an iterative approach. You make a flow velocity guess, and calculate a delta pressure. Than adapt your velocity guess according the calculated delta pressure and calculate a new delta pressure. Adapt as many times as you need to get close to your delta pressure.
Regards, K. |
|
July 18, 2016, 10:52 |
|
#4 |
Member
W.T
Join Date: Oct 2012
Posts: 35
Rep Power: 14 |
You can set pressure difference by using totalPressure on inlet and fixedValue on outlet for pressure BC. Also remember to use appropriate BC for velocity.Try zeroGradient or some fancy BC like pressureDirectedInletVelocity on inlet and inletOutlet or zeroGradient (if you allow the backflow) on outlet .
|
|
September 20, 2016, 12:34 |
|
#5 |
Member
power
Join Date: Jun 2014
Posts: 86
Rep Power: 12 |
I'll try the iterative process. I hope...
|
|
September 20, 2016, 15:37 |
B.C. for velocity components.
|
#6 |
New Member
Maryam
Join Date: Dec 2015
Posts: 13
Rep Power: 10 |
Pressure-driven flow is known to cause instability in OpenFOAM. This document explains why and shows how to avoid it:
https://www.researchgate.net/publica...ow_in_OpenFOAM |
|
Tags |
incompressible divergence, incompressible flow, simple algorithm |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some questions about flow boiling simulation in Fluent | beastieboys6 | FLUENT | 8 | November 21, 2017 00:47 |
Total pressure and mass flow boundary condition at inlet | bscphil | OpenFOAM Pre-Processing | 3 | July 9, 2017 15:39 |
Mass flow rate prediction of Purge control valve using set pressure drop | enr_venkat | CFX | 11 | February 27, 2014 12:30 |
Non-steady flow simplified for use in Vissim | steamerandy | Main CFD Forum | 0 | October 31, 2011 22:08 |
stagnation pressure in transient flow simulation | K.S.Ravichandran | Main CFD Forum | 2 | September 5, 2000 01:34 |