Nonlinear ASA

Nonlinear Media

Typical ASA and FNM calculations assume linear attenuation to simplify the equations and to increase the speed of calculation.

A nonlinear medium has the following fields defined in addition to the other acoustic fields:

A function, define_nonlinear_media, will create medium structures sutiable for non-linear calculations. However, these medium structures should NOT be used in any code other then the nonlinear ASA function.

Calling the Nonlinear ASA Function

Calling the nonlinear ASA function is just like calling the normal ASA function, except the nonlinear ASA fuction has two additional terms that control the number of harmonics used to calculate the answer and the number of harmonics to be returned.

Pressure=nonlinasa(source,z,medium,nfft,delta,type,f0,nmax,nout)

NOTE: This code is still in beta, and results have not been verified.