2 2

Next: Model setting without an Up: Alternative formulation Previous: Alternative formulation   Contents   Index

Background Mesh - Draft Tube Region

Background mesh is basic (initial) mesh to be refined. All the surface model must be placed inside the background mesh. It is created using blockMesh utility. The background mesh is simple block a bit larger than bounding box of the surface model. Alternatively, the background mesh can be used to create inlet or outlet of the final mesh (not this case).

Example of blockMeshDict file:

 

FoamFile
{
    version     2.2;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

// Dx = 40 m
// Dy = 10 m
// Dz = 15 m
//
// level0Edge = 1 m

vertices
(
    (-5 -5 -10)
    (35 -5 -10)
    (35  5 -10)
    (-5  5 -10)
    (-5 -5   5)
    (35 -5   5)
    (35  5   5)
    (-5  5   5)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (40 10 15) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
);

// ************************************************************************* //

Run blockMesh:

# blockMesh

kaplan turbine cfd openfoam blockmesh drafttube 1

Figure: Kaplan turbine drafttube region defined by *.stl files and surrounding background mesh.