b_mix - mixes two coherent wave fields into one wave field.
The input fields must be the same as dimensions, sizes, wavelengths and the coordinate systems.If not the same dimensions, you can use comammd interpol resize the field, then mix the two coherent fields.
m=1;nm=1e-9*m;mm=1e-3*m;cm=1e-2*m; lambda=550*nm;sizes=5*mm;N=100; R=0.12*mm;d=0.5*mm;z=100*cm; F=begin(sizes,lambda,N,N); F1=circ_ap(F,R,d,0); F2=circ_ap(F,R,-d,0); F=b_mix(F1,F2); out=forvard(F,z); field_plot(out);
Chen jingyuan, Gan guangyong (IAPCM, Beijing,China.)