I have a model where I'm using the
boundary_id to specify boundary regions where certain boundary conditions apply, and I'd like to add the boundary_id numbers to the output, so I can see them spatially in Paraview along with my solution output.
I'm currently trying to use a DataOutFaces object along with a class derived from DataPostprocessor to get these values and output them to .vtu files. I'm having trouble debugging it, and I was curious whether there is a simpler way to output data that are defined for an entire cell or face.
Along with that, it would also be helpful to be able to output some global scalar data (e.g. simulation time) into the output files. If there's an easy way to to that, I'd appreciate it as well. In my current approach, I'm just going to set a variable named "time" to the appropriate value for all DoFs, but it seems like an inefficient way to do it.
Thanks,
Jonathan