Create various tutorials of a meshed cavity geometry for OpenFoam

Part 1:

OpenFoam codestream Challenge using pointField.H.

Start with [tut] and then [grep -r “pointField.H”] to find the distributed tutorial that uses pointField.H:

The challenge is to use codestream and pointField.H to grow points in the z direction. By doing so, a cavity will be produced with a moving top, three fixed walls, and a front and back that is empty. So, you only have to specify 1/2 of total points. This will help one understand one area of codestream, and block and boundary creation.
First, try on your own if you have some experience with blockMesh:
Tutorial:

Part 2:

OpenFoam two point growth using codestream and pointField.H.

The challenge is to use codestream and pointField.H to create a cavity with moving lid, 3 fixed walls, and 2 empty faces for 2-D simulation. Specify two points, grow them in the +y direction by 1, and then grow all accumulated points in the z direction by 0.1. <convertToMeters 1>.

Tutorial:

Part 3:

Challenge:

Use codestream and pointField.H to create a 2 block cavity, with a moving wall that is meshed correctly, and only specify 1/4 of total points.

Start from 3 points and produce a meshed geometry that has 12 points. This type of work has helped me understand boundary face creation and hex block creation.

Tutorial:

Part 4:

Challenge:

This tutorial uses codestream and pointField.H to specify 1/6th of the total points while creating a 4 block cavity with moving wall, 3 fixed walls, and 2 empty walls.

Since 4 blocks are created, a 4 wall boundary mesh is created by using a nonuniform mesh.

Tutorial:

This Blog is not approved or endorsed by ESI Group or ESI-OpenCFD®, the producer of the OpenFOAM® software and owner of the OpenFOAM® trade mark.

Leave a comment