KyleVaughn / UM2

An unstructured mesh library for automated method of characteristic mesh generation
https://univeristy-of-michigan-unstructured-mesh-code.readthedocs.io/en/main/index.html#
MIT License
7 stars 2 forks source link

Implement meanChordLength(PlanarPolygon) #133

Closed KyleVaughn closed 1 year ago

KyleVaughn commented 1 year ago

We need to compute the mean chord length in calculating the Knudsen number.

The mean chord length for linear polygons has been implemented. We need to compute the mean chord length for quadratic polygons. The tasks to do this are:

Mean chord length does not need to be computed numerically. Even for a concave polygon, the pi area / perimeter formula gives the desired answer. Note: If you consider a single ray which is shot through a concave polygon, forming 2 distinct segments s1 and s2. pi area / perimeter is the exact solution if you which to count the lengths of s1 and s2 separately. If you wish to count them together (s1 + s2), then you must perform the numerical computation from above.