# Utility scripts for PyFR: pyfrm-to-xdmf, multiple pyfrs-to-vtu

**URL:** <https://pyfr.discourse.group/t/utility-scripts-for-pyfr-pyfrm-to-xdmf-multiple-pyfrs-to-vtu/111>\
**Category:** General\
**Created:** [25 May 2016 09:44 UTC](https://pyfr.discourse.group/t/utility-scripts-for-pyfr-pyfrm-to-xdmf-multiple-pyfrs-to-vtu/111 "2016-05-25T09:44:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Garlick](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@Paul\_Garlick](https://pyfr.discourse.group/u/Paul_Garlick)\
**Post date:** [25 May 2016 09:44 UTC](https://pyfr.discourse.group/t/utility-scripts-for-pyfr-pyfrm-to-xdmf-multiple-pyfrs-to-vtu/111/1 "2016-05-25T09:44:30Z")

</div>

Hi All,

I have written two utility scripts to use with PyFR. One is for pre-processing and one is for post-processing. The scripts are available to download, or clone, from the repository at [cgit.tourbillion-technology.com/pyfrUtils](http://cgit.tourbillion-technology.com/pyfrUtils) .

The pre-processing script, _pyfrm2xdmf_, takes as input a mesh file in PyFR format and outputs a file in XDMF format. XDMF files can be read by ParaView, allowing the mesh partitioning to be inspected ahead of the solver run.

The post-processing script, _pyrfs2vtu_, converts multiple solution files in one pass.

A workflow that makes use of these scripts is:

1. create mesh file

2. partition mesh, with ‘-p metis’ or ‘-p scotch’

3. run _pyfrm2xdmf_

4. visualize mesh in ParaView

5. adjust partition, if necessary, using ‘–popt’

6. run solver

7. run _pyfrs2vtu_

ParaView reads in the entire mesh from the xdmf file. To visualize the individual partitions and the cells within the partitons, use the _ExtractBlock_ filter. The pre-processing script will accept any of the cell types supported by PyFR.

There are more details in the README file (the _About_ tab on the webpage).

Enjoy!

Paul.

---

<div class="post-metadata">

**Author:** ![Kurt\_Sansom](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kurt\_Sansom](https://pyfr.discourse.group/u/Kurt_Sansom)\
**Post date:** [2 January 2018 05:55 UTC](https://pyfr.discourse.group/t/utility-scripts-for-pyfr-pyfrm-to-xdmf-multiple-pyfrs-to-vtu/111/2 "2018-01-02T05:55:57Z")

</div>

It appears these tools are not longer available? is that true?

~Kurt

---

<div class="post-metadata">

**Author:** ![arvind\_iyer](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@arvind\_iyer](https://pyfr.discourse.group/u/arvind_iyer)\
**Post date:** [15 January 2018 11:38 UTC](https://pyfr.discourse.group/t/utility-scripts-for-pyfr-pyfrm-to-xdmf-multiple-pyfrs-to-vtu/111/3 "2018-01-15T11:38:52Z")

</div>

Hi Kurt,

If you are referring to:

[https://github.com/iyer-arvind/PyFR/tree/MultiFileParallelExportGradient](https://github.com/iyer-arvind/PyFR/tree/MultiFileParallelExportGradient)

I guess it is still there, though I am not maintaining it anymore.

Regards
