
[Sponsors] 
February 23, 2015, 18:42 
Oscillating flow: wrong results when flow is negative

#1 
Member
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 3 
This is a minimal transient test case for an oscillating flow. The geometry is 1/6 of a tube with appropriate symmetry planes. The inlet velocity is specified by a data profile (with t and r dependence). The outlet ("opening") has a "opening pressure and direction" of 0 relative to the reference.
The result looks good when flow is positive. However, when flow is negative, velocity inside the domain drops to 0 even though the outlet profile correctly correctly corresponds to the inlet one. I understand negative flow can be tricky, but the software should be able to handle this case easily. How can I fix this? Thank you. 

February 23, 2015, 22:41 

#2  
Senior Member
Join Date: Jun 2009
Posts: 402
Rep Power: 11 
You should read the definition for Opening Pressure, and see if it matches what you would like to model. The documentation says
Quote:


February 23, 2015, 23:07 

#3 
Member
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 3 
I did read that part and admittedly didn't quite understand. Reading again, I'm starting to think that setting "static pressure and direction" might have been more appropriate, although that simulation is less robust according to the automatic warning. But I tried that, too, and got the same result (I will doublecheck tomorrow, but I'm 80% sure).
Correct me if I'm wrong, but I don't see (absolute) pressure as a crucial part of my model since it is the pressure difference that drives this simple flow. So let's say I go with the default 1 atm static pressure at the outlet (= 0 "relative static" + 1 "reference"), then the pressure at the inlet and everywhere else will be implicit in the velocity specified or derived. I.e. the pressure at any location will be 1 atm + Delta P required to produce the flow. 

February 24, 2015, 14:09 

#4 
Member
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 3 
I figured it out. The results are indeed correct, as can be seen in the vector plot below. The contour plot just doesn't seem to know how to deal with negative values.


February 24, 2015, 16:16 

#5 
Senior Member
Join Date: Jun 2009
Posts: 402
Rep Power: 11 
You got it. There is nothing wrong with the software, nor it is doing anything strange.
You are plotting contours for the velocity magnitude which is always positive. 

February 25, 2015, 04:55 

#6 
Senior Member
Thomas MADELEINE
Join Date: Oct 2014
Posts: 122
Rep Power: 3 
What do you plot on your contour profile on the symmetry faces ?
It looks like it is Z velocity in a range from 0 to 0.001795 if it is Velocity (so the magnitude) it should be red too 

February 27, 2015, 14:10 

#7 
Member
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 3 
Yes, Thomas, that's what I thought to. I plotted velocity, of course, as you can see from the image at the top. The magnitude of velocity in the domain during negative flow is obviously not 0, as you can see from the vector plot. This looks like a bug to me.


February 28, 2015, 10:58 

#8 
Senior Member
Join Date: Jun 2009
Posts: 402
Rep Power: 11 
There is no such thing as negative flow unless you set a reference of what is positive. For example, flow crossing a boundary can be both positive or negative depending on your convention of normal vectors, and what you define as positive.
Some textbooks define positive flow as V.n > 0 which means nothing yet unless you define your normals. For outwards normals, V.n< 0 at inlets and >0 at outlets. For inward normals the opposite is true. Now, which one is right, or correct ? The situation is more complicated in the interior where there is no boundary to refer to. Then, it makes little sense talking about flow sign. The vectors are interpreted as they should, a magnitude (positive by definition) and direction. 

February 28, 2015, 13:03 

#9 
Member
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 3 
Of course, the sign depends on the frame of reference. We're talking talking about V_z, which is positive in the positive z direction. The coordinate system is right there on every plot.
Do you have an explanation as to why the contour plot should show the magnitude of 0 in domain the second picture. If not, then I say that's a bug. 

February 28, 2015, 18:20 

#10 
Senior Member
Join Date: Jun 2009
Posts: 402
Rep Power: 11 
Are you plotting conservative values, or hybrid values ?
For hybrid values, I guess you have nonslip walls; therefore, the 0 value. However, for conservative values I would expect nonzero values for a nonrecirculating flow. 

March 23, 2015, 06:52 

#11 
New Member
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 3 
Hello!
I have the same problem how can i see the reverse flow ? 

March 23, 2015, 17:30 

#12 
Member
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 3 
Ahmed, do what I did above. Use vector instead of contour.
Opaque, what you assumed to be wall is actually just an interface in the flow field (see my vector plot above). So its blue coloring in the contour plot is simply wrong. 

March 25, 2015, 04:56 

#13 
New Member
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 3 
Ok , i will and i will send the results


Tags 
oscillation, transient analysis 
Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Gate valve flow simulations...  nikesh  FloEFD, FloWorks & FloTHERM  5  January 28, 2014 02:31 
Review: Reversed flow  CRT  FLUENT  0  July 20, 2012 13:03 
BlockMesh FOAM warning  gaottino  OpenFOAM Native Meshers: blockMesh  7  July 19, 2010 14:11 
Wrong Pressure countors for channel flow driven by mass flow rate or press gradient  ashkhan  FLUENT  0  June 21, 2009 10:02 
negative global mass flow rate  Gimli  FLUENT  0  April 21, 2006 07:17 