CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Another question on tracking free-surface!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2022, 09:22
Default Another question on tracking free-surface!
  #1
Member
 
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 44
Rep Power: 6
CallumG is on a distinguished road
Hi Foamers,

I'm looking for some help to obtain the z-position of the water-air interface at a constant (x, y) position.

I have been using interFOAM to simulate regular surface waves in a water-air multiphase simulation. I have 2D plane vtks saved from my simulation (see attached) and want to probe the centre location in paraview and plot the free surface height with time.

I've tried using a contour filter at alpha=0.5, but I then can't seem to pull a z-position value at a given streamwise location.

Any help would be appreciated.

Cheers,
Callum
Attached Images
File Type: jpg CO1.jpg (65.1 KB, 12 views)
CallumG is offline   Reply With Quote

Old   September 26, 2022, 08:31
Default
  #2
Member
 
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 44
Rep Power: 6
CallumG is on a distinguished road
For the benefit of others, I wanted to share one solution to this issue in ParaView I found. I start with a 2D plane vtp.series file.

The filters I then applied are:

1) Contour for alpha at 0.5

2) I then use the "slice" filter on the Contour at the streamwise position I wish to evaluate wave height at.

3) To make easier viewing, I then run a "calculator" filter on the Contour and select coordsZ from the Scalar drop down menu. This will colour the Contour by wave height.

4) Equally, in a side plane, you can take a spreadsheet view and view the "slice" coordinates - Z coordinate indicating the wave elevation.

5) Finally, you could then use the "plot over time" filter on the slice to get the data through time, this filter can take a LONG time to process.

I've attached a zip file with the ParaView state I used, if anyone has any questions/suggestions feel free to post below, and I'll keep an eye on it in the future!

All the best,
Callum
Attached Images
File Type: jpg CO2.jpg (77.7 KB, 6 views)
Attached Files
File Type: zip state.zip (60.5 KB, 1 views)

Last edited by CallumG; September 26, 2022 at 08:34. Reason: Adding image
CallumG 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
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 18:28
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
CFX convergence issues with free surface adenlan CFX 3 September 2, 2011 06:43
free surface display carno Siemens 4 October 7, 2005 01:03
free convection heat transfer from a heated horizontal surface through a liquid to a thin cooled fin Kaushik FLUENT 1 May 8, 2000 06:47


All times are GMT -4. The time now is 11:49.