FerriteViz.jl

FerriteViz.jl is a small package to visualize your Ferrite.jl results. Currently all Makie backends are supported and thus, you can visualize your results in a GLMakie window, inside Pluto/Jupyter notebooks via WGLMakie and produce nice vector graphics with CairoMakie.

In the future this package tries to adapt also other plotting packages, such as Plots.jl and PGFPlotsX.jl. Contributions are highly welcome.

Getting Started

Install FerriteViz.jl with the in-built package manager of Julia

pkg> add FerriteViz

Do your computation with Ferrite.jl and save the used DofHandler and solution vector into a variable. Pass those two variables into the FEData constructor

ds = FEData(dh,u)

Besides the dof fields, an FEData carries named point- and cell-data arrays (FerriteViz.set_point_data!, FerriteViz.set_cell_data!); filters read and write them by name, and every plot can be colored by any of them.

Now, you can use solutionplot, meshplot, arrowplot, surfaceplot or the viewer via ferriteviewer — and compose transformations ParaView-style by piping the data through filters:

solutionplot(ds |> WarpByVector(:u, 2.0) |> Gradient(:u) |> VonMises(); color=:vonMises)

Note that the mutating solutionplot!, meshplot!, arrowplot! and surfaceplot! are available as well.

Unique features

This package offers a set of unique features that are not easily reproducible with other export options of Ferrite.jl:

Viewing the docs locally

To view the docs locally use the provided live server:

include("docs/liveserver.jl")

Opening the html files in the browser directly might fail with a CORS error, manifesting itself figures which don't render correctly.