[vtkusers] extract array of globals from Exodus II file

Meehan, Bernard MEEHANBT at nv.doe.gov
Wed Nov 6 19:10:27 EST 2013


Hi ­ I'm fairly new to VTK, and I was trying to extract an array of
globals from an ExodusII file. I have figured out how to extract the time
steps, but haven't figured out how to grab the global variables that are
stored at each time step.


import vtk
reader = vtk.vtkExodusIIReader()
reader.SetFileName("dataset.exo")
reader.UpdateInformation()
reader.SetGlobalResultArrayStatus("XMOM", 1)
reader.Update()
times = 
reader.GetOutputInformation(0).Get(vtk.vtkStreamingDemandDrivenPipeline.TIM
E_STEPS())

Š
however, what needs to be done to extract the "XMOM" array?

Thanks,
Tim




More information about the vtkusers mailing list