pyInclude.vtkWedge

pyInclude.vtkWedge(file_name, data=None, geometry=None, field='phiAse', scalar_name=None, every=1)

Write HASEonGPU wedge data to a ASCII VTK file.

Direct use: pass data as a TimeStepState or array and geometry as a GainMedium or MeshTopology. Callback use: pass the geometry as data and omit geometry; the returned write_state(state) function can be registered with Simulation.onStep(...).

Point-shaped arrays (numberOfPoints, levels) become POINT_DATA; prism-shaped arrays (numberOfTriangles, levels - 1) become CELL_DATA. file_name may contain {step}, {time}, and {field} placeholders when used as an onStep callback.