serial conversion reaction failing to converge

Discusses use of COCO, the process simulation and modelling software suite from AmsterCHEM, downloadable from http://www.cocosimulator.org

Moderator: jasper

Post Reply
thubelihle
Posts: 73
Joined: 04 March 2017, 16:27

serial conversion reaction failing to converge

Post by thubelihle »

Hi. The following conversion reactor is failing to converge, but the conversion adds upto 1
Attachments
CONVERSION REACTOR ASK.fsd
(25.6 KiB) Downloaded 906 times
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: serial conversion reaction failing to converge

Post by jasper »

You have in the feed, 100 kmol/h methane and 21 kmol/h Oxygen.

The reactions are serial, the first reaction

Methane + 0.5 * Oxygen => Carbon Monoxide + 2 Hydrogen

is set to convert 0.4 * 100 kmol/h Methane, so 40 kmol/h methane. In doing so, it also consumes 20 kmol/h Oxygen. Remains, 60 kmol/h methane and 1 kmol/h Oxygen.

The next reaction

Methane + Oxygen => Carbon Dioxide + 2 Hydrogen

is asked to convert 60 percent of the remaining methane (serial box is checked), so 0.6 * 60 kmol/h = 36 kmol/h. In doing so, this reaction requires 36 kmol/h Oxygen, but you have only 1 kmol/h Oxygen left. Hence, the error is
error: calculate failed for unit FixedConversionReactor_5: Conversion of 0.6 for compound Methane for reaction 2 caused negative concentrations of compound Oxygen
User avatar
ioncube
Posts: 4
Joined: 30 December 2017, 20:13

Re: serial conversion reaction failing to converge

Post by ioncube »

thubelihle, Attached is the flowsheet where you can change controller options & get a dynamic setting of your feed flow :D
Attachments
CONVERSION REACTOR ASK.fsd
..with control elements..
(27.56 KiB) Downloaded 946 times
thubelihle
Posts: 73
Joined: 04 March 2017, 16:27

Re: serial conversion reaction failing to converge

Post by thubelihle »

thank you so much jasper and ioncube, learnt a lot. ioncube, can you explain to me how the dynamic control system works, looks supercool to me. does it measure the ratio of methane to oxygen or you simple put the manually the feed flowrate of air? it looks like a feedback control system, thanks
User avatar
ioncube
Posts: 4
Joined: 30 December 2017, 20:13

Re: serial conversion reaction failing to converge

Post by ioncube »

1] Measure Element ...detects O2 mole flow (it can be changed) in Product stream
2] An information stream transfers this to Controller as input
3] Controller is given a set point to adjust above to say zero
4] Output from controller (another information stream) sends this information to a control element (flow constriction in feed) to meet set point
thubelihle
Posts: 73
Joined: 04 March 2017, 16:27

Re: serial conversion reaction failing to converge

Post by thubelihle »

Thank you so much, l appreciate this
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: serial conversion reaction failing to converge

Post by jasper »

This particular case is hard to control with a controller, as the solution is at the edge of the feasible region.

A simpler, non iterative solution exists.

For each kmol/s methane, you already know you need 0.56 kmol/s oxygen. You can measure the methane flow rate in the methane feed, and calculate directly the required oxygen flow using an information calculator. And put this number into the flow constraint.
Post Reply

Return to “COCO (AmsterCHEM)”