SkillAgentSearch skills...

Ezmesh

the open source parametric CFD mesh generator

Install / Use

/learn @OpenOrion/Ezmesh
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<h1 align="center">🕸️ ezmesh</h1> <p align="center">the open source parametric CFD mesh generator</p>

Deprecated: Moving all development to MeshQL

About

ezmesh is a declarative tool that parametrically generates meshes compliant with a variety of mesh formats with easy and configurable API on top of GMSH.

Install

Latest

pip install git+https://github.com/OpenOrion/ezmesh.git#egg=ezmesh

Other Versions

# Version 2
pip install git+https://github.com/OpenOrion/ezmesh.git@2.0.0#egg=ezmesh

# Version 1
pip install git+https://github.com/OpenOrion/ezmesh.git@1.0.0#egg=ezmesh

Example

See more examples in examples directory

Inviscid Wedge

from ezmesh import CurveLoop, PlaneSurface, TransfiniteSurfaceField, TransfiniteCurveField, Geometry, visualize_mesh
import numpy as np

with Geometry() as geo:
    wedge_coords = np.array([[0, 1], [1.5, 1], [1.5, 0.2], [0.5, 0], [0, 0]])
    
    wedge_curve_loop = CurveLoop.from_coords(
        wedge_coords, 
        mesh_size = 0.05,
        curve_labels=["upper", "outlet", "lower/1", "lower/2", "inlet"],
        fields=[
           TransfiniteCurveField(node_counts=[150,200,100,50,200])
        ]
    )
    surface = PlaneSurface(
        outlines=[wedge_curve_loop],
        is_quad_mesh=True,
        fields=[
            TransfiniteSurfaceField(corners=[
                *wedge_curve_loop.get_points("upper"), 
                *wedge_curve_loop.get_points("lower")
            ])
        ]
    )
    mesh = geo.generate(surface)
    visualize_mesh(mesh)
    geo.write("mesh_wedge_inv.su2")

Visualize Mesh

from ezmesh import import_from_file
from ezmesh import visualize_mesh
mesh = import_from_file("mesh_wedge_inv.su2")
visualize_mesh(mesh)

Inviscid Wedge

Development Setup

git clone https://github.com/OpenOrion/ezmesh.git
cd ezmesh
pip install -r requirements_dev.txt

Help Wanted

Right now there are some items such as more CFD meshing configurations. Please join the Discord for project communications and collaboration. Please consider donating to the Patreon to support future work on this project.

Related Skills

View on GitHub
GitHub Stars24
CategoryDevelopment
Updated13d ago
Forks5

Languages

Python

Security Score

90/100

Audited on Mar 28, 2026

No findings