[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
CAPE-OPEN • View topic - Methanol (Gibbs Study)

Methanol (Gibbs Study)

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

Moderator: jasper

Methanol (Gibbs Study)

Postby nrgeng » 13 April 2013, 23:30

I am continuing to work with the Gibbs Minimization Reactor Unit. I am back to the Reaction Type: Specify Compounds. When this Reaction Type originally failed to meet my expectations, I moved to the Reaction Type: Reaction Package which would not handle three reactions until Revision ..14. Thank you.

The problem(s) with Reaction Type: Specify Compounds is that the heat duty is positive for a known set of exothermic reactions. Please compare +194 kW (Specify Compounds) with -219 kW ( Reaction Package). I am attaching two flowsheets, one for each Reaction Type. You will easily see other indications of problems (I think). You already have the fsd file—the last one that I e-mailed you. If you want another copy please request it.

I thought, when I started this Unit study, that the results would be similar for both Reaction Types. I was definitely wrong. I hope that you can help. Is my mindset the problem here?
Attachments
Methanol Reactor (Rxn Pack).pdf
Reaction Package
(46.84 KiB) Downloaded 870 times
Methanol Reactor (Compounds).pdf
Specify Compounds
(47.43 KiB) Downloaded 817 times
nrgeng
 
Posts: 239
Joined: 16 February 2013, 12:45
Location: USA

Re: Methanol (Gibbs Study)

Postby jasper » 14 April 2013, 08:56

The solution in which the Gibbs energy goes up rather than down is obviously wrong. But if I try both approaches lead to approximately the same solution, that of about 74.6% CO conversion.

Can you send me the fsd that produces the wrong solution and describe the steps how I make it produce the wrong solution? If I just open the document you sent earlier and hit solve I get the proper solution.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Methanol (Gibbs Study)

Postby nrgeng » 15 April 2013, 13:19

I sent you the fsd file that you requested by e-mail. I am attaching a file to this posting that shows the second problem that I have encountered with this simulation, which was previously unreported.

The actions taken to repeat my experience with this simulation: (1) load the fsd file, reset the flowsheet, then solve it [looks good]; (2) reset the flowsheet, change to Reaction Type: Specify Compounds, then solve it [same error(s) as reported]; (3) reset the flowsheet, change to Reaction Type: Reaction Package, then solve it [error dialog, see attached file]. At this point, the flowsheet is ruined because you cannot switch back to the previous flowsheet which solved. A puzzlement to me.

I hope this information helps you in resolving these issues.

COCO Version 2.5.0.14 (x86, 32-bit)
Attachments
Methanol Reactor (Rxn Pack) Line Search Fail.pdf
Reversion error
(242.48 KiB) Downloaded 815 times
nrgeng
 
Posts: 239
Joined: 16 February 2013, 12:45
Location: USA

Re: Methanol (Gibbs Study)

Postby jasper » 15 April 2013, 19:02

First case, ok

Second case: make sure to also select Methanol as component, or you will get only the equivalent to the CO2 hydrogenation reaction. Note that the reactions that are created are reported in the output report, along with their reaction extents. If you include Methanol you will get pretty much the same answer as the first case. The answer without Methanol as reactive compound also appears ok within convergence tolerance. My statement in a previous mail that the Gibbs energy cannot go up was wrong: the one in the report does not include formation terms. What cannot go up is G = H - T*S where both H and S include the formation terms (EnthalpyF and EntropyF).

Third case: I can reproduce the convergence failure. I will look into it.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Methanol (Gibbs Study)

Postby jasper » 15 April 2013, 20:12

The three reactions you specify are

(A) CO + 2 H2 -> CH3OH
(B) CO2 + 3 H2 -> CH3OH + H2O
(C) CO + H2O -> CO2 + H2

these are not independent: (B) + (C) = (A)

so the system is over specified. Such a system may or may not converge, actually I would expect it won't converge, not sure why it sometimes does. Lucky I guess. Specify 2 out of 3 of your reactions and it should converge ok.

Also note that in case the reactive compounds are specified, the elemental analysis results 2, not 3, reactions. So the system has only 2 degrees of freedom. The approach using the elemental analysis results a system for which the degrees of freedom are orthogonal. The reactions are

0.510754 Carbon dioxide + 0.340503 Hydrogen + 0.0851257 Methanol = 0.59588 Carbon monoxide + 0.510754 Water
0.408248 Carbon monoxide + 0.816497 Hydrogen = 0.408248 Methanol

so for [CO, CO2, H2, H2O, CH3OH], the stoichoimetry vectors are

[0.59588, -0.510754, -0.340503, 0.510754, -0.0851257]
[-0.408248, 0, -0.816497, 0, 0.408248]

the inner product of these two vectors is zero. This is a pleasant property of the system for the solver.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Methanol (Gibbs Study)

Postby jasper » 16 April 2013, 08:57

User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain


Return to COCO (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 16 guests