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 advanced tools for mesh discretizacion that ensures adequate refinement in 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.37.tar.gz (37.9 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.37-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mf6voronoi-0.0.37.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mf6voronoi-0.0.37.tar.gz
Algorithm Hash digest
SHA256 7d15c3abb399e0f25b2aefc6e8873e610ddad5b893604da8d0dca2137be361ee
MD5 228d0b2d55b0acbf63ef1a03afeaea27
BLAKE2b-256 6e513b27d994f8fdf229202454f81aa6b979616c96b4d01895ce9e8f6aa7513a

See more details on using hashes here.

File details

Details for the file mf6voronoi-0.0.37-py3-none-any.whl.

File metadata

  • Download URL: mf6voronoi-0.0.37-py3-none-any.whl
  • Upload date:
  • Size: 48.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mf6voronoi-0.0.37-py3-none-any.whl
Algorithm Hash digest
SHA256 53a55eabe43542c2a15262ec5022fc5b38c5dd45c8ea61a3f644e6a271891587
MD5 7e2c77a0aab0488f95d9dfed0f819ddc
BLAKE2b-256 3b5f3b46f1e7b7eda97445b8e09a5fe1425961d3a6e4fb0b721efcc899a5036f

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