Spark3DBatch
Python library to launch (batch) Spark3D simulations.
SPARK3D versions > 2016 should be supported, but last tests were done on
SPARK3D 2025 SP4.
Installation
- Create a dedicated Python environment, activate it.
- Run
pip install spark3d-batch.
[!NOTE] If you are completely new to Python and these instructions are unclear, check this tutorial. In particular, you will want to:
- Install Python 3.9 or higher.
- Learn to use Python environments,
pipenvorvirtualenv.- Install a Python IDE such as Spyder or VSCode.
- Set the environment variable
$SPARK3DPATHto point to the folder containing the SPARK3D executable. In general, adding the following line to your.bashrcwill do the trick:export SPARK3DPATH="/opt/cst/CST_Studio_Suite_20XX/SPARK3D/"
[!IMPORTANT] Not tested on Windows.
Usage
Two options:
- Provide a
SPKXfile, - Provide a
XMLfile and a field map.XMLcan be generated by unzipping aSPKXfile, allowing you to modify the simulation parameters with a script.- Field maps can be
F3E,DSPorMFE.
To-do
Important
- Allow for control over accelerating field instead of power
- Change how the path to SPARK3D is declared. Currently not robust at all.
Secondary
- Package test data
Tertiary
- Complete installation instructions
- Static typing to detect allowed keys in
XML - CLI interface
- On
pip - Tests
- Use
logginginstead ofprintc - Add
release.py
Release files for spark3d-batch 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spark3d_batch-0.1.7.tar.gz | 31.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spark3d_batch-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.2 kB
Release files / spark3d_batch-0.1.7.tar.gz
| Download URL | spark3d_batch-0.1.7.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
235ec08a88aeab0660db35214aee4af85470e5dec69a298bba00cefa11e1df3e
|
|
BLAKE2b-256 checksum How to use checksums |
a45c4ea636428155f0907c0eebf5bc3e4337fd20485bb8b62798366a16ef0c5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2025.
Transparency logRelease files / spark3d_batch-0.1.7-py3-none-any.whl
| Download URL | spark3d_batch-0.1.7-py3-none-any.whl |
|---|---|
| Size | 24.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba7e5ed909546e04d3688856fcfe133169e14c968a472d2de2becca7c54577e2
|
|
BLAKE2b-256 checksum How to use checksums |
80f37ecc18549b79408da36941745edf3f85a25129169d8d0d366c297c9e5bb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2025.
Transparency log