Direct vtkUnstructuredGrid object search

hello!

I understand that the model and state can be saved as VTU/PVD through VTKLib and VTK Plugin. But what I want to do is obtain the vtkUnstructuredGrid object directly in memory without any physical file I/O.

Is there any way to do this?

Thank you for your comment.