pyharm.shs#
Module to perform solid spherical harmonic synthesis of point and mean values.
Note
This documentation is written for double precision version of PyHarm.
- pyharm.shs.point(pnt, shcs, nmax)#
Performs spherical harmonic synthesis of point values from
shcs
atpnt
up to maximum degreenmax
. Refer to charm_shs for the full documentation.- Parameters:
pnt (PointGrid, PointGridDH1, PointGridDH2, PointGridGL or PointSctr) – Evaluation points
shcs (Shc) – Spherical harmonic coefficients
nmax (integer) – Maximum degree of the synthesis
- Returns:
out – Point values synthesized from
shcs
atpnt
- Return type:
numpy array of floating points
- pyharm.shs.cell(cell, shcs, nmax)#
Performs spherical harmonic synthesis of area-mean values from
shcs
atcell
up to maximum degreenmax
. Refer to charm_shs for the full documentation.
- pyharm.shs.cell_isurf(cell, shcs1, nmax1, shcs2, nmax2, nmax3, nmax4)#
Performs spherical harmonic synthesis of area-mean values from
shcs1
atcell
residing on an irregular surface defined byshcs2
. The synthesis of area-mean values is done up to degreenmax1
and the irregular surface is expanded up to degreenmax2
.nmax3
andnmax4
represent the maximum harmonic degrees to synthesize and analyze the(shcs1.r / r)^(n + 1)
terms, wherer
stands for the spherical radius of the irregular surface defined byshcs2
. Refer to charm_shs for the full documentation.- Parameters:
cell (CellGrid) – Evaluation cells
shcs1 (Shc) – Spherical harmonic coefficients of the function, the area-mean values of which are synthesized
nmax1 (integer) – Maximum degree of the synthesis of the area-mean values
shcs2 (Shc) – Spherical harmonic coefficients of the irregular surface, on which the area-mean values are synthesized
nmax2 (integer) – Maximum degree of the synthesis of the irregular surface
nmax3 (integer) – Maximum degree of the synthesis of
(shcs1.r / r)^(n + 1)
nmax4 (integer) – Maximum degree of the analysis of
(shcs1.r / r)^(n + 1)
- Returns:
out – Area-mean values synthesized from
shcs1
atcell
residing on the surface defined byshcs2
- Return type:
numpy array of floating points