Skip to content

Add Python ParaView macro to visualize PULMTLN simulation results#52

Draft
Copilot wants to merge 2 commits intodevfrom
copilot/add-python-paraview-macro
Draft

Add Python ParaView macro to visualize PULMTLN simulation results#52
Copilot wants to merge 2 commits intodevfrom
copilot/add-python-paraview-macro

Conversation

Copy link

Copilot AI commented Mar 15, 2026

No tooling existed to load and display the ParaView output produced by PULMTLN runs. This adds a ready-to-use macro that discovers and renders all generated result files in one step.

New file: scripts/pulmtln_paraview_macro.py

  • Folder selection — opens a native dialog (PySide2 → PyQt5 → tkinter fallback); also accepts a CLI argument when invoked via pvpython
  • Auto-discovery — accepts either the top-level export folder or the ParaView/ subdirectory; finds all .pvd files (2N files for N conductors: one with dielectrics for C, one without for L)
  • Rendering — loads each dataset via PVDReader, colors by Phi (electric scalar potential) with a color bar; E and D fields are also available
  • Dual entry-point — works as a ParaView macro (Macros menu) or directly with pvpython
# CLI usage
pvpython scripts/pulmtln_paraview_macro.py Results/five_wires/

# ParaView GUI: Macros → Add New Macro → select file → run

For a five-wire case this loads 10 datasets (Conductor_1Conductor_5, each with and without dielectrics), all colored by Phi and visible in the Pipeline Browser for individual toggling.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add python Paraview macro to visualize all the generated results.</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Co-authored-by: lmdiazangulo <4919398+lmdiazangulo@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Python Paraview macro to visualize generated results Add Python ParaView macro to visualize PULMTLN simulation results Mar 15, 2026
Copilot AI requested a review from lmdiazangulo March 15, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants