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

pvtu (unstructured) #32

Open
AliE89 opened this issue Nov 25, 2020 · 4 comments
Open

pvtu (unstructured) #32

AliE89 opened this issue Nov 25, 2020 · 4 comments
Assignees
Labels

Comments

@AliE89
Copy link

AliE89 commented Nov 25, 2020

Ciao Stefano,

Do you have an example to write pvtu?

I can only find pvts in the examples and the source file seems to include pvts only.

Thanks!

@AliE89
Copy link
Author

AliE89 commented Nov 25, 2020

Ok, sorry I have misunderstood the usage. It works for pvtu. Here what I have done, it can be usefull to other users as well:

		ierr = pvtk_field_file%initialize(filename='postProc/VTKfields/Parallel/mesh.pvtu', &
				                          mesh_topology='PUnstructuredGrid', mesh_kind="Float64")

		ierr = pvtk_field_file%xml_writer%write_dataarray(location='cell', action='open')

		!error = pvtk_field_file%xml_writer%write_parallel_dataarray(data_name='int32_scalar', &
		!		data_type='Int32', &
		!		number_of_components=1)

		ierr = pvtk_field_file%xml_writer%write_dataarray(location='cell', action='close')

		ierr = pvtk_field_file%xml_writer%write_parallel_geo(source="./file1.vtu")
		ierr = pvtk_field_file%xml_writer%write_parallel_geo(source="./file2.vtu")

		ierr = pvtk_field_file%finalize()

@szaghi
Copy link
Owner

szaghi commented Mar 12, 2021

@AliE89

I am sorry for my delay.

Have you solved it? I have to improve examples and docs, my bad.

@szaghi szaghi self-assigned this Mar 12, 2021
@AliE89
Copy link
Author

AliE89 commented Mar 12, 2021 via email

@szaghi
Copy link
Owner

szaghi commented Mar 12, 2021

@AliE89

I am still a bit puzzled on polyheadral cells, any suggestion?

Indeed, nope because I have never used poly output. I'll try to figure out how complicated is to support it (I guess not so complicated), but I cannot plan a timeline right now, I am really too much busy with my official work.

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

No branches or pull requests

2 participants