Skip to content

Writing N-dim vector_field to vtk file #270

Description

@gnikit

Hi,
I have been working on some complex problems with adaptivity and neutronics (using fetch2 which is built on fluidity) and while trying to visualise some arrays I came across a limitation of vector_fields which does not allow for the output of vector field if the dimension is > 3.
Which had me wondering if it would be possible to write a n-dimensional vector_field to a vtk file.

I have had a look at the VTK_Interfaces.F90 file and although the remap_field method will be a bit of an issue, the real problem is vtkwritefvn/ vtkwritedvn. From what I gather these are defined in vtkfortran.cpp and they take as arguments explicit pointers to x,y,z entries of the vector_field.
I think what I am suggesting is possible with some minor changes/ overloading, e.g. SetTuple3 will have to be changed to SetTuple and so will *vx, *vy, *vz to **v.

Do you think this is something that could go in master, because currently I am using an array of scalar fields to output my n x no_nodes vector and it is an absolute nightmare to post-process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions