toughio
toughio copied to clipboard
How can i create a VORONOI MESH and visualise it in TOUGHIO?
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
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
Here is another python module to work with Voronoi meshes and TOUGH: https://github.com/jtecklenburg/voromesh