Example project, cases and tests for classy_blocks.
- Prerequisites
- OpenFOAM (just about any version)
- python3
pip install numpy scipy jinja2
- Fetch classy_blocks in one of the following ways:
- As a git submodule:
git submodule add git@github.com:damogranlabs/classy_blocks.git
- Just download the code as a
.zip
file and extract it to your project
- As a git submodule:
- Run
run.py
- Open
case/case.foam
with ParaView to inspect the mesh.
These are some screenshots of parametric models, built with classy_blocks.
Rectangular ducts (Extrude and Revolve Operations)
3D pipes with twists and turns (Elbow and Cylinder Shapes)
A single channel of an impeller, without volute and with infinitely thin blades:
2D mesh for studying Karman Vortex Street
Helmholtz nozzle, a resonator with sharp edges. See this sketch.
A full volute and suction pipe (impeller mesh is created separately). This has a sharp cutwater that causes a little unphysical overlap but numerically it is just fine and also quite accurate.
A real-life square volute with a blunt cutwater:
Edges and faces, projected to an STL surface
Mesh for studying flow around a sphere, with projected edges and faces
A parametric, Low-Re mesh of a real-life impeller (not included in examples):