java.lang.Object
simpa.acc.api.utils.ParaViewPlotter
Class for generating ParaView state files for visualizing point sources in a
sequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidplotPoints(List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> points, String title, double[] color, double pointSize) General helper that creates a ParaView python script for a single list of points, writes it to /tmp, and launches ParaView with the script.static voidplotSequence(Sequence sequence) Generates a ParaView Python state file for the given sequence.static voidplotSurfacePoints(String elementName) static voidplotTrajectory(String file)
-
Constructor Details
-
ParaViewPlotter
public ParaViewPlotter()
-
-
Method Details
-
plotTrajectory
- Throws:
IOException
-
plotSequence
Generates a ParaView Python state file for the given sequence. Creates CSV files for each element's point sources in /tmp/ and outputs the state file to the specified path.- Parameters:
sequence- the sequence containing elements with point sources- Throws:
IOException- if an I/O error occurs
-
plotSurfacePoints
- Throws:
IOException
-
plotPoints
public static void plotPoints(List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> points, String title, double[] color, double pointSize) throws IOException General helper that creates a ParaView python script for a single list of points, writes it to /tmp, and launches ParaView with the script.- Parameters:
points- list of points to plot (must be non-empty)title- used for temporary filenames and python variable namescolor- RGB triplet (0..1)pointSize- point size for visualization- Throws:
IOException- on write errors
-