CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Oscillating flow: wrong results when flow is negative

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2015, 18:42
Default Oscillating flow: wrong results when flow is negative
  #1
Member
 
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 11
bongbang is on a distinguished road
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.

bongbang is offline   Reply With Quote

Old   February 23, 2015, 22:41
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
You should read the definition for Opening Pressure, and see if it matches what you would like to model. The documentation says

Quote:
2.6.1.3. Opening Pressure and Direction

When the flow direction is into the domain, the pressure value is taken to be total pressure based on the normal component of velocity. When it is leaving the domain, it is taken to be relative static pressure.

This option also requires that the Flow Direction is specified, and is used if the flow is into the domain. For details, see Flow Direction.

This is the most robust and stable setting for a pressure specified opening because it puts a constraint on the momentum transported through the boundary condition.
When the flow changes sign at the boundary, is the effective BC setup what you intend to model, i.e. Velocity inlet->Static Pressure, and Velocity Inlet-> Total Pressure (based on Normal Component) ?
Opaque is offline   Reply With Quote

Old   February 23, 2015, 23:07
Default
  #3
Member
 
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 11
bongbang is on a distinguished road
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.
bongbang is offline   Reply With Quote

Old   February 24, 2015, 14:09
Default
  #4
Member
 
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 11
bongbang is on a distinguished road
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.

bongbang is offline   Reply With Quote

Old   February 24, 2015, 16:16
Default
  #5
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
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.
Opaque is offline   Reply With Quote

Old   February 25, 2015, 04:55
Default
  #6
Senior Member
 
Thomas MADELEINE
Join Date: Oct 2014
Posts: 126
Rep Power: 12
Thomas MADELEINE is on a distinguished road
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
Thomas MADELEINE is offline   Reply With Quote

Old   February 27, 2015, 14:10
Default
  #7
Member
 
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 11
bongbang is on a distinguished road
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.
bongbang is offline   Reply With Quote

Old   February 28, 2015, 10:58
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
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.
Opaque is offline   Reply With Quote

Old   February 28, 2015, 13:03
Default
  #9
Member
 
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 11
bongbang is on a distinguished road
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.
bongbang is offline   Reply With Quote

Old   February 28, 2015, 18:20
Default
  #10
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Are you plotting conservative values, or hybrid values ?

For hybrid values, I guess you have non-slip walls; therefore, the 0 value. However, for conservative values I would expect non-zero values for a non-recirculating flow.
Opaque is offline   Reply With Quote

Old   March 23, 2015, 06:52
Default
  #11
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 12
ahmed ramadan is on a distinguished road
Hello!
I have the same problem how can i see the reverse flow ?
ahmed ramadan is offline   Reply With Quote

Old   March 23, 2015, 17:30
Default
  #12
Member
 
NC
Join Date: Jan 2015
Posts: 49
Rep Power: 11
bongbang is on a distinguished road
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.
bongbang is offline   Reply With Quote

Old   March 25, 2015, 04:56
Default
  #13
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 12
ahmed ramadan is on a distinguished road
Ok , i will and i will send the results
ahmed ramadan is offline   Reply With Quote

Reply

Tags
oscillation, transient analysis


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
Review: Reversed flow CRT FLUENT 1 May 7, 2018 06:36
Gate valve flow simulations... nikesh FloEFD, FloWorks & FloTHERM 5 January 28, 2014 02:31
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
Wrong Pressure countors for channel flow driven by mass flow rate or press gradient ash-khan FLUENT 0 June 21, 2009 11:02
negative global mass flow rate Gimli FLUENT 0 April 21, 2006 08:17


All times are GMT -4. The time now is 16:15.