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

Feature request: VTK import #15

Open
tirons opened this issue Mar 15, 2018 · 2 comments
Open

Feature request: VTK import #15

tirons opened this issue Mar 15, 2018 · 2 comments

Comments

@tirons
Copy link

tirons commented Mar 15, 2018

It does not appear that PyTOUGH has an import VTK feature? I am wondering how difficult that would be? I am willing to contribute.

I have VTK files (vts) which I have converted from PETREL GRDECL meshes. I want to close the loop and get them into TOUGH2/REACT for simulation.

Cheers

@acroucher
Copy link
Owner

You mean import from VTK to t2grid? That should be possible. Off the top of my head, I think it would involve:

  • constructing block names in some sensible way
  • calculating the block volumes and centroids, and connection areas and distances
  • assigning rock types? not sure if you have any rock data in your VTK- could just leave this out and assign a default rock type everywhere
  • assign default PARAM data

Implementation-wise, one question would be whether to use the VTK Python bindings or an alternative like meshio, to read the VTK mesh into Python. VTK may have geometric functions included for computing block volumes etc.? On the other hand, meshio is often more portable and less problematic than VTK.

@tirons
Copy link
Author

tirons commented Apr 5, 2018 via email

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

No branches or pull requests

2 participants