Hello, folks at libmesh;
I have an issue with the libmesh integration of VTK output. Maybe it's trivial
to solve and I just don't get it so I apologize already if my question is so
simple... The problem is the following: I am writing a little visualization
program with VTK which takes as input some meshes/solutions computed with
libmesh. Now, the VTKIO class in libmesh allows for storing the results of a
libmesh simulation in data files conforming to the VTK file format. I can then
read these files into my VTK program to visualize the results. Now, instead of
writing/reading files it would be better to have a pointer to the vtk
datastructure that I can pass directly to the VTK part of my program. There is
a function in the VTKIO class called get_vtk_grid() which returns a
vtkUnstructuredGrid* but as far as I understood it from studying the source
header and implementation files, this method just returns a pointer to a
private variable which is not updated with the mesh/solution information, i.e.
if I use exa
mple 3 from the libmesh examples (simple poisson equation) and instead of
doing a
VTKIO (mesh).write_equation_systems ("out.pvtu", equation_systems);
in the end, I do as a test a
vtkUnstructuredGrid *grid;
grid = VTKIO (mesh).get_vtk_grid();
vtkUnstructuredGridWriter *writer = vtkUnstructuredGridWriter::New();
writer->SetInput(grid);
writer->SetFileTypeToASCII();
writer->SetFileName("test.vtk");
writer->Write();
,
the code will compile but when running the program it crashes with a
'vtkUnstructuredGridWriter (0x7f9dc379cf90): No input provided!' message.
Can you please point me to the error in this argumentation? What am I doing
wrong?
Thanks for your help
Erich
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users