CMSM-VCU / zoo

Peridynamics data visualization tool
MIT License
0 stars 0 forks source link

Adjust grid spacing guess for highly non-uniform grids #23

Open rileychall opened 2 years ago

rileychall commented 2 years ago

The current grid spacing guess uses the mode of the calculated nodal distances.

In a "highly non-uniform" grid, the distances between nodes is a continuum between some min and max. In that case, no two distances can be expected to be equal, so the mode is meaningless.

We should introduce some check for the significance of the mode and fall back to the median if needed.