CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > EnSight

depth averaged velocity from a CFX free surface flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2016, 12:44
Default depth averaged velocity from a CFX free surface flow
  #1
Member
 
Ruud Caljouw
Join Date: Dec 2012
Posts: 45
Rep Power: 13
bolus13 is on a distinguished road
Hi All,

I calculated a hydraulic flow through a channel including the free surface. I exported the data from CFX to EnSight.

Now from the result I wish to calculate the depth averaged velocity in the channel.

Would anyone know if this is possible in EnSight?

Thanks
bolus13 is offline   Reply With Quote

Old   November 17, 2016, 16:41
Default
  #2
Senior Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17
kevincolburn is on a distinguished road
Are you attempting to obtain a scalar value on the free surface, which is the depth averaged velocity of just the velocity which is below that triangle on the free surface? In other words, conceptually, from each triangle on the free surface, shoot a line vertically downwards, and obtain the depth averaged velocity along that ray, and place that value on the triangle on the free surface?
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ensight.com
kevincolburn is offline   Reply With Quote

Old   November 17, 2016, 18:16
Default
  #3
Member
 
Ruud Caljouw
Join Date: Dec 2012
Posts: 45
Rep Power: 13
bolus13 is on a distinguished road
if I understand you correctly, yes that is what I would like. To end up with a plane showing the depth average velocity at each location.

Attached is an image of the flow field. It is a free surface flow from a channel into a reservoir. 6 meter water depth. I have added 5 clips in the image.

The mesh is unstructured, which makes it a bit more difficult.
Attached Images
File Type: jpg hydraulic flow out of channel.jpg (78.2 KB, 51 views)
bolus13 is offline   Reply With Quote

Old   November 18, 2016, 03:02
Default
  #4
Senior Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17
kevincolburn is on a distinguished road
Okay. Take a look at the "Radiograph_grid()" and "Radiograph_mesh()" calculator operations in the UserManual. I suspect that the Radiograph_mesh() option will be the starting point allowing you to integrate the velocity along a ray cast from the each element in the vertical direction. You may also need to compute the radiograph_mesh of the depth of the water column in order to finally obtain the depth average velocity.

For example, you may need to utilize the velocity / depth as a variable calculation first. If you then utilize the Radiograph_mesh() to integrate the velocity / depth variable, this might provide the quantification that you are looking for.

-Kevin
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ensight.com
kevincolburn is offline   Reply With Quote

Old   November 19, 2016, 08:43
Default
  #5
Member
 
Ruud Caljouw
Join Date: Dec 2012
Posts: 45
Rep Power: 13
bolus13 is on a distinguished road
Hi Kevin,

Thanks for the answer. This seems to work. I applied the Radiograph mesh from the water level surface downards (z=-1) and it showed good result. This result indeed needs to be divided by the water depth.

Now I am unsure how to obtain the depth, which variable should I use in this case. I looked for the z-coordinate, but I can not find it in my data. I do have a variable called 'Coordinates', but it does not give its separate components.

Can you advise?
bolus13 is offline   Reply With Quote

Old   November 20, 2016, 08:08
Default
  #6
Member
 
Ruud Caljouw
Join Date: Dec 2012
Posts: 45
Rep Power: 13
bolus13 is on a distinguished road
In the meanwhile I found the answer. I used the water volume fraction as the variable to calculate the water depth. This value is 1 everywhere below the water line. With this I have been able to calculate the depth average velocity.

I do have one more question. Why does radiograph_mesh take much longer than radiograph_grid. With radiograph mesh it took several hours to perform the calculation.
bolus13 is offline   Reply With Quote

Old   November 20, 2016, 11:46
Default
  #7
Senior Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17
kevincolburn is on a distinguished road
Previous answer/additional information:

For any vector quantity or Coordinate variable, you can use the UserDefinedFunctions (tab just to the right of the PreDefinedFunctions in the Calculator dialog) to extract out components of a vector or Coordinate. So, you could extract out the Z coordinate by : Cz = Coordinates[Z].
You could get the X component of a vector via similar : X_comp = Velocity[X]

I believe that the main difference is that the "grid" option simply places its locations at fixed locations normal to the surface (quick to determine their position, and interpolate those), as opposed to the "mesh" option which tries to integrate through each element in a normal direction... which requires lengthy connectivity and directional searches. So, I believe that the "mesh" option is heavily bound by connectivity searches while the "grid" option more simply places location for the interpolation to take place and is independent of connectivity related speed/computation.
-kevin
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ensight.com
kevincolburn is offline   Reply With Quote

Old   November 21, 2016, 07:04
Default
  #8
Member
 
Ruud Caljouw
Join Date: Dec 2012
Posts: 45
Rep Power: 13
bolus13 is on a distinguished road
Thanks, that makes sense now.

I do have one more question on saving my work. In what way can I just save my work and continue with it next day. At the moment I save my session file, but each time I open it it needs to redo the radiograph-grid calculation, which takes quite a while. How do I speed this up?
bolus13 is offline   Reply With Quote

Old   November 21, 2016, 11:22
Default
  #9
Senior Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17
kevincolburn is on a distinguished road
The Session file is probably the best solution for you in terms of time/disk. You can use the "Archive" file save (File --- > Save -- > Archive). This writes what is in memory at the moment to disk. This means that you get back all of the resultant operations from the RadioGraph operations without having to physically do them again. However, the archive files are large, machine specific, and dataset specific.
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ensight.com
kevincolburn is offline   Reply With Quote

Reply


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
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
define free surface in cfx? hamidciv CFX 1 April 7, 2014 05:55
Time averaged velocity in turbulent pipe flow tsero FLUENT 1 November 2, 2012 04:19
Convergence but incorrect results in Free Surface flow fmjb CFX 10 October 26, 2011 08:18
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


All times are GMT -4. The time now is 14:50.