Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial functionality to write VTK FieldData #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nDimensionalSpace
Copy link

@nDimensionalSpace nDimensionalSpace commented Sep 14, 2021

Currently only works for int and double scalars. Verified to work for the intended use case . . . Screenshot attached. Functionality added to a single test ("single_hex"). Resolves #1 .

Screen Shot 2021-09-14 at 9 01 23 AM

@mmorse1217
Copy link
Owner

It looks like from the vtk documentation that FieldData is essentially arbitrary data that is unrelated to the actual structure stored in the file. I think this means that FieldData can also be arrays as well as single numbers, which I'm not sure that your implementation can handle.

It might be best to reuse the VTKDataNode class again here for FieldData to avoid reinventing the wheel. Is there some functionality that VTKDataNode is missing that we would need?

@nDimensionalSpace
Copy link
Author

Yes, FieldData can contain a data array completely analogous to what, e.g., cell data can contain. Oh, my implementation for sure does not handle it; I didn't bother with that just because I don't have a pragmatic use case for it . . .

I think VTKDataNode will work just swimmingly; will swap it in in the next week or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Addition of FieldData
2 participants