Surface Roughness
Crater Modeling
AsteroidShapeModels.crater_curvature_radius
— Functioncrater_curvature_radius(r, h) -> R
Return the curvature radius of a concave spherical segment.
Arguments
r
: Crater radiush
: Crater depth
AsteroidShapeModels.concave_spherical_segment
— Functionconcave_spherical_segment(r, h, xc, yc, x, y) -> z
Return the z-coordinate of a concave spherical segment.
Arguments
r
: Crater radiush
: Crater depthxc
: x-coordinate of crater centeryc
: y-coordinate of crater centerx
: x-coordinate where to calculate zy
: y-coordinate where to calculate z
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 radiush
: Crater depthNx
: Number of nodes in the x-directionNy
: Number of nodes in the y-directionxc
: x-coordinate of crater centeryc
: y-coordinate of crater center