Skip to content

vtkWrite won't write zoneID

Functionality to add/problem to solve

vtkWrite function object does not write zoneID variable because zoneID exists as a labelList data type in the objectRegistry. foamToVTK, however, somehow interprets zoneID as a volScalarField and writes it

Target audience

Users running overset simulations that want vtk output during simulation execution

Proposal

Determine how foamToVTK interprets zoneID as a volScalarField and allow vtkWrite to do the same

What does success look like, and how can we measure that?

Success is enabling the vtkWrite function object to write the zoneID variable to the disk in vtk format, possibly also allowing other labelList variables to be written as well

Links / references

None

Funding

Creating vtk-formatted files with zoneID variables within them is currently possible using a combination of the reconstructPar and foamToVTK utilities, but this requires extra time.