Image

SPLASH

Data Analysis And Visualization of Data
User avatar
Shahram
Posts: 293
Joined: Sun Feb 05, 2017 8:31 am

SPLASH

Postby Shahram » Thu May 04, 2017 4:45 pm

SPLASH is a free and open source visualisation tool for Smoothed Particle Hydrodynamics (SPH) simulations in one, two and three dimensions, developed mainly for astrophysics. It uses a command-line menu but data can be manipulated interactively in the plotting window.

Data is read *directly* from the code dump format giving rapid access to results and the visualisation is advanced forwards and backwards through timesteps by single keystrokes.

SPLASH uses the SPH kernel to render plots of density and other physical quantities, giving a smooth representation of the data. The goal is to eliminate the publication of crap-looking particle plots from SPH codes!



http://users.monash.edu.au/~dprice/splash/
Image



User avatar
Shahram
Posts: 293
Joined: Sun Feb 05, 2017 8:31 am

Re: SPLASH

Postby Shahram » Sat May 06, 2017 7:39 pm




User avatar
Shahram
Posts: 293
Joined: Sun Feb 05, 2017 8:31 am

Re: SPLASH

Postby Shahram » Fri Jun 30, 2017 1:25 pm

Quick tip : How to change graph markers ( . , *, +,...)

o(pts) -> 2) Change the graph markers

Predefined numbers are included.

Don't forget to save before Exit.



User avatar
Shahram
Posts: 293
Joined: Sun Feb 05, 2017 8:31 am

Re: SPLASH

Postby Shahram » Fri Jun 30, 2017 1:30 pm

Quick tip: Invert colors:

p(gae) -> 9) Set foreground / background colors

set no for next step.

Don't forget to save before Exit.



User avatar
Shahram
Posts: 293
Joined: Sun Feb 05, 2017 8:31 am

Re: SPLASH

Postby Shahram » Fri Jun 30, 2017 1:35 pm

Splash Interactive mode keyboard commands:
Attachments
Splash-interactive-page.png
(352.1 KiB) Downloaded 236 times



User avatar
Shahram
Posts: 293
Joined: Sun Feb 05, 2017 8:31 am

Re: SPLASH

Postby Shahram » Tue Feb 20, 2018 9:35 pm

How to make movies ?
First we should create images:

Code: Select all

gsplash snapshot*


Everything is the same, except for graphics device:

Code: Select all

 Graphics device/type (? to see list, default /xw): /png


now we can convert these images to movie.

http://users.monash.edu.au/~dprice/splash/userguide/basics.html#sec%3Amovies

Now you have all png files. Create a new script file (movie.sh) and put these lines inside it (you need to install ffmpeg)

Code: Select all

#!/bin/bash
#
# script to make an mpeg4 movie from splash_*.png files
# requires ffmpeg utility
#
# DJP, Feb 2014
#
opts='-r 10 -vb 50M -bt 100M -vcodec mpeg4 -vf setpts=4.*PTS'
ffmpeg -i splash_%04d.png $opts movie.mp4


give permission to this file:

Code: Select all

chmod +x movie.sh


Run it:

Code: Select all

./movie.sh


http://users.monash.edu.au/~dprice/splash/faq.html



User avatar
Avery
Posts: 1
Joined: Sat Feb 17, 2018 3:18 pm

Re: SPLASH

Postby Avery » Tue Feb 20, 2018 10:11 pm

Shahram wrote:How to make movies ?
First we should create images:

Code: Select all

gsplash snapshot*


Everything is the same, except for graphics device:

Code: Select all

 Graphics device/type (? to see list, default /xw): /png


now we can convert these images to movie.

http://users.monash.edu.au/~dprice/splash/userguide/basics.html#sec%3Amovies

Now you have all png files. Create a new script file (movie.sh) and put these lines inside it (you need to install ffmpeg)

Code: Select all

#!/bin/bash
#
# script to make an mpeg4 movie from splash_*.png files
# requires ffmpeg utility
#
# DJP, Feb 2014
#
opts='-r 10 -vb 50M -bt 100M -vcodec mpeg4 -vf setpts=4.*PTS'
ffmpeg -i splash_%04d.png $opts movie.mp4


give permission to this file:

Code: Select all

chmod +x movie.sh


Run it:

Code: Select all

./movie.sh


http://users.monash.edu.au/~dprice/splash/faq.html


Thank you this is great. Does it work in Ubuntu ? :?:
Last edited by Avery on Tue Feb 20, 2018 10:13 pm, edited 1 time in total.



User avatar
Shahram
Posts: 293
Joined: Sun Feb 05, 2017 8:31 am

Re: SPLASH

Postby Shahram » Tue Feb 20, 2018 10:15 pm

Avery wrote:Thank you this is great. Does it work in Ubuntu ? :?:


I have checked it in Debian. I am not sure about Ubuntu but I think it should work. ;)




Return to “Data Analysis And Visualization”

Who is online

Users browsing this forum: No registered users and 1 guest