Skip to main content

ci tag PyPI

ctwrap

Python wrapper for batch simulations (e.g. Cantera).

Documentation

Sphinx documentation includes:

Philosophy

The software was developed with the following objectives in mind. It should:

  • provide a low-level interface to essential cantera capabilities
  • create a flexible framework for generic simulations
  • provide a command line interface
  • be easily scriptable (using YAML configuration files)
  • enforce units (via pint)
  • enable parallel execution of (single-threaded) simulations (via multiprocessing)
  • enable simple re-import of simulation results into native Cantera objects

Although core functions of this software are continuously tested, there may be remaining bugs, non-working features, or other issues that could prevent a user from using this software to their specification. If you find problems, please report them in the issue tracker.

Installation

The simplest approach is to install ctwrap via pip, i.e.

$ pip install ctwrap

Note that ctwrap itself does not depend on a Cantera installation (only simulation modules do). It is recommended to install Cantera before ctwrap in a separate step.

Example

A parallel batch job for adiabatic flame calculations uses the freeflame module (modified from Cantera's adiabatic_flame.py example). Based on the YAML configuration given as a reference, a variation of 12 equivalence ratio values is run as:

$ ctwrap run freeflame freeflame.yaml --parallel

Results are written to a single file freeflame.h5.

Metadata

Release files for ctwrap 0.3.3

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

Source distribution (sdist)

Source distribution for ctwrap 0.3.3
File Size Uploaded Provenance
ctwrap-0.3.3.tar.gz 29.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 60.8 kB

Release files / ctwrap-0.3.3.tar.gz

Download URL ctwrap-0.3.3.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8211794f4c4f8e19487a7943c3dcf53d618cad90775e3f7e076211ee004bd0f1
BLAKE2b-256 checksum
How to use checksums
4afefb699ec8cc02b0cbd859edecfbcdc55e3dd9e5b1b90f384b616d4df74e58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.8

Release files / ctwrap-0.3.3-py3-none-any.whl

Download URL ctwrap-0.3.3-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cd1c907956cbfa579f247037c53d99d20202f71955012c2939fd8364e8c96a5
BLAKE2b-256 checksum
How to use checksums
ada6bbd56d56ab54031deba6ec5786e1bcfcb114076da622ba3f079f716cc2f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.8

Security for ctwrap 0.3.3

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.

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files No provenance

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