Scripts/blockMesh grading calculation

From OpenFOAMWiki


The purpose of this script is to calculate the grading factor as described in the user guide.

  • Three of the 6 values can be specified. The other 3 values are calculated from them. Specify the input values with the three drop-down buttons.
  • Not all combinations of input values are valid (for instance: there has to be at least one length specified to calculate the others)


Total length
Number of cells
Total expansion ratio
Cell-to-cell expansion ratio
Width of start cell
Width of end cell

The idea for this calculator comes from this thread on the MessageBoard. The sources used to be on BitBucket but a copy can now be found on GitLab