COFE Unit Operation in Aspen HYSYS

Moderator: jasper

Motad
Posts: 12
Joined: 21 September 2016, 13:11

COFE Unit Operation in Aspen HYSYS

Post by Motad »

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!!
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: COFE Unit Operation in Aspen HYSYS

Post by jasper »

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.
Motad
Posts: 12
Joined: 21 September 2016, 13:11

Re: COFE Unit Operation in Aspen HYSYS

Post by Motad »

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 1366 times
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: COFE Unit Operation in Aspen HYSYS

Post by jasper »

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: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: COFE Unit Operation in Aspen HYSYS

Post by jasper »

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.
Motad
Posts: 12
Joined: 21 September 2016, 13:11

Re: COFE Unit Operation in Aspen HYSYS

Post by Motad »

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.
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: COFE Unit Operation in Aspen HYSYS

Post by jasper »

Can you send me a log on that?
Motad
Posts: 12
Joined: 21 September 2016, 13:11

Re: COFE Unit Operation in Aspen HYSYS

Post by Motad »

A log file on the problem is attached to this comment.
Attachments
Log.zip
(3.96 KiB) Downloaded 1405 times
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: COFE Unit Operation in Aspen HYSYS

Post by jasper »

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.
Motad
Posts: 12
Joined: 21 September 2016, 13:11

Re: COFE Unit Operation in Aspen HYSYS

Post by Motad »

Good idea!! It solves the problem of using MATLAB unit operation directly in HYSYS, but still the problem with unit conversion remains.
Post Reply

Return to “MATLAB Unit Operation (AmsterCHEM)”