Name | mf6Voronoi JSON |
Version |
0.0.4
JSON |
| download |
home_page | None |
Summary | Voronoi mesh generator for MODFLOW6 Disv models |
upload_time | 2025-01-14 22:41:05 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | CC0 |
keywords |
modflow
groundwater
hydrogeology
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
mf6Voronoi
==========================
_The friendly way to create awesome Voronoi meshes for MODFLOW6 DISV_
<img src="https://raw.githubusercontent.com/hatarilabs/mf6Voronoi/refs/heads/main/examples/figures/voronoiMeshinModflow6Disv.png" alt="flopy3" style="width:50;height:20">
## 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')
```
Raw data
{
"_id": null,
"home_page": null,
"name": "mf6Voronoi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "MODFLOW, groundwater, hydrogeology",
"author": null,
"author_email": "Saul Montoya <saulmontoya@hatarilabs.com>",
"download_url": "https://files.pythonhosted.org/packages/73/fc/8ee844540749696382b9f4f47665f10e8d7381dddfebdbfd96e7c094ad14/mf6voronoi-0.0.4.tar.gz",
"platform": null,
"description": "mf6Voronoi\n==========================\n_The friendly way to create awesome Voronoi meshes for MODFLOW6 DISV_\n\n<img src=\"https://raw.githubusercontent.com/hatarilabs/mf6Voronoi/refs/heads/main/examples/figures/voronoiMeshinModflow6Disv.png\" alt=\"flopy3\" style=\"width:50;height:20\">\n\n\n## Introduction\nGroundwater 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. \n\n## Package\nThis 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.\n\nThese are the main python package characteristics:\n- Works with geospatial files on ESRI Shapefile format\n- Progressive refinement can be modified with a multiplier\n- Summary of the point cloud generated for the Voronoi meshing\n- Tested on more than 5 groundwater model datasets\n- Output as polygon ESRI Shapefile\n- Few steps and arguments for mesh generation\n\n## Requirements\nThere 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.\n\n## Example\n\nThe package has been designed with a simple and user friendly approach allowing to create awesome meshes on a short amount of steps.\n\n\n```\n# Import the mf6Voronoi package\nfrom mf6Voronoi.geoVoronoi import createVoronoi\n\n# Create mesh object specifying the coarse mesh and the multiplier\nvorMesh = createVoronoi(meshName='regionalModel',maxRef = 200, multiplier=1.5)\n\n# Open limit layers and refinement definition layers\nvorMesh.addLimit('basin','../../examples/regionalModel/shp/Angascancha_Basin_Extension.shp')\nvorMesh.addLayer('river','../../examples/regionalModel/shp/rios.shp',50)\n\n# Generate point pair array\nvorMesh.generateOrgDistVertices()\n\n# Generate the point cloud and voronoi\nvorMesh.createPointCloud()\nvorMesh.generateVoronoi()\n\n# Export generated voronoi mesh\nvorMesh.getVoronoiAsShp(outputPath='output')\n```\n",
"bugtrack_url": null,
"license": "CC0",
"summary": "Voronoi mesh generator for MODFLOW6 Disv models",
"version": "0.0.4",
"project_urls": null,
"split_keywords": [
"modflow",
" groundwater",
" hydrogeology"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "57f1d80e0e0c210e4d387c1c90057fd2bfc169d813f512c277fd2cefd68a6758",
"md5": "b288517c3879c9c59987a690526d0f65",
"sha256": "f1fe89af992e087e4096e627a5fbcaddb882bf62d061ed1a4905551542ab16d8"
},
"downloads": -1,
"filename": "mf6Voronoi-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b288517c3879c9c59987a690526d0f65",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 16558,
"upload_time": "2025-01-14T22:41:03",
"upload_time_iso_8601": "2025-01-14T22:41:03.991402Z",
"url": "https://files.pythonhosted.org/packages/57/f1/d80e0e0c210e4d387c1c90057fd2bfc169d813f512c277fd2cefd68a6758/mf6Voronoi-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "73fc8ee844540749696382b9f4f47665f10e8d7381dddfebdbfd96e7c094ad14",
"md5": "2e6338ede6acb809f7f15ef663b4efaa",
"sha256": "fd6c2efd4a26cdd4a83b2549b6af80b90a6e4aa5c74807ed96491d44e362c612"
},
"downloads": -1,
"filename": "mf6voronoi-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "2e6338ede6acb809f7f15ef663b4efaa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 16670,
"upload_time": "2025-01-14T22:41:05",
"upload_time_iso_8601": "2025-01-14T22:41:05.138341Z",
"url": "https://files.pythonhosted.org/packages/73/fc/8ee844540749696382b9f4f47665f10e8d7381dddfebdbfd96e7c094ad14/mf6voronoi-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-14 22:41:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mf6voronoi"
}