Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.ShockResponseSpectrumArray

Signature

class sdynpy.ShockResponseSpectrumArray(shape, nelements, buffer=None, offset=0, strides=None, order=None)

Generic N-Dimensional data structure

This data structure can contain real or complex data. More specific SDynPy data arrays inherit from this superclass.

Attributes

NameSummary
function_typeReturns the function type of the data array

function_type

Returns the function type of the data array

Methods

NameSummary
mimo_inverseComputes an input signal that would recreate the specified SRS
plotPlot the shock response spectrum
sum_decayed_sinesGenerate a Sum of Decayed Sines signal given an SRS.

mimo_inverse

def sdynpy.ShockResponseSpectrumArray.mimo_inverse(self, transfer_function, sample_rate, block_size, srs_damping=0.03, num_time_constants=None, tau=None, sine_decays=None, rcond=None, accuracy_weight=1, input_weight=0, return_drive_signal=True, return_drive_table=False, return_projected_srs=False, return_optimization_result=False, return_complex_targets=False)

Computes an input signal that would recreate the specified SRS

Computes an input signal that would recreate the specified SRSs if played into a system with the specified transfer functions. It uses a phase-matching approach to compute a preferred phasing between responses that are not specified by the SRS functions. It then uses the transfer functions to solve for drive signals that will achieve those desired responses.

Parameters

Returns

plot

def sdynpy.ShockResponseSpectrumArray.plot(self, one_axis: bool = True, subplots_kwargs: dict = {}, plot_kwargs: dict = {}, abscissa_markers=None, abscissa_marker_labels=None, abscissa_marker_type='vline', abscissa_marker_plot_kwargs={})

Plot the shock response spectrum

Parameters

Returns

sum_decayed_sines

def sdynpy.ShockResponseSpectrumArray.sum_decayed_sines(self, sample_rate, block_size, sine_frequencies=None, sine_tone_range=None, sine_tone_per_octave=None, sine_amplitudes=None, sine_decays=None, sine_delays=None, srs_damping=0.03, srs_type='MMAA', compensation_frequency=None, compensation_decay=0.95, number_of_iterations=3, convergence=0.8, error_tolerance=0.05, tau=None, num_time_constants=None, decay_resolution=None, scale_factor=1.02, acceleration_factor=1.0, plot_results=False, srs_frequencies=None, return_velocity=False, return_displacement=False, return_srs=False, return_sine_table=False, ignore_compensation_pulse=False, verbose=False)

Generate a Sum of Decayed Sines signal given an SRS.

Note that there are many approaches to do this, with many optional arguments so please read the documentation carefully to understand which arguments must be passed to the function.

Parameters

Returns