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:

 

convertToMeters 1;

vertices
(
    (-2 -2 -2)
    ( 2 -2 -2)
    ( 2  2 -2)
    (-2  2 -2)
    (-2 -2  2)
    ( 2 -2  2)
    ( 2  2  2)
    (-2  2  2)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (8 8 8) 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

kaplan turbine cfd openfoam blockmesh rotor

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