Calulcates the gradient on the unit sphere of the complex valued spherical harmonic basis matrix of order N for a set of points given by their elevation and azimuth angles.
Calulcates the gradient on the unit sphere of the real valued spherical harmonic basis matrix of order N for a set of points given by their elevation and azimuth angles.
This implementation uses the second order Hankel function, see [4] for an
overview of the corresponding sign conventions.
References
Parameters:
n (integer, ndarray) – Spherical harmonic order
kr (double, ndarray) – Wave number * radius
arraytype (string) – Array configuration. Can be a microphones mounted on a rigid sphere,
on a virtual open sphere or cardioid microphones on an open sphere.
Radiation function in SH for a vibrating sphere including the radiation
impedance and the propagation to a arbitrary distance from the sphere.
The sign and phase conventions result in a positive pressure response for
a positive cap velocity with the intensity vector pointing away from the
source.
TODO: This function does not have a test yet.
References
Parameters:
n_max (integer, ndarray) – Maximal spherical harmonic order
r_sphere (double, ndarray) – Radius of the sphere
k (double, ndarray) – Wave number
distance (double) – Distance from the origin
density_medium (double) – Density of the medium surrounding the sphere. Default is 1.2 for air.
speed_of_sound (double) – Speed of sound in m/s
Returns:
R – Radiation function in diagonal matrix form with shape
\([K \times (n_{max}+1)^2~\times~(n_{max}+1)^2]\)
Calulcates the complex valued spherical harmonic basis matrix of order Nmax
for a set of points given by their elevation and azimuth angles.
The spherical harmonic functions are fully normalized (N3D) and include the
Condon-Shotley phase term \((-1)^m\)[2]_, [3].
\[Y_n^m(\theta, \phi) = \sqrt{\frac{2n+1}{4\pi}
\frac{(n-m)!}{(n+m)!}} P_n^m(\cos \theta) e^{i m \phi}\]
Calulcates the gradient on the unit sphere of the complex valued spherical
harmonic basis matrix of order N for a set of points given by their
elevation and azimuth angles.
The spherical harmonic functions are fully normalized (N3D) and include the
Condon-Shotley phase term \((-1)^m\)[2]_. This implementation avoids
singularities at the poles using identities derived in [5].
Calulcates the gradient on the unit sphere of the real valued spherical
harmonic basis matrix of order N for a set of points given by their
elevation and azimuth angles.
The spherical harmonic functions are fully normalized (N3D) and follow
the AmbiX phase convention [1]_. This implementation avoids
singularities at the poles using identities derived in [5].
Calulcates the real valued spherical harmonic basis matrix of order Nmax
for a set of points given by their elevation and azimuth angles.
The spherical harmonic functions are fully normalized (N3D) and follow
the AmbiX phase convention [1]_.