Build_r

class sf3dmodels.grid.Build_r(GRID)[source] [edit on github]

Bases: sf3dmodels.grid.GridSet

Computes the spherical coordinate \(r\) on each cartesian grid point.

\[r = \sqrt{x^2 + y^2 + z^2}\]
Parameters:
GRID : Struct

Grid structure to compute.

Attributes:
r : numpy.ndarray, shape (GRID.NPoints,)

Array of \(r\) coordinate values in input units.