Preprocessing

Preprocessing

How to measure the average distance of one domain surface to the center?

    • DYLiang
      Subscriber

      Hi,

      I have a ball-like solid geometry and I want to measure the average distance of the external surface of this geometry to its center. I know the center's coordinates (x0, y0, z0). And I was using custom field function as

      sqrt((x-x0)^2 + (y-y0)^2 + (z-z0)^2), x,y and z are from mesh-> x,y and z-coordinate

    • peteroznewman
      Subscriber
      If the solid is ball-like, as in like a sphere, you could get the radius of the sphere r = 3V/A where V is the volume of the solid and A is the surface area of the solid.
      This formula comes from the volume of a sphere V = 4/3 Pi*r^3 and the surface area of a sphere A = 4Pi r^2.
    • DYLiang
      Subscriber
      Thank you for the reply. It is like a sphere but not exactly. There are some protuberances and cracks that affect the surface and volume. So, I still want to calculate distance based on coordinates...
Viewing 2 reply threads
  • You must be logged in to reply to this topic.