On 3/2/21 3:32 PM, Naren Vohra wrote:
I computed the two velocity components u, v as different scalars using different dof handlers but I want to view them as a vector (u,v) when I output my result. I'm not sure if I can use DataComponentInterpretation for this.

Right now I pass them individually to the DataOut object but then I don't know how to view them as a vector.

You can do this in visit/paraview by defining a new "variable" that is vector-valued and whose components are computed from the variables you have.

If your two DoFHandler objects are based on the same triangulation, you can also combine things into one DoFHandler. Take a look at step-31 to see how to do that.

Best
 W.


--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/d6db7146-1397-ddf5-0838-619053b4d1bd%40colostate.edu.

Reply via email to