COFE Unit Operation in Aspen Plus

Moderator: jasper

COFE Unit Operation in Aspen Plus

Postby CamiloC » 13 November 2014, 16:35

Hello,
I have a Matlab unit op in a COFE flowsheet, which is in turn in an Aspen Plus v8.6 flowsheet. I have connected Aspen Plus streams to the COFE UO and my Matlab unit is calculating product streams properly in the cofe environment based on the Aspen Plus feed. However, Aspen Plus isn't pulling these results for some reason. What can I do to fix this?
CamiloC
 
Posts: 4
Joined: 04 November 2014, 20:17

Re: COFE Unit Operation in Aspen Plus

Postby jasper » 13 November 2014, 20:43

I understand the COFE flowsheet is a unit operation inside an Aspen Plus flowsheet. And if you solve the Aspen Plus flowsheet, the product streams in the COFE flowsheet are not transferred properly to the COFE unit operation's products in the Aspen Plus flowsheet. Correct?

Are there any error messages for the unit operation, or does Aspen Plus indicate that the unit operation ran ok?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen Plus

Postby CamiloC » 13 November 2014, 23:55

Hi Jasper. Yes, you are correct. Aspen Plus does give an error message but I can't make sense of it, I'm attaching a screen cap of it.
Attachments
Capture.JPG
Capture.JPG (22.08 KiB) Viewed 42327 times
CamiloC
 
Posts: 4
Joined: 04 November 2014, 20:17

Re: COFE Unit Operation in Aspen Plus

Postby jasper » 14 November 2014, 08:01

It appears that COFE wants to transfer the information using a PH flash; I guess that this is a pure compounds stream (else COFE would use a TP flash); to do so, it must set enthalpy on the Aspen Plus stream and this fails. With an invalid argument.

The arguments to the enthalpy call - on my end - appear correct however. Would you be so kind to make a log of this issue to see what the traffic between COFE and Aspen Plus is like? To do so, please do not insert a COFE unit operation into Aspen Plus, but rather insert a COULIS unit operation (presuming you have installed OATS with COCO; COULIS is part of OATS). This will have you select a unit. Select a COFE Unit Operation, and proceed as before. When you quit Aspen Plus, you will be prompted for where to save the log file (*.olg).

Alternatively, you could use the CAPE-OPEN Logger and Testing Tool (COLTT), available from CO-LaN, http://sourceforge.net/projects/cape-openloggin/

Using COLTT you can log with the existing document, you just have to tell COLTT to log unit operations of the type COFE Unit Operation before starting Aspen Plus.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen

Postby CamiloC » 14 November 2014, 19:36

Yes it is a pure stream. I ran the COULIS UO but can't attach the file on the forum. It doesn't accept this extension. Is there another way I can show it to you? Thank you for your help
CamiloC
 
Posts: 4
Joined: 04 November 2014, 20:17

Re: COFE Unit Operation in Aspen

Postby jasper » 14 November 2014, 21:39

You can hit Upload Attachment (below when you write a reply), or perhaps just drop it in my e-mail. Thank you.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen

Postby jasper » 15 November 2014, 10:39

From the log you sent me, it appears the problem is on the COFE side. Would you be so kind as export the flowsheet that defines the unit operation, and send me the fsd file?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen

Postby jasper » 17 November 2014, 10:24

The problem is fixed. Please obtain the fix via COCO Update (CUP).

Also make sure to get a new copy of the Matlab CAPE-OPEN Unit Operation; a fix has been made here that prevents loading if \b characters appear in the Matlab output, which appears to be the case for Matlab 8.4 upon errors.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen

Postby CamiloC » 18 November 2014, 16:02

It all works now. Thank you, Jasper. I sincerely appreciate your help.
CamiloC
 
Posts: 4
Joined: 04 November 2014, 20:17

Re: COFE Unit Operation in Aspen

Postby jasper » 18 November 2014, 19:28

You are welcome - glad to hear that it works. Thank you for providing the logs.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain


Return to MATLAB Unit Operation (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 1 guest

cron