pyInclude.vtkWedge
- pyInclude.vtkWedge(file_name, data=None, geometry=None, field='phiAse', scalar_name=None, every=1, fields=None)
Write scalar data on a wedge mesh to a legacy ASCII VTK file.
The preferred simulation callback form is
vtkWedge(file_name, state, fields=...)inside a useronStepfunction.statemust be aTimeStepStateproduced bySimulation; it carries both the dynamic arrays and the static topology needed to write VTK geometry.file_namemay contain{step},{time}, and{field}placeholders.fieldselects attributes or mapping keys fromdata. A string writes one scalar array, a sequence writes several arrays with their original names, and a mapping writes aliased names, for examplefield={"phi": "phiAse"}.fieldsis for explicit arrays and maps VTK scalar names to arrays, for examplefields={"phiASE": state.phiAse, "cladAbs": state.phiAse * 5.5}.fieldstakes precedence overfield.Point-shaped arrays
(numberOfPoints, levels)are written asPOINT_DATA. Prism-shaped arrays(numberOfTriangles, levels - 1)are written asCELL_DATA. Mixed point and cell arrays can be written to the same file. For standalone array exports outside aTimeStepState, passgeometryas aGainMediumorMeshTopology.The legacy callback-factory form
simulation.onStep(vtkWedge(path, geometry, ...))is still accepted. In that form,everycontrols the output period and must be a positive integer.