To extract point values from 2D SPHysics simulations

Issues and examples using this model (available in the Models Repository)

To extract point values from 2D SPHysics simulations

Postby vivekfrancis139 on Mon Nov 07, 2016 12:20 am

Dear all,

I'm a PhD Research Scholar working on the 2D version of SPHysics codes and I've been making modifications to it. And these modifications, I can visualize through animations obtained via ParaView software.

The trouble I'm having is, though the animations are appearing perfectly, I'm not able to extract point values of water surface elevations ParaView (for instance from Case 3: Waves generated by a paddle in a beach). I placed wave gauges in desired locations after having loaded the '.vtu' files into ParaView, but when I plot the evolution of values over time, I'm not able to get any data at all. Each point value is always a zero. This could be because of a very basic error and I'm trying to sort it out (a similar approach in ParaView when applied to REEF3D software was giving me results!).

I really look forward to your answers. Any suggestion would be really appreciated.
vivekfrancis139
 
Posts: 3
Joined: Fri Oct 07, 2016 7:50 am

Re: To extract point values from 2D SPHysics simulations

Postby sarfaraz_mohammad on Sun Dec 25, 2016 7:29 am

Hi
You can NOT compute the water elevation directly from the paraview.
Imagine you want to compute water elevation at x=x0.
Just write a simple code of Matlab or fortran, to gather all particle located at x0-a<x0<x0+a. These particle should have density grater that 0.5*water_density.
"a" can be about 2cm, depending on your case. You need to validate it.
Then the particle which has the maximum elevation denotes your water elevation.

Regards!
sarfaraz_mohammad
 
Posts: 3
Joined: Thu Aug 13, 2015 3:12 pm

Re: To extract point values from 2D SPHysics simulations

Postby vivekfrancis139 on Wed Nov 01, 2017 2:58 am

Thank you for your suggestion.I'm very grateful.
I've implemented the method and it is working well.
vivekfrancis139
 
Posts: 3
Joined: Fri Oct 07, 2016 7:50 am


Return to SPHysics User Discussions

Who is online

Users browsing this forum: No registered users and 2 guests

cron