← Tutorials

External aerodynamics: the Ahmed body

An unnamed STL becomes named faces, a refinement box covers the wake, and the mesh is checked on cutting planes.

Model
ahmed_body.stl, 15,152 triangles, metres
Download ahmed_body.stl (zip, 135 KB)
Cells
191,670
Hexahedra
67.1 %
Max non-ortho
45.5°
Mesh time
4.5 s
  1. Open the model

    Click Ahmed body under Or start from a sample, or drop your own STL on the window. The surface is checked and repaired on load. This one is closed and clean, so the Geometry step reports no defects. Units are read as metres; change them in Geometry if your file is in millimetres.

    The empty start screen with the sample models
    The empty start screen with the sample models
  2. Name the faces

    The STL has no face names, so Mesh splits the surface at sharp edges and numbers the faces largest area first: face_1 is the body, face_3 to face_6 are the four stilts.

    In Faces, double-click face_1 and type body. Give two faces the same name to merge them into one boundary. Each face has a boundary type (Wall, Opening or Symmetry) and its own refinement level. The eye icon hides a face in the view.

    Face list with face_1 renamed to body
    Face list with face_1 renamed to body
  3. Set the cell sizes

    In Sizing, set Wall cell size to 0.015 and Cell budget to 1500000. The wall size sets how many times the block grid is halved towards the surface; the budget is the most cells the mesher may make.

  4. Refine the wake

    In Refine, click + Box and set Level to 3. Drag the box behind the body with the 3D handles, or type its centre and size. The panel shows the cell size inside the box (0.0326 m here). Spheres and cylinders work the same way.

    A level 3 refinement box placed in the wake of the body
    A level 3 refinement box placed in the wake of the body
  5. Generate

    Leave Domain on Bounding box, which sizes the fluid region around the model, and click Generate mesh. The mesher builds a block grid of hex cells, refines it towards the walls and the box, then cuts the cells at the surface. This run made 191,670 cells, 67.1 % of them hexahedra, in 4.5 s.

    The finished mesh with the result table
    The finished mesh with the result table
  6. Look inside

    Turn on the Y plane and Z plane chips under the view and drag their sliders. Whole cells are cut away on one side of each plane, so you see the refinement steps as they are. Switch the legend from Level to Non-ortho to colour each cell by its worst face.

    Cut cells on two planes coloured by non-orthogonality
    Cut cells on two planes coloured by non-orthogonality
  7. Check the quality

    Quality lists every check with its value and limit. Faces beyond a limit are repaired while meshing, so the panel should showAll checks pass. Here the worst non-orthogonality is 45.5° against a limit of 60°. See Quality and export for what each line means.

    Quality table with every check passing
    Quality table with every check passing
  8. Export

    In Export, pick the volume mesh format your solver reads: a solver case folder or a VTK unstructured grid (.vtu). The surface can also go out as STL with named faces (m) or 3MF for 3D printing (mm). Quality and export lists what each format holds.