Surface Roughness

Crater Modeling

AsteroidShapeModels.concave_spherical_segmentFunction
concave_spherical_segment(r, h, xc, yc, x, y) -> z

Return the z-coordinate of a concave spherical segment.

Arguments

  • r : Crater radius
  • h : Crater depth
  • xc: x-coordinate of crater center
  • yc: y-coordinate of crater center
  • x : x-coordinate where to calculate z
  • y : y-coordinate where to calculate z
source
concave_spherical_segment(r, h; Nx=2^5, Ny=2^5, xc=0.5, yc=0.5) -> xs, ys, zs

Return (x, y, z) grid of a concave spherical segment.

Arguments

  • r : Crater radius
  • h : Crater depth
  • Nx: Number of nodes in the x-direction
  • Ny: Number of nodes in the y-direction
  • xc: x-coordinate of crater center
  • yc: y-coordinate of crater center
source