toughio icon indicating copy to clipboard operation
toughio copied to clipboard

How can i create a VORONOI MESH and visualise it in TOUGHIO?

Open tjuCJC opened this issue 1 year ago • 2 comments

I need to calculate a slope model, so I need to create a voronoi mesh like that. how can i make a voronoi mesh, and use it in the TOUGHIO. Picture shown below is a sample that i want to achieve image

tjuCJC avatar Jul 18 '23 16:07 tjuCJC

Here [1] I saw a tool [2] to create voronoi meshes for TOUGH. This tool can write VTU-files. You can create a TOUGH mesh, export the mesh as a VTU and run your simulations. Then you can use TOUGHIO to read the results and attach the results to the VTU files. Read the VTU with pyvista. Warning: When you are simulating with more than one core, the order of elements in the TOUGH results can be different to the order in the VTU mesh.

[1] https://tough.lbl.gov/pre-and-post-processors/ [2] https://site.unibo.it/softwaredicam/en/software/voro2mesh-and-tough2viewer-for-unstructured-voronoi-modflow-grids-1

jtecklenburg avatar Aug 22 '23 08:08 jtecklenburg

Here is another python module to work with Voronoi meshes and TOUGH: https://github.com/jtecklenburg/voromesh

jtecklenburg avatar Dec 05 '23 08:12 jtecklenburg