Skip to content

vtkUnstructuredToFoam error when importing mesh and field

Summary

When trying to convert a .vtk file containing mesh and field data(T) into openFoam with vtlUnstructuredToFoam the fatal error, in the image I uploaded occurs. I also uploaded an easy example case of one solid region. The mesh consists of polyherda cells, which in vtk format correspond to the celltype 42. Before the fatal error i get a warining that this celltype is not recognized (maybe this also contributes to the error).

Steps to reproduce

Put the vtk file into an openFoam folder (containing "0", "constant" and "system" folders). Then in the command line run 'vtkUnstructuredToFoam <filename.vtk>'

Example case

solid2.vtk 1 region case, containing temperature field data

What is the current bug behaviour?

see error message below

What is the expected correct behavior?

The function should create a ploymesh folder containing the mesh and place the field data in the "0" folder. (Iwant to run further simulations in openFOAM and the field should be initial conditions for that)

Relevant logs and/or images

screenshot of the error message:

errorNote

Environment information

  • OpenFOAM version :v2406
  • Operating system :ubuntu|WSL
  • Hardware info :
  • Compiler :gcc

Possible fixes

"/label bug"

Edited by Felix Burger