setWaveForcingCoefficients
Select positive- and negative-frequency coefficients to fix.
Declaration
setWaveForcingCoefficients(Apbar,Ambar,options)
Parameters
ApbarApvalues on the transform spectral gridAmbarAmvalues on the transform spectral gridMApoptional logicalApselection mask; defaultabs(Apbar) > 1e-6*max(abs(Apbar(:)))MAmoptional logicalAmselection mask; defaultabs(Ambar) > 1e-6*max(abs(Ambar(:)))
Discussion
Without explicit masks, coefficients whose magnitude is at
least \(10^{-6}\) times the largest supplied magnitude are
selected. If adaptive damping is registered, selected modes
above its horizontal k_damp threshold are removed.