Dynamic Risk Analysis in the Chemical and Petroleum Industry