Petroleum coke is a solid material and a byproduct of the coking unit, a residual fuel upgrader. The quality of the coke is dependent upon the crude oil processed in the refinery. Cokes produced from sour crude oil are high in sulfur and trace metals. These cokes are used in fuel applications such as utility boilers and cement kilns. Cokes produced from sweet crude oil can have properties that are suitable for calcining are used in carbon anodes for aluminum smelting and electrodes for electric arc furnaces.