Hey,
Is there any inbuilt method in FEniCS to compute the radius of curvature at the boundary points?
I have been using numpy gradient method to evaluate the first and second order derivatives of x and y coordinates and using the derivatives, calculate the value of curvature at each mesh boundary point.
K = |x’ y’’ - y’ x’’|/((x’)^2 + (y’)^2)^1.5
This is the equation I am using to find the curvature at every mesh boundary point.
I had tried computing the value of curvature of a circular mesh using FEmorph, but the values of the curvature at the boundary while computed using kappa = ComputeDivNVolume(mesh, CurvSmooth) gives me values that are smaller than the actual values of the curvature at the boundary. I had used the same on a circular mesh with radius 10 and the curvature came out to be kappa(0,10) = 0.0983785276 whereas the actual curvature value should be 0.1 .
Is there anything that I might have done that might be causing this variation in curvature
Dear Akhil
Did you solve this problem? If so, could you kindly post a reply for the same. Alternately, could you kindly post the code snippet for your original method of computing curvature from the derivates of the boundary position vector?
Thanks