Orfi / classy_examples

Example cases for classy_blocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

classy_examples

Example project, cases and tests for classy_blocks.

Usage

Installation

  1. Prerequisites
    1. OpenFOAM (just about any version)
    2. python3
    3. pip install numpy scipy jinja2
  2. Fetch classy_blocks in one of the following ways:
    1. As a git submodule: git submodule add git@github.com:damogranlabs/classy_blocks.git
    2. Just download the code as a .zip file and extract it to your project
  3. Run run.py
  4. Open case/case.foam with ParaView to inspect the mesh.

Showcase

These are some screenshots of parametric models, built with classy_blocks.

Rectangular ducts (Extrude and Revolve Operations) Ducts

3D pipes with twists and turns (Elbow and Cylinder Shapes) Piping

A single channel of an impeller, without volute and with infinitely thin blades: Impeller

2D mesh for studying Karman Vortex Street Karman Vortex Street

Helmholtz nozzle, a resonator with sharp edges. See this sketch.

Helmholtz nozzle

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. Volute

A real-life square volute with a blunt cutwater: Square Volute

Edges and faces, projected to an STL surface Projected

Mesh for studying flow around a sphere, with projected edges and faces Sphere

A parametric, Low-Re mesh of a real-life impeller (not included in examples): Impeller - Low Re

About

Example cases for classy_blocks

License:MIT License


Languages

Language:Python 85.0%Language:C++ 14.3%Language:Shell 0.8%