Skip to content

Incorrect description of tutorial for project function in blockMeshDict

Summary

Location openfoam/tutorials/mesh/blockMesh/sphere/system/blockMeshDict

The description of blockMeshDict at the above location is incorrect.

L38: vo #eval{ sqrt($outerRadius/3) };

should be

vo #eval{ $outerRadius/sqrt(3) };

Steps to reproduce

When the outerRadius on Line 20 is 1, the blockMeshDict can create correct computational mesh. But, the other value of outerRadius cannot create projected mesh accurately because the calculation of edge point coordinate is incorrect.
To create this error, one can change outerRadius on line 20 into e.g. 2. Then, one executes blockMesh.

Example case

What is the current bug behaviour?

What is the expected correct behavior?

Relevant logs and/or images

Environment information

  • OpenFOAM version : v2312
  • Operating system : centOS 7
  • Hardware info : AMD EPYC 7763
  • Compiler : GCC-4.8.5

Possible fixes

L38: vo #eval{ sqrt($outerRadius/3) };

should be

vo #eval{ $outerRadius/sqrt(3) };