Thursday, September 19, 2019

Why do we need Prism Mesh in Boundary Layer?

Let us consider a cell-centered unstructured finite-volume CFD solver. In the core of simulation domain, away from wall boundaries, we can use hex, tet, or poly cells.


Why can't we use the same type of cells in boundary layer? In the core of simulation domain, gradients are mild or negligible. But in boundary layer close to a wall boundary, solution gradients are extremely high normal to the wall but almost negligible along directions parallel to the wall. To resolve these highly anisotropic gradients we have two options to choose from:
  1. either use isotropic cells (similar cell size in all directions) with cell length scale based on the requirements of resolving wall normal gradient,
  2. or use highly stretched anisotropic cells with small length scale (based on the requirements of resolving wall normal gradient) in wall normal direction and much larger length scale in other directions.
Option #1 leads to a much larger number of cells compared to option #2. These extra cells, however, unnecessarily add to computational cost without improving accuracy in a noticeable way. That's why option #2 is preferred.

Can we use highly anisotropic hex, tet, or poly cells? Anisotropic tets and polys can have very bad skewness and non-orthogonality and solver has difficulty in handling them. (What do skewness & non-orthogonality mean and how is solver affected by them? We will leave that for a later post.) Anisotropic hexes, however, do not have the same problem. They can be highly squished along just one direction while maintaining zero skewness and full orthogonality. So
  • if the core mesh is hex, we use quad prims (stretched hexes - with quad bases) in boundary layer,
  • if the core mesh is tet, we use tri prisms (tri bases) in boundary layer, and
  • if the core mesh is poly, we use poly prisms (poly bases) in boundary layer.

Sunday, September 15, 2019

Brushy Creek Regional Trail

The full Brushy Creek Regional Trail (Cedar Park, TX) is around 10 miles long (one-way). Part of this trail extending from Brushy Creek Lake Park to Twin Lakes YMCA is around 6 miles round trip.


We cover parts of this trail often but today morning we did the whole 6 miles round trip. At a brisk pace it took us around 2 hours. This is a nice well-maintained concrete trail. Only the section near Brushy Creek Lake Park is paved. There are a lot of people walking up and down the trail over weekend mornings. Bikers share the same trail although there are several offroad shoots as well. The trail is mostly surrounded by trees on both sides. So even on a hot day you don't feel burnt down. The section close to Brushy Creek Lake Park, however, is directly exposed to the sun and can be difficult to walk after early mornings. Here are some photos from today's walk.







And here is a small video with soothing sound of flowing creek.