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

FoamToVTK surfaceFields generates invalid files for 2D case

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
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: 11
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, 03:43
Default Thanks - I put it in.
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Thanks - I put it in.
mattijs is offline   Reply With Quote

Old   September 2, 2008, 08:12
Default Hi Mattijs, happened to pul
  #3
Member
 
Niklas Wikstrom
Join Date: Mar 2009
Posts: 85
Rep Power: 8
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, 09:04
Default Thanks. Should be ok now.
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Thanks. Should be ok now.
mattijs is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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 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 05:02


All times are GMT -4. The time now is 11:00.