# New reader that use read two files using two already existing readers

**URL:** https://discourse.paraview.org/t/new-reader-that-use-read-two-files-using-two-already-existing-readers/10446
**Category:** ParaView Support
**Created:** [October 4, 2022, 11:31am UTC](https://discourse.paraview.org/t/new-reader-that-use-read-two-files-using-two-already-existing-readers/10446 "2022-10-04T11:31:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gv871](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gv871](https://discourse.paraview.org/u/gv871)
#### Post date: [October 4, 2022, 11:31am UTC](https://discourse.paraview.org/t/new-reader-that-use-read-two-files-using-two-already-existing-readers/10446/1 "2022-10-04T11:31:23Z")

</div>

Hello,  
my simulation results are are divided in two different kind of files.  
On one side I have OpenFOAM results and on the some .vtm files.  
Right now I have to load the two sets of file independently and everything works fine.  
I was wondering if it was possible, to create a reader, of a file .abc (in a known relative position with respect to the .foam and the .vtm), that allow me to load the two file at once.  
Every suggestion will be appreciated.  
Thanks

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 4, 2022, 12:00pm UTC](https://discourse.paraview.org/t/new-reader-that-use-read-two-files-using-two-already-existing-readers/10446/2 "2022-10-04T12:00:40Z")

</div>

A custom filter should do the trick: [https://www.paraview.org/Wiki/ParaView/Custom\_Filters](https://www.paraview.org/Wiki/ParaView/Custom_Filters)

---

<div class="post-metadata">

### Author: ![gv871](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gv871](https://discourse.paraview.org/u/gv871)
#### Post date: [October 5, 2022, 6:58am UTC](https://discourse.paraview.org/t/new-reader-that-use-read-two-files-using-two-already-existing-readers/10446/3 "2022-10-05T06:58:05Z")

</div>

Hello Mathieu,  
thanks for the answer.  
Maybe I did not explain myself well or I do not understand how to proceed.  
Because at this point, I am not able to load the reader.abc, so I am not sure how to go further and make then read the other two files.  
Thanks again for all the help !

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 5, 2022, 7:05am UTC](https://discourse.paraview.org/t/new-reader-that-use-read-two-files-using-two-already-existing-readers/10446/4 "2022-10-05T07:05:31Z")

</div>

There is no alembic (.abc) reader in ParaView, but what does this have to do with reading two files ?

---

<div class="post-metadata">

### Author: ![gv871](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gv871](https://discourse.paraview.org/u/gv871)
#### Post date: [October 6, 2022, 11:15am UTC](https://discourse.paraview.org/t/new-reader-that-use-read-two-files-using-two-already-existing-readers/10446/5 "2022-10-06T11:15:47Z")

</div>

Thanks again. Using .abc as a example was not the best of ideas.  
The output of my simulation is divided in two folders, one containing openfoam data and the other containing vtk data.  
What I would like is to make a reader that read a file.principal which automatically load in paraview the .foam file and the vtk file.  
Thanks and sorry if I was not clear in my questions.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 7, 2022, 1:00am UTC](https://discourse.paraview.org/t/new-reader-that-use-read-two-files-using-two-already-existing-readers/10446/6 "2022-10-07T01:00:16Z")

</div>

To read a new format, you need to create a plugin, the simplest way is to use python.

See this answer by @utkarsh.ayachit :

> [@Help on a python programmable filter plugin](https://discourse.paraview.org/t/help-on-a-python-programmable-filter-plugin/2104):
>
> Dear all, I’m trying to write a compiled plugin based on python programmable filter (following the example in [https://www.paraview.org/Wiki/Plugin\_Tutorial:\_Subclassing\_PythonProgrammableFilter](https://www.paraview.org/Wiki/Plugin_Tutorial:_Subclassing_PythonProgrammableFilter) ) to build a reader of a specific hdf5 file. This reader should have a GUI to choose with a slider an item in a numbered set of objects and the min-max of this slider should dinamically be set depending on the input file content. I’ve already written the requestData python script that generates an unst…
