There is a newer version of the record available.

Published August 17, 2020 | Version v0.7.0
Software Open

dmentipl/plonk: v0.7.0

  • 1. Monash University
  • 2. University of Illinois

Description

Added
  • Added plonk.image to make image plots (with interpolation and then matplotlib imshow).
  • Added plonk.vector to make vector plots (with interpolation and then matplotlib quiver).
  • Added plot_smoothing_length function to plot the smoothing length on particles, or accretion radius on sink particles.
  • Added pretty_array_name function to prettify array names.
  • Added visualize_sim as a method on Simulation objects.
  • Allow getting subsets of Sinks.
  • Added ax_kwargs to plotting functions for passing to ax.set.
  • Added xlim, ylim on visualize.plot.
  • Added units_dict function to return a units dictionary for passing to plotting functions.
  • Added bulk load and unload functions on Snap for loading/unloading multiple arrays into/out-of memory.
  • Add context manager for caching arrays on Snap.
  • Added public methods on Snap: family for accessing particle families, and array for accessing particle arrays. These are already accessible via getitem but this makes the underlying methods available.
  • Add function to add missing units to array on Snap.
Changed
  • Removed plonk.particle_plot in favour of plonk.plot.
  • Changed plonk.plot to produce particle plots
  • Renamed MultiVisualization and plot_snaps to VisualizeSimulation and visualize_sim.
  • Changed units system from cgs to SI.
  • Simplified animation functions by only allowing one axes per animation.
  • Changed default units to more conventional SI units, e.g. Pascal for pressure and Joule for energy.
  • Simplified tree and neighbours functions on Snap. Now there is only one tree for a Snap. If you want a tree for just, say, dust particles, then first create a SubSnap and get the tree on that.
  • Changed _Sinks into Sinks, i.e. a public class.
  • All plotting functions/methods use the same argument for setting units.
  • Renamed Snap.available_arrays argument "all" to "verbose".
  • Changed Snap.units to Snap.code_units.
  • Use pretty_array_name for plots labels.
  • Rename Snap.unset to Snap.reset and allow for unloading cached arrays.
  • When setting Snap.cache_arrays to False, no longer unload currently cached arrays.
Fixed
  • Fixed writing Snap.to_dataframe units.

Files

dmentipl/plonk-v0.7.0.zip

Files (11.5 MB)

Name Size Download all
md5:5adfda130325f8a1d10e5cf640f25a66
11.5 MB Preview Download

Additional details

Related works