Skip to main content

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.

Metadata

Release files for plons 0.0.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plons 0.0.28
File Size Uploaded
plons-0.0.28.tar.gz 113.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plons 0.0.28
File Interpreter ABI Platform
plons-0.0.28-py3-none-any.whl Python 3 none any Details

Total release size: 219.7 kB

Release files / plons-0.0.28.tar.gz

Download URL plons-0.0.28.tar.gz
Size 113.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a4361a6e35ad908ac4579bec20ca852077d7ce248e664e897edf0571cfe2b926
BLAKE2b-256 checksum
How to use checksums
02c01a58f34c50860eb004d1aa923dfc037b36fc22c7c7883aaf8e4ae8c49eb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / plons-0.0.28-py3-none-any.whl

Download URL plons-0.0.28-py3-none-any.whl
Size 106.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fad37d0ad167e0b3161b017cc5bfae995c6f944768d2d8a58887b60db929a73
BLAKE2b-256 checksum
How to use checksums
cdb87c72948efdaebf46018c7c76564503b739ceafcab6fc31fb2650c34ef45e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.0.28 This release

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.23

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.7

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page