AITW - AiiDA workchain for wood permeability
AiiDA workflow for automated calculation of the wood permeability using the lattice Boltzmann method (LBM) implemented in OpenLB.
Features
- Generate the wood structure using the AITW microstructure generator
- Apply the porosity filter to prepared the structure for the permeability calculation (included in the generator and ported from https://github.com/AI-TranspWood/aitw_filter_structure)
- Run the OpenLB permeability calculation using the code from https://github.com/AI-TranspWood/olb_permeability
Installation
cd <PATH to folder with pyproject.toml>
pip install .[tui]
The extra dependencies are optional and used for:
tui: for adding anaitw-permeability tuisubcommand launching a text user interface (TUI) to help setting up the workchain inputs.
Usage
The package provides the following AiiDA entry point that can be used to load the workchains
Main workchain
Workchains performing the full calculations advertised by the package.
aitw.wood_permeability.wood_permeability: Perform a full calculation from the microstructure generation to computing its permeability
Sub-workchains
Workchains performing smaller parts of the full calculation that can also be used independently.
aitw.wood_permeability.wood_structure_generatorRun the microstructure generator to create a wood structure with the desired properties.aitw.wood_permeability.structure_filterApply the porosity filter to the generated structure to prepare it for the permeability calculation.aitw.wood_permeability.olb_permeabilityRun the OpenLB permeability calculation on the filtered structure to compute its permeability. Submits 3 OpenLB calculations for the 3 principal directions of the structure.
CLI
The tool makes available 2 main cli commands grouped following the normal aiida CLI style.
aitw-permeability workflow launch generate_permeability: Launch the viscosity workchain from the command line.
For all commands you can use the -h / --help flag to get more information about the available options.
example
aitw-permeability workflow launch generate_permeability \
--wood-ms <WOOD_MS_CODE_IDENTIFIER> \
--permeability-code <PERMEABILITY_CODE_IDENTIFIER> \
--wood-type birch \
--generate-params-file <JSON_GENERATOR_PARAMS_FILE> \
--filter-params-file <JSON_FILTER_PARAMS_FILE> \
--resolution 40
Replace the <CODE IDENTIFIER> with the actual code identifiers (PK or label) of the installed codes in your AiiDA database.
Adjust the other parameters as needed.
OUTPUT:
# ...
# REPORT
# ...
# Report: [3284|OLBPermeabilityWorkChain|inspect_lb_permeability]: ✓ Permeability tensor calculated:
# Report: [3284|OLBPermeabilityWorkChain|inspect_lb_permeability]: k_x = 2.018e-11 m²
# Report: [3284|OLBPermeabilityWorkChain|inspect_lb_permeability]: k_y = 2.046e-11 m²
# Report: [3284|OLBPermeabilityWorkChain|inspect_lb_permeability]: k_z = 5.176e-11 m²
# ...
# Output link Node pk and type
# ------------------------------------------------------------
# filter__actual_porosity Float<3283>
# filter__params Dict<3281>
# filter__parsed_params Dict<3279>
# filter__structure SinglefileData<3276>
# generator__distortion ArrayData<3263>
# generator__parsed_params Dict<3262>
# generator__volume__after_global SinglefileData<3257>
# generator__volume__after_local SinglefileData<3258>
# generator__volume__final SinglefileData<3260>
# generator__volume__initial SinglefileData<3259>
# permeability__permeability_tensor Dict<3307>
NOTE: Not all possible inputs to the workchain are exposed through the CLI. For more advanced usage, consider running the workchain programmatically.
Programmatically
See the CLI file for an example of how to run the workchain programmatically.
EG: The same code in the function launch_workflow could be adjusted and used in a python script to automate launching the workflow for multiple molecules/parameters at once.
Using the daemon (requires AiiDA to be configured with RabbitMQ with ZeroMQ and a database, or AiiDA>=2.9.x) is required to run all the submitted workchains in parallel.
Metadata
Release files for aiida-wood-permeability 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiida_wood_permeability-0.3.0.tar.gz | 24.7 kB | Without provenance | Details for aiida_wood_permeability-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiida_wood_permeability-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for aiida_wood_permeability-0.3.0-py3-none-any.whl |
Total release size: 59.5 kB
Release files / aiida_wood_permeability-0.3.0.tar.gz
| Download URL | aiida_wood_permeability-0.3.0.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d4304441c478a752321ba62281439ad41a0e8167bdfc0572ea28c8ddbbbb6db
|
|
BLAKE2b-256 checksum How to use checksums |
c83aef70b84383839464c138b6372bc22ad67e2c6c6d8d251adb1ed61bb7fd76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Release files / aiida_wood_permeability-0.3.0-py3-none-any.whl
| Download URL | aiida_wood_permeability-0.3.0-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90b5a11128c8ee499d3bcc8030c34701a7ab0119759484af1ce300dedc68c5a2
|
|
BLAKE2b-256 checksum How to use checksums |
dae6997f7deb6d2a02a62330547d17bd08049877c93ce60e8d16f666646d19f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Security for aiida-wood-permeability 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.