School in a current: tracers drift with the water, buoys stay fixed
Trip energy versus swimming speed

Anchovy Migration Against a Coastal Current: Trip Energy and Optimal Speed (2D)

Send a school of anchovies along the coast and find the swimming speed that costs the least energy. Change fish length, the alongshore current and the migration distance to see the optimum speed in body lengths per second, the ground speed, the cost per metre, the trip time and the share of fat reserves burned. A Blender built anchovy, buoys and rocks, with numerical checks of the optimisation built in.

Made with 🟠 Blender