Skip to main content

PLOtting tool for Nice Simulations

Project description

Build status Build status Build status Build status

This is the README for the PLONS PLOtting tool for Nice Simulations. PLONS can be used to read in and analyse data of hydrodynamical simulations with the SPH code PHANTOM (Price et al. 2018). This python package is currently tailored to single, binary and triple AGB wind models. For a more detailed explanation of how to use PLONS, see (readthedocs).

This tool is complementary to the SPH visualisation tool SPLASH (Price 2007), but can be analysed more toroughly with PLONS.

PLONS pipeline

PLONS contains a pipeline that produces useful output files with information about your simulation, and currently contains the following functionalities:

  1. 2D slice plots showing the density, temperature and velocity distribution of the last full dump of the model.​

  2. 1D line plots (radial structure) of the global structure of the last dump of the model along the x-, y- and z-axes.​

  3. Information and plots of the orbital evolution​

  4. 1D spherical profiles, which are useful for single star models

To run this pipeline, use the script 'main.py' in plons/scripts/ . To select a certain model and option, you can execute this script as python main.py -m ... -o ... (and filling in the model and option number instead of the ...).

Source file functions and example notebooks

Next to the functionalities included in the pipeline, you can use Plons for more detailed analysises using the functions defined in the source files (in plons/src/plons/). Examples of how to use these functions can be found in some example notebooks (in docs/src/1_examples/), describing a more thorough analysis that makes use of line slices and sliceplots (/0_creating_figures_package), and an analysis of accretion disks around the companion (/2_accretion_disk).

Reading in PHANTOM data

PHANTOM returns different types of useful data files. Every certain timestep during the evolution of the model, dump files are output, typically named e.g. as 'wind_xxxxx'. These files contain relevant data (such as position, velocity, mass, density, energy, temperature) of the SPH particles in the model at a certain timestep. The last 'x' rows in these datafiles correspond to the 'x' sink particles in the model. Further, for every run, evolutionary '*.ev' are produced that contain information about the time evolution of usefull quantities such as the mass of a sink particle for example.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plons-0.0.28.tar.gz (113.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plons-0.0.28-py3-none-any.whl (106.7 kB view details)

Uploaded Python 3

File details

Details for the file plons-0.0.28.tar.gz.

File metadata

  • Download URL: plons-0.0.28.tar.gz
  • Upload date:
  • Size: 113.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for plons-0.0.28.tar.gz
Algorithm Hash digest
SHA256 a4361a6e35ad908ac4579bec20ca852077d7ce248e664e897edf0571cfe2b926
MD5 ff2c0201e3a049e02297a3eac6f5e702
BLAKE2b-256 02c01a58f34c50860eb004d1aa923dfc037b36fc22c7c7883aaf8e4ae8c49eb4

See more details on using hashes here.

File details

Details for the file plons-0.0.28-py3-none-any.whl.

File metadata

  • Download URL: plons-0.0.28-py3-none-any.whl
  • Upload date:
  • Size: 106.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for plons-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 8fad37d0ad167e0b3161b017cc5bfae995c6f944768d2d8a58887b60db929a73
MD5 a0e47ae1fe812e3c4e5720a279fd2e37
BLAKE2b-256 cdb87c72948efdaebf46018c7c76564503b739ceafcab6fc31fb2650c34ef45e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page