Ezmesh
the open source parametric CFD mesh generator
Install / Use
/learn @OpenOrion/EzmeshREADME
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)

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
node-connect
354.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
