2 2

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

Background Mesh - Stator Region

Background mesh is a very simple initial mesh. It serves as an input for snappyHexMesh utility. It is a basic (initial) mesh to be refined. All the surface model must be placed inside the background mesh. Usually, background mesh is a 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 (this case).

It is created using blockMesh utility.

Example of blockMeshDict file:

convertToMeters 1;

x1      -85;
x2      76;
y1      -66.3;
y2      75;
z1      203;
z2      282;

    ($x2  $y1  $z1)
    ($x2  $y2  $z1)
    ($x1  $y2  $z1)
    ($x1  $y1  $z1)
    ($x2  $y1  $z2)
    ($x2  $y2  $z2)
    ($x1  $y2  $z2)
    ($x1  $y1  $z2)

    hex (0 1 2 3 4 5 6 7) (40 41 20) simpleGrading (1 1 1)

Run blockMesh:

1 3 blockMesh

You can view the outcome in paraview:

1 3 paraFoam

backGroundMeshCompressor 1

Figure: Background mesh, compressor housing.