{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/8"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/11"},{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"}],"enrichment":{"capability":"pygmsh provides a Python interface to Gmsh, a mesh generation tool, allowing you to define 2D and 3D geometries and generate unstructured meshes from them.","skillfed_tags":["mesh-generation","cad-geometry","scientific-computing"],"use_cases":["Generate finite element meshes for computational fluid dynamics or structural analysis simulations.","Create unstructured meshes for complex 2D or 3D geometries defined programmatically in Python.","Automate mesh generation in parametric design workflows where geometry varies with input parameters.","Refine meshes locally near boundaries or regions of interest using boundary layer and callback functions.","Export geometries to standard mesh formats (VTK, MSH) for visualization or downstream analysis tools."],"what_it_does":"pygmsh is a Python wrapper around Gmsh, a widely-used open-source mesh generator. It abstracts Gmsh's native Python API to make it easier to programmatically define 2D and 3D geometries and generate unstructured meshes. The package supports both simple geometric primitives (polygons, circles, splines) and more complex CAD-style operations via OpenCASCADE (boolean operations, extrusions, revolutions). Generated meshes are returned as meshio objects, which can be written to standard formats like VTK or MSH.\n\nTypical workflows involve defining a geometry within a context manager, optionally configuring mesh refinement or boundary layers, calling generate_mesh(), and then writing or analyzing the result. The package depends on gmsh (the underlying solver), meshio (mesh I/O and representation), and numpy (numerical arrays). It supports Python 3.7 and later and is classified as Production/Stable, though releases have been infrequent since early 2022.","worth_installing":"Yes, with conditions. pygmsh is stable and well-established for mesh generation tasks in scientific computing. Install friction is low and there are no known vulnerabilities. However, maintenance is dormant\u2014the last release was 2022-01-28. Choose this if you need a mature, proven mesh generation interface and can tolerate infrequent updates. The GPLv3+ license requires any derivative work to remain open-source. Verify compatibility with your Gmsh version before committing to production use."},"id":"pygmsh","links":{"html":"https://skillfed.io/packages/pygmsh","md":"https://skillfed.io/packages/pygmsh.md","pypi":"https://pypi.org/project/pygmsh/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-01-28","license_spdx":null,"license_treatment":"copyleft","name":"pygmsh","python_support":"supports_current","summary":"Python frontend for Gmsh"},"popularity":{"monthly_downloads":83378,"position":14078,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"7.1.17"}
