| 1 |
|
| 2 |
Introduction |
| 3 |
============ |
| 4 |
|
| 5 |
While many wonderful commercial software packages exist for visualising |
| 6 |
scientific data (such as the widely used Interactive Data Language), I |
| 7 |
found they were cumbersome for particle-based data. Much of what I |
| 8 |
wanted to do was specific to SPH, like interpolating to an array of |
| 9 |
pixels using the kernel. While generic routines exist for such tasks, I |
| 10 |
could not explain how they worked, and they were slow. Also, while |
| 11 |
interactive gizmos are handy, it was more difficult to perform the same |
| 12 |
tasks non-interactively, as required for the production of animations. |
| 13 |
The major work in the visualisation of SPH data is not the image |
| 14 |
production itself but the manipulation of data prior to plotting. Much |
| 15 |
of this manipulation makes sense within an SPH framework. |
| 16 |
|
| 17 |
splash is designed for this specific task - to use SPH tools to analyse |
| 18 |
SPH data. Publishable images and animations can be obtained efficiently |
| 19 |
from the raw data with a minimum amount of user effort. The development |
| 20 |
of powerful visualisation tools has enabled me to pick up on effects |
| 21 |
present in my simulation results that I would not otherwise have noticed |
| 22 |
— the difference between a raw particle plot and a rendered image can be |
| 23 |
substantial. A key goal of splash is to eliminate the use of |
| 24 |
crap-looking particle plots as a means of representing SPH data. |
| 25 |
|
| 26 |
|
| 27 |
What it does |
| 28 |
------------ |
| 29 |
|
| 30 |
splash is a utility for visualisation of output from (astrophysical) |
| 31 |
simulations using the Smoothed Particle Hydrodynamics (SPH) method in |
| 32 |
one, two and three dimensions. It is written in modern Fortran and |
| 33 |
utilises `giza <https://github.com/danieljprice/giza>`_, a custom-build backend |
| 34 |
graphics library to do the actual plotting. The following features are included: |
| 35 |
|
| 36 |
- :ref:`sec:renderplot` of particle data to an array of pixels using the SPH kernel |
| 37 |
|
| 38 |
- :ref:`sec:xsec` slices through 2D and 3D data (as both particle plots and |
| 39 |
rendered images). |
| 40 |
|
| 41 |
- Fast projections through 3D data (i.e., column density plots, or |
| 42 |
integration of other quantities along the line of sight) |
| 43 |
|
| 44 |
- :ref:`Surface renderings <sec:surface>` of 3D data. |
| 45 |
|
| 46 |
- :ref:`sec:vectorplots` of the velocity (and other vector quantities), including |
| 47 |
vector plots in a :ref:`sec:xsec` slice in 3D. |
| 48 |
|
| 49 |
- Rotation and :ref:`animation sequence <sec:animseq>` generation for 3D data. |
| 50 |
|
| 51 |
- :ref:`Automatic stepping through timesteps <sec:movies>`, making |
| 52 |
:ref:`animations <sec:animations>` simple to produce. |
| 53 |
|
| 54 |
- :ref:`sec:interactive` for detailed examination of timestep data (e.g. |
| 55 |
zooming, rotating, stepping forwards/backwards, log axes, adapting |
| 56 |
limits). |
| 57 |
|
| 58 |
- :ref:`sec:remote` via simple X-Windows forwarding |
| 59 |
|
| 60 |
- :ref:`Multiple plots on page <sec:multiplotsetup>`, including option to automatically tile plots |
| 61 |
if :math:`y-` and :math:`x-` limits are the same. |
| 62 |
|
| 63 |
- Plot limits can be fixed, adaptive or :ref:`particle tracking <sec:track>`. |
| 64 |
|
| 65 |
- :ref:`sec:exact` for common SPH test problems (e.g. shock tubes, sedov |
| 66 |
blast wave). |
| 67 |
|
| 68 |
- :ref:`Calculation of quantities not dumped <sec:calc>` (e.g. pressure, entropy) |
| 69 |
|
| 70 |
- :ref:`sec:convert` |
| 71 |
|
| 72 |
- :ref:`sec:converttogrid` |
| 73 |
|
| 74 |
- :ref:`sec:geom`, for both coordinates and vector components |
| 75 |
|
| 76 |
- :ref:`Rescaling of data into physical units <sec:physicalunits>`. |
| 77 |
|
| 78 |
- Straightforward production of both :ref:`bitmap <sec:movies>` (png) and :ref:`vector <sec:postscript>` (eps, pdf) |
| 79 |
images which can then be :ref:`converted into animations <sec:animations>` |
| 80 |
or :ref:`inserted into LaTeX documents <sec:postscript>`. |
| 81 |
|
| 82 |
Examples of plots produced with splash can be found in the `gallery <http://users.monash.edu.au/~dprice/splash/gallery/>`_ or by looking at `papers with figures produced using splash <http://adsabs.harvard.edu/cgi-bin/nph-ref_query?bibcode=2007PASA...24..159P&refs=CITATIONS&db_key=AST">`_. |
| 83 |
|
| 84 |
What it doesn’t do |
| 85 |
------------------ |
| 86 |
|
| 87 |
splash is geared towards gas dynamics simulations with SPH and has |
| 88 |
basically grown out of my visualisation needs. Thus it is not |
| 89 |
particularly useful for things like water and solids in SPH. An SPH |
| 90 |
visualisation tool geared towards the non-gaseous side of things you may |
| 91 |
want to have a look at is `pv-meshless <https://twiki.cscs.ch/twiki/bin/view/ParaViewMeshless>`_, by John Biddiscombe. |
| 92 |
|
| 93 |
splash also doesn’t make coffee. |
| 94 |
|
| 95 |
splash, the paper |
| 96 |
------------------ |
| 97 |
|
| 98 |
The algorithms implemented in splash are not described here, but instead |
| 99 |
described in a paper [Price07]_, available from: |
| 100 |
|
| 101 |
http://www.publish.csiro.au/?paper=AS07022 |
| 102 |
|
| 103 |
This paper should be cited if you use splash for scientific purposes, |
| 104 |
and please do so as it is my only form of thanks. |
| 105 |
|
| 106 |
Version History |
| 107 |
--------------- |
| 108 |
|
| 109 |
.. include:: version_history.rst |
| 110 |
|
| 111 |
License |
| 112 |
------- |
| 113 |
|
| 114 |
splash - a visualisation tool for SPH data ©2004-2023 Daniel Price and contributors. |
| 115 |
This program is free software; you can redistribute it and/or modify it under |
| 116 |
the terms of the GNU General Public License as published by the Free |
| 117 |
Software Foundation; either version 2 of the License, or (at your |
| 118 |
option) any later version. This program is distributed in the hope that |
| 119 |
it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
| 120 |
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 121 |
GNU General Public License for more details. You should have received a |
| 122 |
copy of the GNU General Public License along with this program; if not, |
| 123 |
write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
| 124 |
Boston, MA 02111-1307 USA. |