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

VTM hierarchy #25

Open
konokadam opened this issue Aug 2, 2019 · 1 comment
Open

VTM hierarchy #25

konokadam opened this issue Aug 2, 2019 · 1 comment
Assignees

Comments

@konokadam
Copy link

Hi,

firstly, thank you for this great Fortran lib.
I think the main advantage of the multiblock data set of VTK among others (ie. Tecplot) is that you can freely group the parts (datasets) and assemblies (blocks) just like CAD program hierarchy. For example:
Block Index = 0
DataSet Index = 0
Dataset Index = 1
Block Index = 2
Dataset Index = 0
Dataset Index = 1
EndBlock
DataSet Index = 3
Block Index = 4
Block Index = 0
DataSet Index = 0
EndBlock
Block Index = 1
DataSet Index = 0
DataSet Index = 1
DataSet Index = 2
EndBlock
EndBlock
EndBlock

Current structure of your vtm writer does not allow this type of grouping. Will the lib support this hierarchy type of multiblock dataset?

I could achieve this by making some little changes and additions in vtk_fortran_vtm_file module. I moved vtm related functions from xml_write type and module to vtm_file type and module. And also added blocks(:) (of type including hierarchy level and index parameters) array (to get the parent block no), index (instead of vtm_block) etc. in vtm_file type. I added some coding in some functions such as parent search loop in write_parallel_open_block and write_parallel_block_files.. and index change lines.
Of course providing the block and dataset hierarchy should be the responsibility of the user. So, I think the user can achieve to write according to the hierarcy by using not ..%write_block but using..%write_parallel_open_block , ..%write_parallel_block_files.., %write_parallel_close_block functions by him/herself.

Regard,
Emrah

@szaghi
Copy link
Owner

szaghi commented Aug 3, 2019

Hi, thank you very much for your feedback. Currently I am out of my office for my holiday, I will back at the of August, as soon as possible I will keep this issue on.

Cheers

@szaghi szaghi self-assigned this Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants