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 at pnt up to maximum degree nmax. Refer to charm_shs for the full documentation.

Parameters:
Returns:

out – Point values synthesized from shcs at pnt

Return type:

numpy array of floating points

pyharm.shs.cell(cell, shcs, nmax)#

Performs spherical harmonic synthesis of area-mean values from shcs at cell up to maximum degree nmax. Refer to charm_shs for the full documentation.

Parameters:
  • cell (CellSctr, CellGrid) – Evaluation cells

  • shcs (Shc) – Spherical harmonic coefficients

  • nmax (integer) – Maximum degree of the synthesis

Returns:

out – Area-mean values synthesized from shcs at cell

Return type:

numpy array of floating points

pyharm.shs.cell_isurf(cell, shcs1, nmax1, shcs2, nmax2, nmax3, nmax4)#

Performs spherical harmonic synthesis of area-mean values from shcs1 at cell residing on an irregular surface defined by shcs2. The synthesis of area-mean values is done up to degree nmax1 and the irregular surface is expanded up to degree nmax2. nmax3 and nmax4 represent the maximum harmonic degrees to synthesize and analyze the (shcs1.r / r)^(n + 1) terms, where r stands for the spherical radius of the irregular surface defined by shcs2. 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 at cell residing on the surface defined by shcs2

Return type:

numpy array of floating points