Distance function (Topology Optimization)

Hello,

I’m using the distance function (from : load “distance”) to compute the distance field to the contour of a shape defined via a surface.

Now my shape is defined via a P0 density field.

I would like to compute the sensitivity of the distance field relative to my density field. What reference or algorithm is used to compute the distance field ?

Thank you in advance for your answer.

HMasson