Physics of environmental flows interacting with obstacles