Skip to main content

Voronoi mesh generator for MODFLOW6 Disv models

Project description

mf6Voronoi

The friendly way to create awesome Voronoi meshes for MODFLOW6 DISV

flopy3

Introduction

Groundwater modeling with several boundary conditions and complex hydrogeological setups require advance tools for mesh discretizacion that ensures adequate refinement on the zone of interest while preserving a minimal cell account. Type of mesh has to be engineered in a way to preserve computational resources and represent adequately the groundwater flow regime.

Package

This python package creates a Voronoi mesh for MODFLOW6 with the DISV (discretized by vertices) option. The package work with geospatial files and has options for selective refinement based on the boundary condition.

These are the main python package characteristics:

  • Works with geospatial files on ESRI Shapefile format
  • Progressive refinement can be modified with a multiplier
  • Summary of the point cloud generated for the Voronoi meshing
  • Tested on more than 5 groundwater model datasets
  • Output as polygon ESRI Shapefile
  • Few steps and arguments for mesh generation

Requirements

There are few requirements for the package. The most important one is that all the input files has to be in the same system of reference (CRS) and the CRS length unit has to be in meters or feet.

Example

The package has been designed with a simple and user friendly approach allowing to create awesome meshes on a short amount of steps.

# Import the mf6Voronoi package
from mf6Voronoi.geoVoronoi import createVoronoi

# Create mesh object specifying the coarse mesh and the multiplier
vorMesh = createVoronoi(meshName='regionalModel',maxRef = 200, multiplier=1.5)

# Open limit layers and refinement definition layers
vorMesh.addLimit('basin','../../examples/regionalModel/shp/Angascancha_Basin_Extension.shp')
vorMesh.addLayer('river','../../examples/regionalModel/shp/rios.shp',50)

# Generate point pair array
vorMesh.generateOrgDistVertices()

# Generate the point cloud and voronoi
vorMesh.createPointCloud()
vorMesh.generateVoronoi()

# Export generated voronoi mesh
vorMesh.getVoronoiAsShp(outputPath='output')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mf6voronoi-0.0.3.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mf6Voronoi-0.0.3-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file mf6voronoi-0.0.3.tar.gz.

File metadata

  • Download URL: mf6voronoi-0.0.3.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for mf6voronoi-0.0.3.tar.gz
Algorithm Hash digest
SHA256 67f13ae8de39fca78fd7626fdb03491c2959c288278b093002ef1df08531df0c
MD5 eec36fc9d950cb130e110306aff346bd
BLAKE2b-256 1deb5b84315e67a4649ec582e7649322547f5e428c053afd49f082e21a80e4b7

See more details on using hashes here.

File details

Details for the file mf6Voronoi-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mf6Voronoi-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for mf6Voronoi-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 18fa8b67452e3a93907e3b1ccf72a09590a0bd10da4ba50896edde510e1f40ab
MD5 c870dd4278090f6465389ce7891d78bc
BLAKE2b-256 084684200f3ea59b88d7925cc9d67b8aace308c0c353078103de5fceb5a0c542

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page