Presets
The science

Equation of motion (1-D). m dv/dt = Fprop(t) - 1/2 rho CDA frec v^2, rho = 1000 kg/m^3. Thrust is a half-sine pulse Fpk sin(pi u/duty) during the pulling part of each stroke (u = phase of the pull, one or two pulls per cycle), zero in recovery, where the drag area is multiplied by frec (arms and knees out of the streamline). Mean thrust is Fpk(2/pi)(duty).

Why strokes differ. Butterfly and breaststroke have one big pull per cycle and a larger speed ripple, so more of the thrust is spent at times when quadratic drag is high; freestyle and backstroke overlap the arms, keeping speed steadier. With constant thrust the speed approaches vt = sqrt(2F/(rho CDA)).

Simplifications, stated honestly. Thrust and the drag area are illustrative round numbers tuned to give race paces of the right size, not measured athlete data. Active drag is not equal to passive drag, drag does not depend on depth or waves, added mass of water is ignored, wall turns and push-offs are not modelled (a 100 m race here is 100 m of continuous swimming), and fatigue is a simple linear loss of force. Integrator: RK4, fixed 1/240 s step.

Check. Constant-thrust speed after 10 s is compared with v = sqrt(F/k) tanh(t sqrt(Fk)/m), k = 1/2 rho CdA, and with a separate plain Euler loop.