Physiology
Models and code for simulating physiological processes in games — bladders, sphincters, fluid dynamics.
- Urethral cascadeDrop-in TS implementation. Given the bladder pressure and each gate's closing pressure, returns the flow rate and pressure profile along the urethra. For why the formula has its shape, see Urethral fluid dynamics.
- Urethral fluid dynamicsClosed-form derivation of urethral flow and pressure, given bladder pressure, the sphincter chain, and any external obstruction.