I don’t know what is meant with “concavity” in a mesh. If you can explain what it is and how to calculate it, it would be probably much easier to calculate it with a custom script and apply whatever gradient you want once you have the values.
Edit: you have the values! Just use “remap numbers” and use a color gradient + “deconstruct mesh” and “construct mesh” with colors…
Here: Transfer RGB gradient to height - #3 by maje90 I’ve deconstructed an actual color gradient to retrieve its “structure” (?) … maybe it helps…