Skip to main content

Electrostatic Samples

Electrostatic analysis is currently a smaller sample workflow in eMachineSim. It is still documented because electric/electrostatic extensions may grow in future releases.

Sample directories:

Examples/electrostatic/3by3/
Examples/electrostatic/ring/

Representative JSON inputs:

Examples/electrostatic/3by3/input_sample_3D_3by3.json
Examples/electrostatic/ring/input_sample_3D_ring.json

Run from Python:

import eMachineSim

result = eMachineSim.run_file(
r"Examples\electrostatic\ring\input_sample_3D_ring.json",
r"Examples\electrostatic\ring",
)

The electrostatic examples are useful for checking the legacy electric-field path and for future API compatibility, but they are not yet the main public showcase.

ParaView Files

Representative VTK files are included or generated in the electrostatic example directories:

FileWhat to inspect
mesh.vtkElectrostatic mesh geometry and property IDs.
electric_result.vtkPotential and electric-field arrays.
boundary_faces.vtkBoundary face visualization.

The electrostatic VTK files are written automatically by the electrostatic post-processing path; no extra JSON parameter is needed.