Skip to main content

Simulate gas bubbles and oil droplets in sea ice.

Project description

seaice3p

Code for simulating the seasonal evolution of a 1D layer of sea ice using an enthalpy method. Inlcudes three-phase mushy-layer physics which can be used to simulate air bubbles or oil droplets in the ice. See Joseph Fishlock's DPhil thesis for further details.

Install

Seaice3p is available on PyPI and can be installed with pip via

pip install seaice3p

Usage

Configurations to run simulations can be created via a Python script using the DimensionalParams object and are saved as yaml files. Once you have a directory of configuration files the simulation for each can be run using python -m seaice3p path_to_configuration_directory path_to_output_directory. The --dimensional flag should be added to this command if running dimensional parameter configurations. The simulation will be run for each configuration and the data saved as a numpy archive with the same name as the simulation in the specified output directory.

Documentation

Some incomplete API reference documentation built using mkdocs gh-deploy is available at documentation.

Tests

Run pytest to run all tests. Note this may take some time so you can also run pytest -m "not slow". To speed this up run in parallel using pytest-xdist with the extra options pytest -n auto --dist worksteal.

Release checklist

  • run tests.
  • bump version number in seaice3p/init.py and pyproject.toml
  • run mkdocs build to generate documentation and deploy from main with mkdocs gh-deploy.
  • update Changelog.md
  • tag commit with version number

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

seaice3p-1.0.0.tar.gz (902.2 kB view details)

Uploaded Source

Built Distribution

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

seaice3p-1.0.0-py3-none-any.whl (950.2 kB view details)

Uploaded Python 3

File details

Details for the file seaice3p-1.0.0.tar.gz.

File metadata

  • Download URL: seaice3p-1.0.0.tar.gz
  • Upload date:
  • Size: 902.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.13 Darwin/24.5.0

File hashes

Hashes for seaice3p-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fb6224c511ec4df4a10bba468abcf48a4d68b9af29d873c956d02d76c64f80be
MD5 5a8e98c3b0b4ba9369c1dceb5cb19446
BLAKE2b-256 1d98ae028e8ccd02fbd9d9d71eb45f4137fa9b7f11f132ced88a809260ee5e0d

See more details on using hashes here.

File details

Details for the file seaice3p-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: seaice3p-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 950.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.13 Darwin/24.5.0

File hashes

Hashes for seaice3p-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d9258c6d2c40f3ee6bdea67b7c894df130687f8e64b06a8a0ea9ef0df6096e1
MD5 59ff85bec3a01ee05fb2a762d839f513
BLAKE2b-256 1a3472213280ca29cd68625ea382a4c8625fb6d88ff948f2ba4fd6ff76c88413

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