How to visualize/save a vector field in a particular case?

You Need to use XDMFFile to visualize DG 0 quantities.

For higher order Lagrange and DG spaces (order>1) you should use VTXWriter.

For first order (continuous) Lagrange spaces you can use any of the formats

1 Like