Home

Awesome

Trixi2Vtk.jl

Docs-stable Build Status Coveralls License: MIT DOI

<!-- [![GitHub commits since tagged version](https://img.shields.io/github/commits-since/trixi-framework/Trixi2Vtk.jl/v0.3.4.svg?style=social&logo=github)](https://github.com/trixi-framework/Trixi2Vtk.jl) -->

With Trixi2Vtk.jl you can convert the HDF5-based output files created by Trixi.jl (solution or restart files) to VTK files. The converted files can then be further processed with ParaView or VisIt to generate publication-quality visualizations. Trixi2Vtk is part of the Trixi framework.

Installation

If you have not yet installed Julia, please follow the instructions for your operating system. Trixi2Vtk works with Julia v1.7 and newer.

Trixi2Vtk is a registered Julia package. Hence, you can install it by executing the following commands in the Julia REPL:

julia> import Pkg; Pkg.add("Trixi2Vtk")

To update an existing installation of Trixi2Vtk to the latest release, execute

julia> import Pkg; Pkg.update("Trixi2Vtk"); Pkg.status("Trixi2Vtk")

in the Julia REPL. A brief list of notable changes to Trixi2Vtk is available in NEWS.md.

Usage

In the Julia REPL, first load the package Trixi2Vtk

julia> using Trixi2Vtk

To process an HDF5 file generated by Trixi.jl, execute

julia> trixi2vtk(joinpath("out", "solution_000000.h5"), output_directory="out")

This will create two unstructured VTK files in the out/ subdirectory that can be opened with ParaView or VisIt: solution_000000.vtu contains the discontinuous Galerkin solution data while solution_000000_celldata.vtu holds any cell-based values such as the current AMR indicator or the cell refinement level.

<p align="center"> <img width="300px" src="docs/src/assets/solution_000000_scalar_mesh.png"> </p>

For further information on how to use Trixi with Trixi2Vtk, please refer to the documentation of Trixi.

Authors

Trixi2Vtk is maintained by the Trixi authors. Its principal developers are Michael Schlottke-Lakemper (University of Stuttgart, Germany) and Hendrik Ranocha (University of Mainz, Germany).

License and contributing

Trixi2Vtk is licensed under the MIT license (see LICENSE.md).