Launch SPARK3D simulations by batch; list of powers or accelerating fields.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spark3d_batch-0.1.7.tar.gz.
File metadata
- Download URL: spark3d_batch-0.1.7.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
235ec08a88aeab0660db35214aee4af85470e5dec69a298bba00cefa11e1df3e
|
|
| MD5 |
903ffe8891a3420f9667bd7e0c4ecf16
|
|
| BLAKE2b-256 |
a45c4ea636428155f0907c0eebf5bc3e4337fd20485bb8b62798366a16ef0c5a
|
Provenance
The following attestation bundles were made for spark3d_batch-0.1.7.tar.gz:
Publisher:
release.yml on AdrienPlacais/Spark3DBatch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spark3d_batch-0.1.7.tar.gz -
Subject digest:
235ec08a88aeab0660db35214aee4af85470e5dec69a298bba00cefa11e1df3e - Sigstore transparency entry: 634185118
- Sigstore integration time:
-
Permalink:
AdrienPlacais/Spark3DBatch@e29bc946a4f4636a924076cfc5b48847e230d511 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/AdrienPlacais
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e29bc946a4f4636a924076cfc5b48847e230d511 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spark3d_batch-0.1.7-py3-none-any.whl.
File metadata
- Download URL: spark3d_batch-0.1.7-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba7e5ed909546e04d3688856fcfe133169e14c968a472d2de2becca7c54577e2
|
|
| MD5 |
661cad3927feb39fd670cb35ab0b9cac
|
|
| BLAKE2b-256 |
80f37ecc18549b79408da36941745edf3f85a25129169d8d0d366c297c9e5bb7
|
Provenance
The following attestation bundles were made for spark3d_batch-0.1.7-py3-none-any.whl:
Publisher:
release.yml on AdrienPlacais/Spark3DBatch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spark3d_batch-0.1.7-py3-none-any.whl -
Subject digest:
ba7e5ed909546e04d3688856fcfe133169e14c968a472d2de2becca7c54577e2 - Sigstore transparency entry: 634185142
- Sigstore integration time:
-
Permalink:
AdrienPlacais/Spark3DBatch@e29bc946a4f4636a924076cfc5b48847e230d511 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/AdrienPlacais
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e29bc946a4f4636a924076cfc5b48847e230d511 -
Trigger Event:
push
-
Statement type: