Chemical reactor analysis and design