Python package with utility functions for working with MicroHH LES/DNS.
Project description
MicroHHpy
Description
Python package with utility functions for working with MicroHH LES/DNS.
The main purpose of microhhpy is to simplify complex workflows and case setups, such as setting up nested simulations with open boundary conditions. Basic scripts for handling MicroHH input and output are still available in microhh/python/microhh_tools.py and other scripts like cross_to_nc.py.
Most of the functionality of microhhpy is demonstrated in the notebooks located in microhhpy/examples.
[!IMPORTANT]
Likemicrohhitself, this Python package has only been tested in Unix environments.
Usage
The recommended way to install microhhpy is via PyPI:
pip install microhhpy
For development, you can clone the repository and make microhhpy available in one of three ways:
-
Editable install with
pip. Clone the source code from Github, and install it (preferably in a development virtual environment) using:pip install -e /path/to/microhhpy -
Without
pip, you can exposemicrohhpyby adding it to yourPYTHONPATH:export PYTHONPATH="${PYTHONPATH}:/path/to/microhhpy" -
Or append the path directly in your Python script before importing:
import sys sys.path.append('/path/to/microhhpy')
Once set up, you can import microhhpy modules, for example:
from microhhpy.spatial import Domain
from microhhpy.spatial import Projection
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 microhhpy-0.1.8.tar.gz.
File metadata
- Download URL: microhhpy-0.1.8.tar.gz
- Upload date:
- Size: 669.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ba28d6c2c998e995a75fe8bf410495dbe85a1fcb7927083fca150d331317c47
|
|
| MD5 |
a7bd6e3fcbb134c049f36e5c830ea954
|
|
| BLAKE2b-256 |
090b04816d7c82e87e2e5170f8f6f95dccb1f094c05db3379381a69a3cec58d1
|
File details
Details for the file microhhpy-0.1.8-py3-none-any.whl.
File metadata
- Download URL: microhhpy-0.1.8-py3-none-any.whl
- Upload date:
- Size: 680.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0ff0869ffc942a4bc414355d9d7c1f392aef3d47a57d0f6bfa2ad5ad01dba39
|
|
| MD5 |
f0328788b0b21686f369af05a40f2406
|
|
| BLAKE2b-256 |
6d10c5bf47274e261101b0b6dbe669305c4854236c02156c4f41e2bfd78db4c1
|