Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Introduction

pysdm logo

PySDM examples are engineered as Jupyter Python notebooks supported by auxiliary Python commons that constitute a separate PySDM-examples Python package which is also available at PyPI. The examples have additional dependencies listed in PySDM-examples package setup.py file. Running the example Jupyter notebooks requires the PySDM-examples package to be pip-installed. For installation instructions see project docs homepage. Note that the Jupyter notebooks themselves are not included in the package wheels, but are included in the source .tar.gz file on PyPI, and are conveninently browsable on GitHub. All notebooks feature header cells with badges enabling single-click execution on Google Colab and on mybinder.org. The examples package is also used in the PySDM test suite.

Example gallery

The examples are named referring to the journal paper they aim to reproduce simulations from (or sometimes just where the inspiration originated from). The list below groups all examples by the dimensionality and type of the employed modelling framework ("environment" in PySDM nomenclature, which can be: box, parcel, single-column, 2D prescribed flow), and by the set of physical processes simulated (condensation, collisional coagulation and breakup, drop freezing, isotopic fractionation, aqueous chemistry, seeding, ...).

2D kinematic environment (prescribed-flow) mimicking Sc deck

The 2D prescribed-flow framework used here can be traced back to the work of Kessler 1969 (section 3C). The setup employed in PySDM-examples, which mimics a stratiform cloud deck and features periodic horizontal boundary condition and vanishing flow at vertical boundaries, was introduced in Morrison and Grabowski (2007) and later adopted for particle-based simulations in Arabas et al. (2015). It uses a non-devergent single-eddy flow field resulting in an updraft-downdraft pair in the domain. The flow field advects two scalar fields in an Eulerian way: water vapour mixing ratio and dry-air potential temperature. In PySDM-examples, the Eulerian advection is handled using the PyMPDATA Numba-based implementation of the MPDATA numerical scheme of Smolarkiewicz (e.g., 2006). An animation depicting PySDM simulation capturing aerosol collisional processing by warm rain is shown below (see the Paraview hello-world HOWTO Jupyter notbook for code generating the simulation and visualisation):

Example notebooks:

  • Arabas_et_al_2015
    • in-notebook GUI for setting up, running and interactively visualising the 2D kinematic simulations (with an option to export raw data to VTK and netCDF files, as well as to save plots to SVG or PDF):
    • "hello world" notebook depicting how to automate using Python the process of loading data and creating animations in Paraview
  • Arabas_et_al_2025: adaptation of the 2D kinematic setup for studying glaciation of the cloud deck by immersion freezing

1D kinematic environment (prescribed-flow, single-column)

The single-column PySDM environment is a reimplementation of the Met Office KiD framework introduced in Shipway & Hill 2012. The framework features a single Eulerian-transported field of water vapour mixing ratio (vertical profile of potential temperature is fixed). As in the 2D kinematic framework above, the Eulerian advection is handled by PyMPDATA.

Example notebooks:

OD/1D iterative parcel/column environment mimicking removal of precipitation

This framework uses a parcel model with removal of precipitation for analysis, iterative equilibration, the isotopic composition of the water vapour and rain water in a column of air (no Eulerian transport, only iterative passage of a parcel through the column).

Rozanski_and_Sonntag_1982: bulk microphysics example (i.e. single super droplet) with deuterium and heavy-oxygen water isotopologues featured.

0D parcel environment

The parcel framework implemented in PySDM uses a hydrostatic profile and adiabatic mass and energy conservation to drive evolution of thermodynamic state and microphysical properties of particles.

Example notebooks include:

The parcel environment is also featured in the PySDM tutorials.

0D box environment

The box environment is void of any spatial or thermodynamic context, it constitutes the most basic framework.

Example notebooks include:

  • coalescence only:
    • Shima_et_al_2009: using Golovin additive kernel for comparison against analytic solution, featuring interactive in-notebook interface for selecting simulation parameters
    • Berry_1967: examples using geometric, hydrodynamic and electric-field collision kernels
  • coalescence and breakup:
  • immersion freezing only:
    • Alpert_and_Knopf_2016: stochastic immersion freezing with monodisperse vs. lognormal immersed surface areas
    • Arabas_et_al_2025: comparison of time-dependent and singular immersion freezing schemes

The box environment is also featured in the PySDM tutorials.

examples depicting extraterrestrial clouds (formulae-only, no simulations yet)

Metadata

Release files for pysdm-examples 3.0.0rc43

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

Source distribution (sdist)

