Skip to main content

A Python package describing Stochastic Nucleation of Water in vials.

Project description

tag pypi build Coverage Status

SNOW (Stochastic Nucleation Of Water) is an open source modeling framework to simulate the freezing process in a large number of vials, tailored towards pharmaceutical freeze-drying processes. SNOW was developed as part of a research collaboration between ETH Zurich's Separation Processes Laboratory and Janssen (pharmaceutical companies of J&J). It is brought to you by Leif-Thore Deck, Andraž Košir and Dr. David Ochsenbein.

Description

SNOW is a model capable of simulating the entire freezing process for a batch of vials, from the liquid state to the completely frozen state. It combines balance equations, thermodynamics and a stochastic approach to ice nucleation to provide a comprehensive view of freezing and is entirely derived from first principles.

In addition to the simulation of the thermal evolution of vials during freezing, SNOW tracks a number of characteristic quantities of the freezing process for each vial. These quantities are the nucleation time, the nucleation temperature and the solidification time. Both nucleation and solidification are correlated with attributes of the frozen product such as the mean crystal size and the product activity of an API. Variability in these quantities among vials may thus be used as surrogate for batch heterogeneity. SNOW consequently may be used in process design and optimization to identify suitable cooling protocols with sufficiently small batch heterogeneity.

A more detailed description of the modeling framework is presented in a recent publication, which is publicly accessible under https://doi.org/10.1016/j.ijpharm.2021.121276 While version 1.0 is tailored towards simulations of the freezing stage in freeze-drying, version 1.1. was developed for pallet freezing; pallet freezing is for example used in the manufacturing of the Janssen COVID-19 vaccine, which served as case study for the model. Version 1.1 and the case study on the COVID-vaccine are discussed in detail in a recent scientific publication: https://doi.org/10.1016/j.ijpharm.2022.122051

An extension of the modeling framework for the simulation of the freezing process with spatial resolution within individual containers has been implemented in version 2.0 and is discussed in detail within the scope of a recent scientific publication: https://doi.org/10.1016/j.cej.2024.148660.

Additional features supported by version 2.0

  • Spatial simulation of freezing within individual containers with different dimensionalities (0D, 1D, 2D)
  • Simulation of three process configurations (shelf-ramped freezing, vacuum-induced surface freezing, jacket-ramped freezing)

Additional features supported by version 1.1

  • Simulation of systems comprising vials arranged in three spatial dimensions
  • Arbitrary initial temperature of the vials
  • Improvements in the numerical implementation (Second method to compare the initial amount of ice formed, faster data saving)

Features supported as of version 1.0

  • Simulation of the thermal evolution and ice formation for a batch with arbitrary number of vials
  • Arbitrary cooling protocols (i.e., user may choose cooling rate, integrate holding steps and controlled nucleation)
  • Tracking of nucleation times, temperatures and solidification times for all vials
  • Stochastic nucleation in the form of a Monte Carlo approach as well as controlled nucleation in the form of forced initiation of nucleation at a certain point in time
  • Cubic geometry of vial and rectangular arrangement on the shelf

Features in preparation

  • Hexagonal arrangement of vials on the shelf for freeze-drying
  • Additional modes of heat transfer (e.g. thermal radiation)
  • Alternative vial / vessel geometries

Bug reports

Please report bugs as Github issues or via Email, preferably including a screenshot that illustrates the problem.

Copyright (c) 2021-2024 Leif-Thore Deck, Andraž Košir, David Ochsenbein

The snow package logo has been designed using resources from Flaticon.com.

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

ethz_snow-2.0.4.tar.gz (17.4 MB view details)

Uploaded Source

Built Distribution

ethz_snow-2.0.4-py2.py3-none-any.whl (45.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ethz_snow-2.0.4.tar.gz.

File metadata

  • Download URL: ethz_snow-2.0.4.tar.gz
  • Upload date:
  • Size: 17.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for ethz_snow-2.0.4.tar.gz
Algorithm Hash digest
SHA256 12a8399dfe38d9bf7fa1a72b0cbccf45c6e1f3b8a9f2f1703f2ae3935e53ad49
MD5 6490bbdad45a4b27731f1c9e1240aa57
BLAKE2b-256 3a8c990e9a082a0545502d50a57b58ed1d3c559acd7a263b0003c8e1520ea953

See more details on using hashes here.

File details

Details for the file ethz_snow-2.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: ethz_snow-2.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for ethz_snow-2.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9c6b7fd5b5207f10b603be09f747cab1dc82cb67ce5ce3e200885e0db49e5727
MD5 2ca5768ef7261f2b286df7f107712f89
BLAKE2b-256 66027536eb9ff97b74f5e774082b3e31096cb0214bffa254d1fd55acf98d0d01

See more details on using hashes here.

Supported by

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