plotting scalar field and deformed mesh
I'm solving a nonlinear elasticity problem. I would like to plot the deformed shape (with mesh) but with coloring given by the elastic energy density. I'm able to do these individually, that is, I can plot the deformed configuration with mesh easily (I save the deformations as a .pvd file, and then use paraview to "warp by vector"), and I can easily save the elastic energy density field and plot that but in the *undeformed* configuration.
I don't know how to do this and would appreciate any help.
- write both field into the same .xdmf file (i.e. do not ues .pvd files)
- write two different .pvd files and "join" them inside Paraview using AppendAttributes
You can combine fields from different .pvd files in Paraview with the "Append Attributes" filter. If you open all of the relevant .pvd files, select them all in the pipeline browser, then apply Append Attributes, which can be found through the Filters menu.