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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2008, 03: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

Old   September 2, 2008, 04:43
Default Thanks - I put it in.
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Thanks - I put it in.
mattijs is offline   Reply With Quote

Old   September 2, 2008, 09:12
Default Hi Mattijs, happened to pul
  #3
Member
 
Niklas Wikstrom
Join Date: Mar 2009
Posts: 86
Rep Power: 17
wikstrom is on a distinguished road
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
wikstrom is offline   Reply With Quote

Old   September 2, 2008, 10:04
Default Thanks. Should be ok now.
  #4
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Thanks. Should be ok now.
mattijs is offline   Reply With Quote

Reply


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 12:20
Different case files activate ALE Eq. kevin FLUENT 0 November 2, 2006 14:39
Where case files are written ereiss FLUENT 3 July 9, 2004 03:24
Pb with writing the Case and Dat files Sam FLUENT 2 May 14, 2004 12:16
Are Case and Data files enough? Zhengcai Ye FLUENT 6 January 8, 2004 05:02


All times are GMT -4. The time now is 08:06.