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.7.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.mdmanual.pdfis the sphinx generated documentation from docstrings. Generate by runningmake latexpdfin thedocs/directory and then copying the ouput in thedocs/build/directory todocs/manual.pdf.numerical_method.pdfis 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 seaice3pto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seaice3p-0.23.0.tar.gz.
File metadata
- Download URL: seaice3p-0.23.0.tar.gz
- Upload date:
- Size: 902.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.13 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8563e5fde3818b5fa33667ffa7cd987538343006ebb6a8d3ed642315af028722
|
|
| MD5 |
05cfd1048dcdcb253b503a35981661fd
|
|
| BLAKE2b-256 |
c181c456ba69613a8dd848293305ca682d2ff637218463c748e62477b16998ed
|
File details
Details for the file seaice3p-0.23.0-py3-none-any.whl.
File metadata
- Download URL: seaice3p-0.23.0-py3-none-any.whl
- Upload date:
- Size: 950.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a72ee8103d53201be18bbab4830127fb9cec1b7b41dad3f7fc53edbc5c5aa7a
|
|
| MD5 |
5582445ccc092ad1e8af220aa6aaf45a
|
|
| BLAKE2b-256 |
cd9bc6a408ba2755cfee7a4ddf402f820d7ab9be0d7a5f5c0c5feaab47351770
|