OpenFOAM Tutorial #2 - blockMeshDict

The blockMeshDict of the icoFoam cavity example is explained-
How to create
- vertices
- blocks ( creating Hex , discretization and simpleGrading)
- edges
- patches (patch, wall, empty, symmetryPlane)

The link below takes you to the documentation shown in the video
http://www.openfoam.com/docs/user/blockMesh.php



This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM®  and OpenCFD®  trade marks.
Keywords: openfoam tutorial cfd cae mesh generation blockMeshDict mechanics computational fluid dynamics

4comments :

  1. How come there is no blockMeshDict file in many other examples (elbow, for example -tutorials/incompressible/icoFoam/elbow). Is this file missing from my OpenFoam installation or am i supposed to write this file myself as a newbie trying to run a tutorial?

    ReplyDelete
    Replies
    1. Hi Robert,
      Sometimes in OpenFoam tutorials, the mesh is provided in some other format and not created using blockMeshDict. In this particular elbow case, a Fluent mesh is imported. If you look at the Allrun script (one folder up), you will see this "runFluentMeshToFoam elbow elbow/elbow.msh", which converts the fluent mesh to OpenFoam mesh.

      Delete
  2. If we enter dimensions in cm, shouldn't the conversion factor, i.e. convertToMeters, be equal to 0.01?

    ReplyDelete
  3. I want to convert a 2D case to 3D case.Can you help me what are the changes that I should rectify in blockMeshDict File.

    convertToMeters 0.001;
    vertices
    ( (-10 0 0)
    (0 0 0)
    (10 0 0)
    (10 30 0)
    (0 30 0)
    (-10 30 0)
    (-10 0 0.000001)
    (0 0 0.000001)
    (10 0 0.000001)
    (10 30 0.000001)
    (0 30 0.000001)
    (-10 30 0.000001)
    );
    blocks
    (
    hex (1 4 5 0 7 10 11 6) (45 15 1) edgeGrading (1 1 1)
    hex (2 3 4 1 8 9 10 7) (45 15 1) edgeGrading (1 1 1)
    );
    edges
    (
    );
    patches
    (
    wall wallLeft
    (
    (0 5 11 6)
    )
    wall wallRight
    (
    (8 9 3 2)
    )
    wall wallBottom
    (
    (1 0 6 7)
    (2 1 7 8)
    )
    patch atmosphere
    (
    (4 10 11 5)
    (3 9 10 4)
    )
    empty frontAndBack
    (
    (1 4 5 0)
    (7 10 11 6)
    (1 2 3 4)
    (7 8 9 10)
    )
    );
    mergePatchPairs
    (
    );

    ReplyDelete