In fluid dynamics , gravity waves are waves generated in a fluid medium or at the interface between two mediums ( e.g. the atmosphere or ocean ) which has the restoring force of gravity or buoyancy . In fluid dynamics , gravity waves are waves generated in a fluid medium or at the interface between two media ( e.g. , the atmosphere and the ocean ) which has the restoring force of gravity or buoyancy .