Skip to content

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