Skip to main content

Spark3DBatch

Python library to launch (batch) Spark3D simulations. SPARK3D versions > 2016 should be supported, but last tests were done on SPARK3D 2025 SP4.

Installation

  1. Create a dedicated Python environment, activate it.
  2. 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:

  1. Install Python 3.9 or higher.
  2. Learn to use Python environments, pipenv or virtualenv.
  3. Install a Python IDE such as Spyder or VSCode.
  1. Set the environment variable $SPARK3DPATH to point to the folder containing the SPARK3D executable. In general, adding the following line to your .bashrc will do the trick:
    export SPARK3DPATH="/opt/cst/CST_Studio_Suite_20XX/SPARK3D/"
    

[!IMPORTANT] Not tested on Windows.

Usage

Two options:

  1. Provide a SPKX file,
  2. Provide a XML file and a field map.
    • XML can be generated by unzipping a SPKX file, allowing you to modify the simulation parameters with a script.
    • Field maps can be F3E, DSP or MFE.

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 logging instead of printc
  • 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)

Source distribution for spark3d-batch 0.1.7
File Size Uploaded
spark3d_batch-0.1.7.tar.gz 31.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spark3d-batch 0.1.7
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

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