I browse at the following docs but could not find it.
I want to find out more about the object it returns, the methods available for the objects etc.
Cheers
I browse at the following docs but could not find it.
I want to find out more about the object it returns, the methods available for the objects etc.
Cheers
Not sure if this is what you want but you can find more information about the reader in the VTK documentation
https://vtk.org/doc/nightly/html/classvtkOpenFOAMReader.html
Here are docs for paraview.simple.OpenFOAMReader
: paraview.simple.OpenFOAMReader — ParaView/Python 5.9.1 documentation
I am attempting to query to extent of the FOAM data.
In C++, I have something like this and trying to do something similar in Python but the foam reader object has different object so I am lost trying to reconcile the two
vtkSmartPointer<vtkOpenFOAMReader> reader =
vtkSmartPointer<vtkOpenFOAMReader>::New();
std::string filename(argv[1]);
std::cout << boost::format("filename = %1%") % filename << std::endl;
int status = reader->CanReadFile(filename.c_str());
if (status)
{
reader->SetFileName(filename.c_str());
reader->Update();
std::cout << boost::format("CanReadFile = %1%") % status << std::endl;
std::cout << boost::format("GetUpdateNumberOfPieces = %1%") % reader->GetUpdateNumberOfPieces() << std::endl;
int x0, x1, y0, y1, z0, z1;
reader->GetUpdateExtent(x0, x1, y0, y1, z0, z1);
Thank you in advance