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 = 5.6 m
// Dy = 5.2 m
// Dz = 2.6 m
//
// level0Edge = 20 cm

vertices
(
    (-4.9 -4.4 -2.9)
    ( 0.7 -4.4 -2.9)
    ( 0.7  0.8 -2.9)
    (-4.9  0.8 -2.9)
    (-4.9 -4.4 -0.3)
    ( 0.7 -4.4 -0.3)
    ( 0.7  0.8 -0.3)
    (-4.9  0.8 -0.3)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (28 26 13) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
);

Run blockMesh:

# blockMesh

francis turbine drafttube blockmesh geometry openfoam

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