Skip to content

Feature request: VTK import #15

Description

@tirons

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

Activity

  1. acroucher commented on Mar 26, 2018

    @acroucher
    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.

  2. tirons commented on Apr 5, 2018

    @tirons
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions