Skip to main content

tankoh2

pipeline status coverage report Latest Release

Design and optimization of H2 tanks.

For metal structures, tankoh2 is a standalone pre-design tool. For CFRP structures, a detailed winding optimization is performed. The winding simulation is carried out by µChain

For Automated Fiber Placement (AFP) structures, an end-to-end process is carried out: it automates Finite Element model generation using Abaqus in the background and post-processes the results, from an Excel stacking definition all the way through to the tank's mechanical response.

Features

  • Material/layup read/write
  • Define requirements for cryogenic or high-pressure hydrogen storage
  • Create dome (spherical, isotensoid, torisspherical or conical) and liner from cylindrical length and radius or using a dome contour
  • Setup of a vessel model
  • Optimization of each layer with respect to minimizing puck fibre failure, bending loads, and maintaining a good contour
  • Generate Solid-Axisymmetric Abaqus FEM Models and use them within Optimization
  • Create and run DOE with support of DLR tools (delismm, fa_pyutils)
  • Planned features:
    • Global optimization of
      • All angles of helical layers
      • All hoop layer shifts
      • Target: mass minimization
      • Constraint: puck fibre failure
    • Improved DOE: Liner and fitting adjustment w.r.t. vessel geometry
    • Abaqus: introduction of the abaqus solver at the end of the optimization process

Documentation

Here is the full Documentation

Installation

Installation for users

On the command line run

pip install tankoh2

to install tankoh2 and its dependencies.

Installation from source (for developers)

  • clone tankoh2 and cd into the directory

    git clone https://gitlab.com/DLR-SY/tank/tankoh2.git

    cd tankoh2

  • Install python 3.10
  • Install poetry

    pip install poetry

  • Install requirements for the project

    poetry install

  • To run the project, navigate into the tankoh2 directory and use

    poetry run python -m tankoh [--further Options]

For winding: Path to µChain

Add an environment variable named MYCROPYCHAINPATH and set its value to the path of your µChain installation.

Old Method, will be deprecated soon: Alternatively, in the folder /src/tankoh2/, create a file settings.json and include the path here.

{
  "mycropychainPath": "<path_to_muChain>"
}

Test the installation

python -m tankoh2 --help

You can perform a standalone test for metal tanks

python -m tankoh2 --materialName alu2219 --manufacturingType metal --domeType circle

Pre-Commit Hooks

Developers may also install the pre-commit hook.

Precommit

  1. If not installed: install the pre-commit

    pip install pre-commit

  2. In the tankoh2 folder

    pre-commit install

This enables the pre-commit hooks defined in .pre-commit-config.yaml and eases your commits and successful pipline runs. You can test pre-commit by running

pre-commit run

Usage

A full list the available parameters is created with

python -m tankoh2 --help

Winding

For winding mode, a valid µWind license is required! Run the following, to start a winding optimization.

python -m tankoh2

Metal

A design run for metal structures can be run by

python -m tankoh2 --materialName alu2219 --manufacturingType metal --domeType circle

AFP (Automated Fiber Placement)

The AFP mode lives mainly in mainAFP.py and can still be called from there directly:

cd <path_to_tankoh2>/src/tankoh2/design/afp
python mainAFP.py --inputFile inputFiles/DemoStackingDefinition.xlsx --tankname demo

It is also dispatched through the main entry point with --afp true:

python -m tankoh2 --afp true --inputFile <path_to_afp>/inputFiles/DemoStackingDefinition.xlsx --tankname demo

If Abaqus isn't on your PATH, point it to the executable explicitly (or use --abaqusExe <path> in the direct mainAFP.py call). The AFP program was developed against Abaqus 2024 (e.g. abq2024hf4, abq2024, abq2024le); using a version below 2024 will produce errors, while versions above 2024 may work:

python -m tankoh2 --afp true \
    --inputFile <path_to_afp>/inputFiles/DemoStackingDefinition.xlsx \
    --tankname demo \
    --abaqusExe <path-to-abaqus.exe>

A few example input files ship in the inputFiles/ folder. Most simulation settings are configured inside the Excel input file itself using the settings tool built into the file — --inputFile and --tankname only select which file to read and what to name the run. The Abaqus executable is picked up from PATH by default; override it with --abaqusExe <path-or-name> if needed.

Config Files:

It's easiest to write design config files in .yaml format to define any parameters. Using config files, it's possible to reproduce and modify runs. All possible parameters with descriptions can be seen in defaults.yaml. Config files can also recursively include other configFiles as parameters, whose parameters can be overwritten. Config files are used via the option --configFile <nameOfConfig.yaml>. For example:

python -m tankoh2 --configFile <nameOfConfig.yaml>

Parameters given in config files are overwritten by parameters supplied explicitly via options.

python -m tankoh2 --configFile <nameOfConfig.yaml> --safetyFactor 2.0

Contributing to tankoh2

We welcome your contribution!

If you want to provide a code change, please:

  • Create a fork of the project.
  • Develop the feature/patch
  • Provide a merge request.

If it is the first time that you contribute, please add yourself to the list of contributors below.

Citing

Please cite name and web address of the project

License

see license

Change Log

see changelog

Authors

Sebastian Freund Caroline Lüders Linus Jacobsen Felipe Franzoni Christopher Rickert

Metadata

Release files for tankoh2 2.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tankoh2 2.9.1
File Size Uploaded Provenance Actions
tankoh2-2.9.1.tar.gz 459.2 kB Without provenance Details for tankoh2-2.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tankoh2 2.9.1
File Interpreter ABI Platform Actions
tankoh2-2.9.1-py3-none-any.whl Python 3 none any Details for tankoh2-2.9.1-py3-none-any.whl

Total release size: 963.0 kB

Release files / tankoh2-2.9.1.tar.gz

Download URL tankoh2-2.9.1.tar.gz
Size 459.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d7e4b7978796ae5ef6ebc35d9cc36d0c246ea72234695e3291ca198ab6fa136b
BLAKE2b-256 checksum
How to use checksums
6eb3ac795f1f0346163bbab0b08e64f497a7b15109239caf6732e6c04b28d65f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / tankoh2-2.9.1-py3-none-any.whl

Download URL tankoh2-2.9.1-py3-none-any.whl
Size 503.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fb9cbb31c2cdc681f7c1a8126d9c8de3fb7cf37463d60b892c388036c48375b
BLAKE2b-256 checksum
How to use checksums
0a94b8f53242aca5b065d29f3b9debd3cbc1a908cb5041c13bf4d4ce01b97202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.10.22

Security for tankoh2 2.9.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page