CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

flow simulation with only delta pressure known

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2016, 10:15
Default flow simulation with only delta pressure known
  #1
Member
 
power
Join Date: Jun 2014
Posts: 86
Rep Power: 12
enginpower is on a distinguished road
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
The fluid is water, so incompressible, steady and turbolent.

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!!
enginpower is offline   Reply With Quote

Old   July 15, 2016, 05:34
Unhappy
  #2
Member
 
power
Join Date: Jun 2014
Posts: 86
Rep Power: 12
enginpower is on a distinguished road


No one has any solution or suggestions?

Thanks
enginpower is offline   Reply With Quote

Old   July 18, 2016, 05:35
Default
  #3
New Member
 
Katrin
Join Date: Jul 2016
Posts: 18
Rep Power: 10
highpressuretube is on a distinguished road
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.
highpressuretube is offline   Reply With Quote

Old   July 18, 2016, 10:52
Default
  #4
Member
 
W.T
Join Date: Oct 2012
Posts: 35
Rep Power: 14
dybuk is on a distinguished road
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 .
dybuk is offline   Reply With Quote

Old   September 20, 2016, 12:34
Default
  #5
Member
 
power
Join Date: Jun 2014
Posts: 86
Rep Power: 12
enginpower is on a distinguished road
I'll try the iterative process. I hope...
enginpower is offline   Reply With Quote

Old   September 20, 2016, 15:37
Default B.C. for velocity components.
  #6
New Member
 
Maryam
Join Date: Dec 2015
Posts: 13
Rep Power: 10
Persia is on a distinguished road
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
Persia is offline   Reply With Quote

Reply

Tags
incompressible divergence, incompressible flow, simple algorithm


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:12.