Development and Application of Models and Diagnostics for Geophysical Fluid Flows