2 2

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

Background Mesh - Stator Region

Background mesh is basic (initial) mesh to be refined. All the surface model must be placed inside the background mesh 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:

 

convertToMeters 1;

vertices
(
    (-0.3 -0.3 -0.1)
    ( 0.3 -0.3 -0.1)
    ( 0.3  0.4 -0.1)
    (-0.3  0.4 -0.1)
    (-0.3 -0.3  0.2)
    ( 0.3 -0.3  0.2)
    ( 0.3  0.4  0.2)
    (-0.3  0.4  0.2)
);

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

edges
(
);

boundary
(
);

Run blockMesh:

pump cfd openfoam spiral blockmesh background mesh 36

Figure: Spiral region defined by *.stl files and surrounding background mesh.