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. Note depends on oilrad (v0.5.0).

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
  • bump version number in sphinx documentation in docs/source/conf.py
  • bump version number in pyproject.toml
  • run sphinx-apidoc -o docs/source seaice3p to generate source files for documentation.
  • create docs by running make latexpdf in docs/ directory and put pdf from build directory into docs/
  • 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.17.0.tar.gz (893.4 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.17.0-py3-none-any.whl (938.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seaice3p-0.17.0.tar.gz
  • Upload date:
  • Size: 893.4 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.17.0.tar.gz
Algorithm Hash digest
SHA256 630c3f57a95f66daf5c8937c4ca6c8e2248e8f3c144e64b599a5db0fbcad8027
MD5 c97fb564fd4d15d397d034e59759bfe7
BLAKE2b-256 5e4c1500e84bcf0791c54c0da041fd88d73a6e4ff8f9fb95105c37818acab4a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seaice3p-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 938.9 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.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1fabf183da6fba29c4c05fe0165282c169096b94cb4ac749c84a3f4bdd69504
MD5 d32ae862fe89df315f98c6f5337ad7cd
BLAKE2b-256 e90f47be6702e9be882fe28dd4a82a5b8bac04cc407ef950beae3efdba00710c

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