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 buildto generate documentation and deploy from main withmkdocs gh-deploy. - 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-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb6224c511ec4df4a10bba468abcf48a4d68b9af29d873c956d02d76c64f80be
|
|
| MD5 |
5a8e98c3b0b4ba9369c1dceb5cb19446
|
|
| BLAKE2b-256 |
1d98ae028e8ccd02fbd9d9d71eb45f4137fa9b7f11f132ced88a809260ee5e0d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d9258c6d2c40f3ee6bdea67b7c894df130687f8e64b06a8a0ea9ef0df6096e1
|
|
| MD5 |
59ff85bec3a01ee05fb2a762d839f513
|
|
| BLAKE2b-256 |
1a3472213280ca29cd68625ea382a4c8625fb6d88ff948f2ba4fd6ff76c88413
|