pyHarm.DynamicOperator

Functions

compute_DFT(→ dict[str)

Builds the Discrete Fourier Transform (DFT) operator adapted to the desired number of time samples and harmonics.

nabla(→ numpy.ndarray)

Builds the Derivation operator.

Module Contents

pyHarm.DynamicOperator.compute_DFT(nti: int, nh: int) dict[str:np.ndarray]

Builds the Discrete Fourier Transform (DFT) operator adapted to the desired number of time samples and harmonics.

Parameters:
  • nti (int) – Number of time steps.

  • nh (int) – Number of harmonics.

Returns:

Dictionary containing DFT and DTF operators.

Return type:

dict[np.ndarray]

pyHarm.DynamicOperator.nabla(nh: int) numpy.ndarray

Builds the Derivation operator.

Parameters:

nh (int) – Number of harmonics.

Returns:

Derivation operator in the frequency domain.

Return type:

np.ndarray