Python library to launch (batch) Spark3D simulations.
SPARK3D versions > 2016 should be supported, but last tests were done on
SPARK3D 2025 SP4.
- 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.
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.
- Allow for control over accelerating field instead of power
- Change how the path to SPARK3D is declared. Currently not robust at all.
- Package test data
- Complete installation instructions
- Static typing to detect allowed keys in
XML - CLI interface
- On
pip - Tests
- Use
logginginstead ofprintc - Add
release.py