Skip to content

Commit

Permalink
Fix README for postprocessing h5 files
Browse files Browse the repository at this point in the history
  • Loading branch information
sloede committed Aug 24, 2020
1 parent 5f89f85 commit 01bbb59
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions section-4.2.2-sedov-blast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ julia> Pkg.instantiate()

julia> using Trixi

julia> const TRIXI_DIR = pathof(Trixi) |> dirname |> dirname # Only required for postprocessing
julia> const TRIXI_DIR = pathof(Trixi) |> dirname |> dirname
```
After that, you can generate the Sedov self gravity data for the figures by running the following code in the Julia REPL.

Expand Down Expand Up @@ -62,7 +62,27 @@ julia> Trixi.run(parameters_sedov_self_gravity.toml", amr_interval=0)
```
## Converting Trixi.jl's .h5 files to VTK/VTI
To postprocess the solution files use
To postprocess the solution files, you first need to manually install some
dependencies. Start a fresh Julia REPL and execute the following commands (only
required *once*):
```julia
julia> import Pkg
julia> Pkg.add("ArgParse")
julia> Pkg.add("HDF5")
julia> Pkg.add("TimerOutputs")
julia> Pkg.add("WriteVTK")
julia> Pkg.add("ProgressMeter")
```
When working with the postprocessing tools, start Julia und load Trixi.jl
with the same startup sequence as [above](#sedov-blast-wave-with-self-gravity).
You can then convert the HDF5 output files of Trixi.jl to VTK-compatible file by
switching to shell mode (enter `;`) and running
```julia
shell> $TRIXI_DIR/postprocessing/trixi2vtk --nvisnodes 8 --format vti out/solution_euler_000000.h5
Expand Down

0 comments on commit 01bbb59

Please sign in to comment.