tmdsimpy.utils.harmonic

Utilities for harmonic discretization operations used in HBM and similar.

See Also

tmdsimpy.jax.harmonic_utils

A reimplementation of parts of this module with JAX and JIT compilation.

Functions

Nhc(h)

Function to calculate the number of harmonic components.

get_fourier_coeff(h, x_t)

Calculates the Fourier coefficients corresponding to a time series.

harmonic_stiffness(M, C, K, w, h[, ...])

Returns the harmonic stiffness and its frequency derivative.

harmonic_wise_conditioning(X, Ndof, h[, delta])

Function returns a conditioning vector for harmonic solutions.

predict_harmonic_solution(vib_sys, w, Fl, h, ...)

Generate an initial guess to an harmonic balance method (HBM) type problem based on a linear system.

rotate_subtract_phase(U_orig, Ndof, h, ...)

Rotates a set of harmonic solutions through a phase defined at a given harmonic.

shift_pm_pi(phase)

Shift phase to be within [-pi, pi).

time_series_deriv(Nt, h, X0, order)

Returns derivative of a time series defined by a set of harmonics.

zero_crossing(X[, zero_tol])

Finds the locations where the vector has zero crossings (sign changes).