CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   FoamToVTK surfaceFields generates invalid files for 2D case (http://www.cfd-online.com/Forums/openfoam-bugs/62427-foamtovtk-surfacefields-generates-invalid-files-2d-case.html)

7islands September 2, 2008 02:57

Description: When I try to r
 
Description:
When I try to read surfaceFields_*.vtk files generated by foamToVTK -surfaceFields for 2D cases by ParaView it always fails with
Generic Warning: In /Volumes/RAID0data/paraview/ParaView3/VTK/IO/vtkDataReader.cxx, line 1363
Error reading binary data!
.

Solver/Application:
foamToVTK

Source file:
writeSurfFields.C

Testcase:
icoFoam/cavity or whatever

Version:
1.5

Notes:
Changing line 103 of writeSurfFields.C from
if (isA<emptyfvpatchvectorfield>(pf))
to
if (isA<emptyfvspatchvectorfield>(pf))
fixed the problem.

Regards,
Takuya

mattijs September 2, 2008 03:43

Thanks - I put it in.
 
Thanks - I put it in.

wikstrom September 2, 2008 08:12

Hi Mattijs, happened to pul
 
Hi Mattijs,

happened to pull the latest git just now, and foamToVTK does not compile.

The change on line 103 in writeSurfaceFields.C
if (isA<emptyfvspatchvectorfield>(pf))
probably requires #include "emptyFvsPatchFields.H"

best regards
Niklas

mattijs September 2, 2008 09:04

Thanks. Should be ok now.
 
Thanks. Should be ok now.


All times are GMT -4. The time now is 22:28.