Source distribution for pysdm-examples 3.0.0rc43
File Size Uploaded
pysdm_examples-3.0.0rc43.tar.gz 142.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysdm-examples 3.0.0rc43
File Interpreter ABI Platform
pysdm_examples-3.0.0rc43-py3-none-any.whl Python 3 none any Details

Total release size: 335.1 kB

Release files / pysdm_examples-3.0.0rc43.tar.gz

Download URL pysdm_examples-3.0.0rc43.tar.gz
Size 142.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1c49f010df18b65b65bf8d7776dbcd9e01768eaf2458bf368d65cb3a83cedcf9
BLAKE2b-256 checksum
How to use checksums
3b646d19c94c311e5fb9ca52182b405b7f9116d4f074a66bde8d83d43507f703
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pysdm_examples-3.0.0rc43-py3-none-any.whl

Download URL pysdm_examples-3.0.0rc43-py3-none-any.whl
Size 192.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e946355f8ef70e499b3d3643d716c8015fbaf6a20b26756a5d29b123d795ffc9
BLAKE2b-256 checksum
How to use checksums
6b664ac7f5fd92a65d5471c4aa366c0c40bb86f5f233a9e44b28195038abbcc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

3.0.0

2 release files

This release

3.0.0rc43 This release

2 release files

2.131

2 release files

2.130

2 release files

2.129

2 release files

2.128

2 release files

2.127

2 release files

2.126

2 release files

2.125

2 release files

2.124

2 release files

2.123

2 release files

2.122

2 release files

2.121

2 release files

2.120

2 release files

2.119

2 release files

2.118

2 release files

2.117

2 release files

2.116

2 release files

2.115

2 release files

2.114

2 release files

2.113

2 release files

2.112

2 release files

2.111

2 release files

2.110

2 release files

2.109

2 release files

2.108

2 release files

2.107

2 release files

2.106

2 release files

2.105

2 release files

2.104

2 release files

2.103

2 release files

2.102

2 release files

2.101

2 release files

2.100

2 release files

2.99

2 release files

2.98

2 release files

2.97

2 release files

2.96

2 release files

2.95

2 release files

2.94

2 release files

2.93

2 release files

2.92

2 release files

2.91

2 release files

2.90

2 release files

2.89

2 release files

2.88

2 release files

2.87

2 release files

2.86

2 release files

2.85

2 release files

2.84

2 release files

2.83

2 release files

2.82

2 release files

2.81

2 release files

2.80

2 release files

2.79

2 release files

2.78

2 release files

2.77

2 release files

2.76

2 release files

2.74

2 release files

2.73

2 release files

2.72

2 release files

2.71

2 release files

2.70

2 release files

2.69

2 release files

2.68

2 release files

2.67

2 release files

2.66

2 release files

2.65

2 release files

2.64

2 release files

2.63

2 release files

2.62

2 release files

2.61

2 release files

2.60

2 release files

2.59

2 release files

2.58

2 release files

2.54

2 release files

2.53

2 release files

2.52

2 release files

2.50

2 release files

2.49

2 release files

2.48

2 release files

2.47

2 release files

2.46

2 release files

2.45

2 release files

2.44

2 release files

2.43

2 release files

2.42

2 release files

2.41

2 release files

2.40

2 release files

2.39

2 release files

2.35

2 release files

2.34

2 release files

2.33

2 release files

2.32

2 release files

2.31

2 release files

2.30

2 release files

2.29

2 release files

2.28

2 release files

2.27

2 release files

2.26

2 release files

2.25

2 release files

2.24

2 release files

2.23

2 release files

2.22

2 release files

2.21

2 release files

2.20

2 release files

2.19

2 release files

2.18

2 release files

2.17

2 release files

2.16

2 release files

2.14

2 release files

2.13

2 release files

2.12

2 release files

2.11

2 release files

2.10

2 release files

2.9

2 release files

2.8

2 release files

2.7

2 release files

2.6

2 release files

2.5

2 release files

2.4

2 release files

2.3

2 release files

2.2

2 release files

2.1

2 release files

2.0

2 release files

1.27

2 release files

1.26

2 release files

1.25

2 release files

1.24

2 release files

1.23

2 release files

1.22

2 release files

1.21

2 release files

1.20

2 release files

1.19

2 release files

1.17

2 release files

1.16

2 release files

1.15

2 release files

1.14

2 release files

1.13

2 release files

1.12

2 release files

1.11

2 release files

1.10

2 release files

1.9

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.5

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