Simulation of aqueous and supercritical fluid dyeing of a spool of yarn