Skip to main content

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')

Metadata

Release files for mf6Voronoi 0.0.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mf6Voronoi 0.0.24
File Size Uploaded Provenance Actions
mf6voronoi-0.0.24.tar.gz 28.0 kB Without provenance Details for mf6voronoi-0.0.24.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mf6Voronoi 0.0.24
File Interpreter ABI Platform Actions
mf6voronoi-0.0.24-py3-none-any.whl Python 3 none any Details for mf6voronoi-0.0.24-py3-none-any.whl

Total release size: 61.3 kB

Release files / mf6voronoi-0.0.24.tar.gz

Download URL mf6voronoi-0.0.24.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5819fd561baa95b3d8283b3c9bab452683ff39eb166c0702fc3e896e90c06d79
BLAKE2b-256 checksum
How to use checksums
b5c002cea1c73f6d781d0b2294c94b5a853218d8a885cd87df60728f143ba26b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / mf6voronoi-0.0.24-py3-none-any.whl

Download URL mf6voronoi-0.0.24-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d3a2ef33a28d311cd80cee05a1b2109a850e39417a04ab968d8955b035f4e4f
BLAKE2b-256 checksum
How to use checksums
a96b87e982234562df2bede36ac4f886157a250040fba6f1ad2a138ad39215de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for mf6Voronoi 0.0.24

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.24 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page