.... I have a small CFD code, multi-block structured grid, CV based. I
had it write out the results of a small (single-block) run into what I
think is proper VTK format. The top few lines of the file are:
# vtk DataFile Version 2.0
Circular bump in Duct problem ....
ASCII
DATASET STRUCTURED_GRID
DIMENSIONS 181 91 1
POINTS 16471 double
-1.500000000000000E+00 0.000000000000000E+00 5.016534402966499E-02
-1.483032584190369E+00 0.000000000000000E+00 5.016534402966499E-02
-1.465468764305115E+00 0.000000000000000E+00 5.016534402966499E-02
-1.447317719459534E+00 0.000000000000000E+00 5.016534402966499E-02
-1.428592562675476E+00 1.197061116897657E-08 5.016534402966499E-02
followed by:
1.466666936874390E+00 1.000000000000000E+00 5.016534402966499E-02
1.483333587646484E+00 1.000000000000000E+00 5.016534402966499E-02
1.500000000000000E+00 1.000000000000000E+00 5.016534402966499E-02
FIELD Block 1 field phi & UV(W) data 6
CELL_DATA 16200
P1 1 16200 double
1.284431766495504E+03 1.901314333118112E+03
2.088778454055143E+03 1.930568862871915E+03
1.776176510504120E+03 1.751260802938335E+03
1.786180680032407E+03 1.831201633549102E+03
1.859459471599597E+03 1.872682978161053E+03
1.885217602116579E+03 1.906713254810442E+03
1.937449535399969E+03 1.973300683209732E+03
2.012781976615478E+03 2.056495393691883E+03
2.106159251721347E+03 2.162302804426874E+03
2.225496001899034E+03 2.296113479005934E+03
where the 3 lines above the FIELD line are the last of the (IJ-ordered)
grid points. There are 5 scalar fields (P,U,V,rho,Mach #) & 1 (2-D)
vector field (U,V), all storing cell-centered data.
When I invoke mayavi, I get the following:
[EMAIL PROTECTED], test, 9:55:01am] 390 % mayavi -d !$
mayavi -d CFD.VTK
ERROR: In /builddir/build/BUILD/VTK/IO/vtkDataReader.cxx, line 1065
vtkStructuredGridReader (0xde7bf0): Unsupported data type:
Segmentation fault
[EMAIL PROTECTED], test, 9:55:08am] 391 %
I am assuming pilot error of some sort :-) .... TIA for any clues ....
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users