MatLab code for Resonant Triads.


This is the MATLAB program for solving the barotropic potential vorticity equation to study the dynamics of resonant Rossby triads. You need to save the program in a file called, say, triads.m (shift-click on the links) and then run "triads" in MATLAB.
Different initial conditions are selected by re-defining ICtype. The default in the code is ICtype==7, to generate a star-shaped pattern.