What's the best way to read in many fields from a VTU file?
Asked by
Patrick Farrell
Hi,
Suppose I have P1 scalar fields stored in a VTU file, and I'd like to read these in to DOLFIN to do some computations.
I can do something like the following (and I am):
class MyField(
def eval(self, values, x):
... do some VTK magic to interpolate the value of the VTU at the point x
but this is extremely slow.
What's the recommended way to read in a mesh and P1 fields from a VTU file?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Patrick Farrell
- Solved:
- Last query:
- Last reply:
To post a message you must log in.