How do you stop a blaze before it gets too big? Supercomputers and spray foam