2 2

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

Background Mesh - Rotor Region

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

Dictionary for blockMesh utility have to be placed in constant/polyMesh/ directory. The blockMeshDict file is already created:

 

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

convertToMeters 1;

// Dx = 1.2 m
// Dy = 1.2 m
// Dz = 0.8 m
//
// level0Edge = 20 cm

vertices
(
    (-0.6 -0.6 -0.5)
    ( 0.6 -0.6 -0.5)
    ( 0.6  0.6 -0.5)
    (-0.6  0.6 -0.5)
    (-0.6 -0.6  0.3)
    ( 0.6 -0.6  0.3)
    ( 0.6  0.6  0.3)
    (-0.6  0.6  0.3)
);

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

edges
(
);

boundary
(
);

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

Run blockMesh:

# blockMesh

Background mesh is very simple initial mesh used as an input for snappyHexMesh utility. You can view it in paraview:

# paraFoam

francis turbine cfd openfoam drafttube rotor mesh

Figure: Rotor part defined by *.stl files and surrounding background mesh.