Skip to content

Python package that turns SPH hydrocode output into neat visualizations.

License

Notifications You must be signed in to change notification settings

tyler-a-cox/givis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giant Impact Visualization

Giant Impact Visualization is a Python package built on top of the Blender API used for visualizing the output of Smoothed Particle Hydrodynamics simulations of giant planetary impacts (although this code is probably generalizable to other SPH simulations). Specifically, this package allows the user to quickly produce a visualization of their data, customize the color map, plot by variable type (temperature, pressure, etc.), and apply cuts to the data.

Assets

Here are a few examples of the different customizations you can apply to your data. The simulation below is a full run (~500,000 particles) of two planetary bodies colliding with the color map denoting log pressure. In addition to a full run, the user can also render their animation in 3D and slice along specified axes to see a cross-section of the data.

Full Simulation

animated

3D Option

animated

Slice Along Axis

animated

Setup

This package requires Blender to be installed before installing. Blender handles the majority of the raytracing while this packages handles camera movement, particle position, data manipulation, and normalization. After installing Blender, run the following commands to install the package

git clone https://github.com/tyler-a-cox/givis
cd givis
python setup.py install

Run

To run the code, simply use the command line argument givis. For a full description of the customizable features run the command below

givis --help

Releases

No releases published

Packages

No packages published

Languages