COFE Unit Operation in Aspen HYSYS

Moderator: jasper

COFE Unit Operation in Aspen HYSYS

Postby Motad » 11 October 2016, 09:25

Hello,
I use COFE flowsheet as a unit operation inside an Aspen HYSYS flowsheet. I see that the stream flow rate from HYSYS is not transferred properly to the COFE unit operation's inlet stream. For example, the flow in HYSYS is "5000 kgmol/h" but in COFE unit operation's inlet stream it is "5 kgmol/h". How can I solve this issue?

Thank you!!
Motad
 
Posts: 12
Joined: 21 September 2016, 13:11

Re: COFE Unit Operation in Aspen HYSYS

Postby jasper » 11 October 2016, 10:08

Could you perhaps create a log? You can use COULIS (comes with COCO) or COLTT (https://colan.repositoryhosting.com/trac/colan_coltt) to capture the communication between COFE and HYSYS and see on which side the unit conversion error is.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen HYSYS

Postby Motad » 12 October 2016, 07:20

I created a log (attached) and I am not sure which side causes the problem. The "totalFlow" in HYSYS side is 100 mol/s but it is transferred as 0.1 mol/s in COFE flowsheet.
Attachments
HYSYS_COCO.zip
(24.07 KiB) Downloaded 895 times
Motad
 
Posts: 12
Joined: 21 September 2016, 13:11

Re: COFE Unit Operation in Aspen HYSYS

Postby jasper » 12 October 2016, 08:42

Over the CAPE-OPEN pipe line it is 0.1 mol/s - this looks like a unit conversion error on the HYSYS side. I do not have access to HYSYS myself to verify this. Which version of HYSYS is this?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen HYSYS

Postby jasper » 12 October 2016, 08:45

I presume the COFE flowsheet contains more than just the Matlab unit operation that raises the error? If the point of the COFE flowsheet is just to run the Matlab CAPE-OPEN unit operation, this should not be required. You should be able to insert that directly in HYSYS. Of course this will not resolve the unit conversion error.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen HYSYS

Postby Motad » 12 October 2016, 11:52

I'm using HYSYS V8.6.
I tried using MATLAB unit operation directly into HYSYS (without using COFE flowsheet), but I faced a problem saying "Failed to get flow from feed 1" although the ports are connected.
Motad
 
Posts: 12
Joined: 21 September 2016, 13:11

Re: COFE Unit Operation in Aspen HYSYS

Postby jasper » 12 October 2016, 12:00

Can you send me a log on that?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen HYSYS

Postby Motad » 12 October 2016, 13:24

A log file on the problem is attached to this comment.
Attachments
Log.zip
(3.96 KiB) Downloaded 932 times
Motad
 
Posts: 12
Joined: 21 September 2016, 13:11

Re: COFE Unit Operation in Aspen HYSYS

Postby jasper » 12 October 2016, 13:52

I see - it fails to get property "flow". HYSYS should provide that. In the mean time you could adapt your script not to ask for "flow" but to ask for "totalflow" and "fraction", and multiply the two.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: COFE Unit Operation in Aspen HYSYS

Postby Motad » 12 October 2016, 14:31

Good idea!! It solves the problem of using MATLAB unit operation directly in HYSYS, but still the problem with unit conversion remains.
Motad
 
Posts: 12
Joined: 21 September 2016, 13:11

Next

Return to MATLAB Unit Operation (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 0 guests

cron