vector field output in .xml format

Asked by Tom Burghardt

I want to do an advection-diffusion simulation using a vector velocity field from a navier-stokes simulation. Mesh and velocity input to dolfin is with xml format. The navier-stokes simulation outputs the vector field in VTK format (*.vtu) for viewing. How do I convert the VTK to xml format so I can use the vector field from the navier-stokes simulation in the advection-diffusion simulation?
Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Garth Wells (garth-wells) said :
#1

The .vtu files are for visualisation. DOLFIN does not support reading .vtu files, and in many cases .vtu files 'throw away' data.

Save the result of the NS velocity field as an .xml file (by saving the vector, e.g., file << u.vector())

Can you help with this problem?

Provide an answer of your own, or ask Tom Burghardt for more information if necessary.

To post a message you must log in.