CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

FoamToVTK surfaceFields generates invalid files for 2D case

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 2, 2008, 02:57
Default Description: When I try to r
  #1
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on case and solution files download John Yang FLUENT 1 December 4, 2007 11:20
Different case files activate ALE Eq. kevin FLUENT 0 November 2, 2006 13:39
Where case files are written ereiss FLUENT 3 July 9, 2004 02:24
Pb with writing the Case and Dat files Sam FLUENT 2 May 14, 2004 11:16
Are Case and Data files enough? Zhengcai Ye FLUENT 6 January 8, 2004 04:02


All times are GMT -4. The time now is 13:41.