# Python documentation for paraview.simple.OpenFoamReader ?

**URL:** https://discourse.paraview.org/t/python-documentation-for-paraview-simple-openfoamreader/8527
**Category:** ParaView Support
**Created:** [December 1, 2021, 1:39am UTC](https://discourse.paraview.org/t/python-documentation-for-paraview-simple-openfoamreader/8527 "2021-12-01T01:39:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nicholas\_Yue](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicholas_yue/32/5203_2.png) [@Nicholas\_Yue](https://discourse.paraview.org/u/Nicholas_Yue)
#### Post date: [December 1, 2021, 1:39am UTC](https://discourse.paraview.org/t/python-documentation-for-paraview-simple-openfoamreader/8527/1 "2021-12-01T01:39:10Z")

</div>

I browse at the following [docs](https://kitware.github.io/paraview-docs/latest/python/paraview.simple.html) but could not find it.

I want to find out more about the object it returns, the methods available for the objects etc.

Cheers

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [December 1, 2021, 3:20pm UTC](https://discourse.paraview.org/t/python-documentation-for-paraview-simple-openfoamreader/8527/2 "2021-12-01T15:20:13Z")

</div>

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](https://vtk.org/doc/nightly/html/classvtkOpenFOAMReader.html)

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [December 1, 2021, 3:39pm UTC](https://discourse.paraview.org/t/python-documentation-for-paraview-simple-openfoamreader/8527/3 "2021-12-01T15:39:22Z")

</div>

Here are docs for `paraview.simple.OpenFOAMReader`: [paraview.simple.OpenFOAMReader — ParaView/Python 5.9.1 documentation](https://kitware.github.io/paraview-docs/latest/python/paraview.simple.OpenFOAMReader.html)

---

<div class="post-metadata">

### Author: ![Nicholas\_Yue](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicholas_yue/32/5203_2.png) [@Nicholas\_Yue](https://discourse.paraview.org/u/Nicholas_Yue)
#### Post date: [December 8, 2021, 4:50am UTC](https://discourse.paraview.org/t/python-documentation-for-paraview-simple-openfoamreader/8527/4 "2021-12-08T04:50:08Z")

</div>

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

```auto
                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
