Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

Hysys<->Matlb With Hysyslib(Olaf Toolbox)


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic
Share this topic:
| More

#1 rgmmelo

rgmmelo

    Brand New Member

  • Members
  • 4 posts

Posted 26 November 2009 - 06:22 PM

Hello, I try to use Hysyslib to export and import variables during dynamic simulation on hysys to matlab. I Can read variables from hysys, but when a I try to change a value in the cell on hysys from matlab, if the hysys run the value is passed with another unit, if stopped the correct value is passed. For exemple
passing(Hysys running) T=450 F the value in hysys change to 752, as 450 was in ºC and not in ºF.
Passing(Hysys running) F=1000 kg-mol/hr, they change to 3.600*10^6 in hysys, that is 1000(Kgmol/hr)*3600 seconds/hr.

I using Hysys 3.2 and Matlab 7.8.0. Any idea to solution this?

Edited by rgmmelo, 26 November 2009 - 06:37 PM.


#2 PSDC_YU

PSDC_YU

    Junior Member

  • Members
  • 17 posts

Posted 02 May 2010 - 04:21 AM

Hello, I try to use Hysyslib to export and import variables during dynamic simulation on hysys to matlab. I Can read variables from hysys, but when a I try to change a value in the cell on hysys from matlab, if the hysys run the value is passed with another unit, if stopped the correct value is passed. For exemple
passing(Hysys running) T=450 F the value in hysys change to 752, as 450 was in ºC and not in ºF.
Passing(Hysys running) F=1000 kg-mol/hr, they change to 3.600*10^6 in hysys, that is 1000(Kgmol/hr)*3600 seconds/hr.

I using Hysys 3.2 and Matlab 7.8.0. Any idea to solution this?


Hi
I dont much about hysys to matlab optimization but u can use the same objective function in excel connected through Visal basic
hope it is use ful to u

regards
khan

#3 joerd

joerd

    Gold Member

  • ChE Plus Subscriber
  • 371 posts

Posted 03 May 2010 - 07:42 AM

Hello, I try to use Hysyslib to export and import variables during dynamic simulation on hysys to matlab.

I don't know how Hysyslib was implemented, and I don't quite see the difference in your examples, but Hysys' internal units are degrees C, and kgmol/s. It looks like your transfer function directly passes the value, without explicitly specifying the units of measurement. You should contact the programmer of Hysyslib and discuss it with him/her.

The correct syntax in Visual Basic would be ProcessStream.Setvalue(450, "F")

#4 Amiemashad

Amiemashad

    Junior Member

  • Members
  • 11 posts

Posted 18 March 2011 - 02:24 PM

Hello, I try to use Hysyslib to export and import variables during dynamic simulation on hysys to matlab. I Can read variables from hysys, but when a I try to change a value in the cell on hysys from matlab, if the hysys run the value is passed with another unit, if stopped the correct value is passed. For exemple
passing(Hysys running) T=450 F the value in hysys change to 752, as 450 was in ºC and not in ºF.
Passing(Hysys running) F=1000 kg-mol/hr, they change to 3.600*10^6 in hysys, that is 1000(Kgmol/hr)*3600 seconds/hr.

I using Hysys 3.2 and Matlab 7.8.0. Any idea to solution this?




I thinks you can help me and I would be very grateful if you guide me.

I want to connect my HYSYS to Matlab, actually I want to get a set of data in hysys automatically by matlab. I wonder do you know what should I do?
I wonder is Hysyslib suitable for my goal?

Thanks in advance





Similar Topics