A chemical reactor for cracking hydrocarbons in a process fluid, the chemical reactor comprising: an outer casing comprising a flow inlet for intaking the process fluid and a flow outlet for exiting the process fluid, wherein a flow path is defined within the outer casing extending axially along an inner shroud of the outer casing between the flow inlet and the flow outlet; a rotary shaft extending into the outer casing and coupled to a rotor disk, wherein the rotor shaft is driven by a power supply; a first impeller section and a second impeller section arranged downstream of the first impeller section, each impeller section comprising a respective plurality of rotating impeller blades positioned on the rotor disk, wherein the plurality of rotating impeller blades extends radially outwardly from the rotor disk into the flow path; a stationary bucket section arranged between the first impeller section and the second impeller section; a stationary diffuser section arranged downstream of the second impeller section, wherein the stationary diffuser section comprises a plurality of divergent diffuser flow passages; an exhaust section arranged downstream of the stationary diffuser section, wherein the exhaust section comprises a plurality of convergent exhaust flow passages, wherein the respective plurality of rotating impeller blades is configured to accelerate the process fluid to a supersonic flow, wherein the plurality of convergent exhaust flow passages is configured to provide a back pressure such that a shock wave is generated in the stationary diffuser section, wherein the shock wave generated in the stationary diffuser section increases a static temperature of the process fluid downstream of the shock wave to generate sufficient heat to crack hydrocarbons in the process fluid, wherein the plurality of diffuser flow passages is configured to provide a flow property of the process fluid across the shock wave for processing the process fluid. an outer casing comprising a flow inlet for intaking the process fluid and a flow outlet for exiting the process fluid, wherein a flow path is defined within the outer casing extending axially along an inner shroud of the outer casing between the flow inlet and the flow outlet; a rotary shaft extending into the outer casing and coupled to a rotor disk, wherein the rotor shaft is driven by a power supply; a first impeller section and a second impeller section arranged downstream of the first impeller section, each impeller section comprising a respective plurality of rotating impeller blades positioned on the rotor disk, wherein the plurality of rotating impeller blades extends radially outwardly from the rotor disk into the flow path; a stationary bucket section arranged between the first impeller section and the second impeller section; a stationary diffuser section arranged downstream of the second impeller section, wherein the stationary diffuser section comprises a plurality of divergent diffuser flow passages; an exhaust section arranged downstream of the stationary diffuser section, wherein the exhaust section comprises a plurality of convergent exhaust flow passages, wherein the respective plurality of rotating impeller blades is configured to accelerate the process fluid to a supersonic flow, wherein the plurality of convergent exhaust flow passages is configured to provide a back pressure such that a shock wave is generated in the stationary diffuser section, wherein the shock wave generated in the stationary diffuser section increases a static temperature of the process fluid downstream of the shock wave to generate sufficient heat to crack hydrocarbons in the process fluid, wherein the plurality of diffuser flow passages is configured to provide a flow property of the process fluid across the shock wave for processing the process fluid.