Entropy generation minimization for isothermal crystallization processes with a generalized mass diffusion law