optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
116 stars 34 forks source link

IO/VTK: add support for second-order tensor fields #407

Closed andrea-iob closed 11 months ago

andrea-iob commented 11 months ago

Second-order tensors should be passed to the VTK classes as 9-component vectors. It's up to the user of the VTK classes to specify how the tensors are linearized (e.g., row-major order).