Skip to main content

Simulate gas bubbles and oil droplets in sea ice.

Project description

seaice3p

Code for simulating gas content of sea ice in 1D using enthalpy method.

Install

Install via pip (v0.13.0 and above). To install a specific version run pip install git+file:///ABSOLUTE/PATH/TO/LOCAL/GIT/REPO@vX.X.X. Alternatively use poetry to build a wheel for a specific version and pip install this.

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

found in the docs/ directory

  • Changelog.md
  • manual.pdf is the sphinx generated documentation from docstrings. Generate by running make latexpdf in the docs/ directory and then copying the ouput in the docs/build/ directory to docs/manual.pdf.
  • numerical_method.pdf is a written description of the numerical method used for each solver option.

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.26.0.tar.gz (902.7 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.26.0-py3-none-any.whl (950.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for seaice3p-0.26.0.tar.gz
Algorithm Hash digest
SHA256 e4eba70334d81a77746d75b4995f536ebe61a104c82b39fe72f51b420fbd9447
MD5 8364d26e9dd4f61182d3f2aed2a16bbd
BLAKE2b-256 1ff94bcda5fe88c2238c4acfc54e1b263f61c78b908834faf316b33cd6d2251b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for seaice3p-0.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa1f79fefaac9745b2ed21d2a2f51a861795e37e1617a0a16c60e9e843dc676c
MD5 03a53dabdd9fdc5086b5b950b9a4980a
BLAKE2b-256 78949b76deb5c85236b71cd7276099276abdadb944fb448433b04de60ccbf98f

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