A system for the automated thermal design of instruments