**Geophysical fluid dynamics**, in its broadest meaning, refers to the fluid dynamics of naturally occurring flows, such as lava flows, oceans, and planetary atmospheres, on Earth and other planets.^{[1]}

Two physical features that are common to many of the phenomena studied in geophysical fluid dynamics are rotation of the fluid due to the planetary rotation and stratification (layering). The applications of geophysical fluid dynamics do not generally include the circulation of the mantle, which is the subject of geodynamics, or fluid phenomena in the magnetosphere.

To describe the flow of geophysical fluids, equations are needed for conservation of momentum (or Newton's second law) and conservation of energy. The former leads to the Navier–Stokes equations which cannot be solved analytically (yet). Therefore, further approximations are generally made in order to be able to solve these equations. First, the fluid is assumed to be incompressible. Remarkably, this works well even for a highly compressible fluid like air as long as sound and shock waves can be ignored.^{[2]}^{: 2–3 } Second, the fluid is assumed to be a Newtonian fluid, meaning that there is a linear relation between the shear stress `τ` and the strain *u*, for example

where `μ` is the viscosity.^{[2]}^{: 2–3 } Under these assumptions the Navier-Stokes equations are

The left hand side represents the acceleration that a small parcel of fluid would experience in a reference frame that moved with the parcel (a Lagrangian frame of reference). In a stationary (Eulerian) frame of reference, this acceleration is divided into the local rate of change of velocity and advection, a measure of the rate of flow in or out of a small region.^{[2]}^{: 44–45 }

The equation for energy conservation is essentially an equation for heat flow. If heat is transported by conduction, the heat flow is governed by a diffusion equation. If there are also buoyancy effects, for example hot air rising, then natural convection, also known as free convection, can occur.^{[2]}^{: 171 } Convection in the Earth's outer core drives the geodynamo that is the source of the Earth's magnetic field.^{[3]}^{: Chapter 8 } In the ocean, convection can be *thermal* (driven by heat), *haline* (where the buoyancy is due to differences in salinity), or *thermohaline*, a combination of the two.^{[4]}

Fluid that is less dense than its surroundings tends to rise until it has the same density as its surroundings. If there is not much energy input to the system, it will tend to become stratified. On a large scale, Earth's atmosphere is divided into a series of layers. Going upwards from the ground, these are the troposphere, stratosphere, mesosphere, thermosphere, and exosphere.^{[5]}

The density of air is mainly determined by temperature and water vapor content, the density of sea water by temperature and salinity, and the density of lake water by temperature. Where stratification occurs, there may be thin layers in which temperature or some other property changes more rapidly with height or depth than the surrounding fluid. Depending on the main sources of buoyancy, this layer may be called a pycnocline (density), thermocline (temperature), halocline (salinity), or chemocline (chemistry, including oxygenation).

The same buoyancy that gives rise to stratification also drives gravity waves. If the gravity waves occur within the fluid, they are called internal waves.^{[2]}^{: 208–214 }

In modeling buoyancy-driven flows, the Navier-Stokes equations are modified using the Boussinesq approximation. This ignores variations in density except where they are multiplied by the gravitational acceleration *g*.^{[2]}^{: 188 }

If the pressure depends only on density and vice versa, the fluid dynamics are called barotropic. In the atmosphere, this corresponds to a lack of fronts, as in the tropics. If there are fronts, the flow is baroclinic, and instabilities such as cyclones can occur.^{[6]}

- Kelvin wave
- Rossby wave
- Sverdrup wave (Poincaré wave)