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. Optionally can simulate the air fraction within the ice or the motion of oil droplets.

Install

Install via pip (v0.13.0 and above): pip install seaice3p

To install a specific version run pip install git+file:///ABSOLUTE/PATH/TO/LOCAL/GIT/REPO@vX.X.X.

Usage

Save configurations for a simulation (either dimensional or non-dimensional but not a mixture) as yaml files. This can be done by editing examples or by using classes within the dimensional_params and params modules. 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. Example script that generates, runs and plots a simulation can be run with python -m seaice3p.example.

Documentation

Files to generate documentation using mkdocs found in the docs/ directory as well as Changelog.md.

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-0.28.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-0.28.0-py3-none-any.whl (950.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seaice3p-0.28.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.3.0

File hashes

Hashes for seaice3p-0.28.0.tar.gz
Algorithm Hash digest
SHA256 0edeaa5182e61618c233670010c5e86f6a06c723a81b21676fb377a4e1f2d12b
MD5 8343b13f4cbf160a0ac739b8ee6c2b95
BLAKE2b-256 ce6c554af2141af9a2ea7ac6fc7a9d251f4b218085b36b72f54c01219eade281

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seaice3p-0.28.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.3.0

File hashes

Hashes for seaice3p-0.28.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2f365e7a5637ca7ab10d2c782c2f2f2a237cbf3617764d4877e6f42759963a7
MD5 8a62213791ec20a98e2f637e7c592cb4
BLAKE2b-256 1ae37f628448a57f41fcd63505a4a9db2ef518a62a74ccb7d8e527d5b5417e50

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