These codes are employed in the paper by Withers and Maldonado (2021) On the swimming strategies to escape a rip current: a mathematical approach. Natural Hazards.
In particular, "Brute_force_approach_rev1.py" is used to generate the data in figures 3 and 4. "Work_Power_given_rip.py" generates the data for tables 3 and 4.