Radial member of the polar vector spherical harmonic basis, . Purely radial by construction (zero horizontal components) -- combined with a radial stream function , this is the -generating piece of a poloidal magnetic (or any divergence-free) field, .
Warning
Built on SSH -- inherits the unnormalized
ASSOC_LEGENDRE's stability limit (safe for at
any ), not PVSH_RAD_ALL's . See
STABILITY_FINDINGS.md at the repo root, Part 2.
Returns: , complex 3-vector.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=i4), | intent(in) | :: | L |
Degree, . |
||
| integer(kind=i4), | intent(in) | :: | K |
Order, . |
||
| real(kind=dp), | intent(in) | :: | THETA |
Colatitude in radians, . |
||
| real(kind=dp), | intent(in) | :: | PHI |
Longitude in radians, . |
FUNCTION PVSH_RAD_DP(L,K,THETA,PHI) RESULT(PVSH_RAD) IMPLICIT NONE INTEGER(KIND=i4), INTENT(IN) :: L INTEGER(KIND=i4), INTENT(IN) :: K REAL(KIND=dp), INTENT(IN) :: THETA REAL(KIND=dp), INTENT(IN) :: PHI COMPLEX(KIND=dp) :: YLM COMPLEX(KIND=dp), DIMENSION(3) :: PVSH_RAD YLM = SSH(L,K,THETA,PHI) PVSH_RAD(1) = YLM PVSH_RAD(2) = DCMPLX(0.d0, 0.d0) PVSH_RAD(3) = DCMPLX(0.d0, 0.d0) RETURN END FUNCTION PVSH_RAD_DP