set_excitation_function()

Description: A function to create an excitation function suitable for use with transient_pressure and other transient pressure calculation functions.

Usage

fn = set_excitation_function(type, f0, w);
fn = set_excitation_function(type, f0, w, b);
fn = set_excitation_function(signal, sample_period, clipping_threshold); 

Arguments

Output Parameters

Notes

Transient calculations can be performed with arbitrary input signals, however performance will be improved if one of the signal types for which an analytical TSD expression has been derived is used. Otherwise, the calculation will be performed using FDTSD. See the documentation for fnm_tsd for details.

Calling this function with no arguments will cause the program to prompt the user for each required value.

The amplitude of the excitation can be set on each transducer by changing its amplitude property.

Excitation function types can also be described using their integer identifiers; 1 for tone burst, 2 for Hann-weighted pulse, and 3 for t-cubed pulse.