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

Integration Of Matlab With Aspen Hysys

aspen hysys matlab column tower feed stage

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

#1 Engshimi

Engshimi

    Brand New Member

  • Members
  • 2 posts

Posted 17 March 2017 - 01:23 AM

hi there,

i want to optimize a distillation column with variation of inlet feed stage in matlab environment,

i invoke hysys case in matlab with "actxserver" , for example 

to get the Temperature of colum : 

 

HysysApp = actxserver ('Hysys.Application');
simulation = HysysApp.simulationCase.Open('C:\Users\...');

Tem = simulation.Flowsheet.Operations.Item('T-100').ColumnFlowsheet.TemperaturesValue;

 

but anybody know how i can get the Feed stage  and change the value of it?!!!



#2 sepehrnik

sepehrnik

    Brand New Member

  • Members
  • 1 posts

Posted 17 March 2017 - 05:16 AM

hi there,

i want to optimize a distillation column with variation of inlet feed stage in matlab environment,

i invoke hysys case in matlab with "actxserver" , for example 

to get the Temperature of colum : 

 

HysysApp = actxserver ('Hysys.Application');
simulation = HysysApp.simulationCase.Open('C:\Users\...');

Tem = simulation.Flowsheet.Operations.Item('T-100').ColumnFlowsheet.TemperaturesValue;

 

but anybody know how i can get the Feed stage  and change the value of it?!!!

Hi Engshimi
do you know how to read the units of our streams or blocks using MatLab?
I want to change my component flowrate but when I read it in matlab, it shows me a completely different number which i am sure is in some other units. so I want to know what is that unit and is that possible to change it?
and concerning your problem I think u have to reacall what you want by using spreadsheet and cell in hysys and then recalling your variable in matlab


Edited by sepehrnik, 17 March 2017 - 05:18 AM.


#3 twell

twell

    Junior Member

  • Members
  • 28 posts

Posted 17 March 2017 - 10:30 AM

I would recommend to use the internal optimization procedure,

to optimize a column design (with external applications such as Matlab, Mathcad etc.)  the minimizer in Matlab must call the procedure for solving the column *many* times and you need a fast and stable interface,

an alternative solution could be to use a process library (I have Prode Properties) which links with Mathcad, Matlab etc. and it provides a fast solution for distillation columns.



#4 Engshimi

Engshimi

    Brand New Member

  • Members
  • 2 posts

Posted 17 March 2017 - 11:57 PM

hi sepehrnik , twell

 

Hi Engshimi
do you know how to read the units of our streams or blocks using MatLab?
I want to change my component flowrate but when I read it in matlab, it shows me a completely different number which i am sure is in some other units. so I want to know what is that unit and is that possible to change it?
and concerning your problem I think u have to reacall what you want by using spreadsheet and cell in hysys and then recalling your variable in matlab

w how i can get the Feed stage  and change the value of it?!!!

 

 

The Value property returns the actual value in SI units,

The example below, shows how to get a stream property value in a specific unit using the RealVariable method GetValue.

 

... Feed.Temperature.GetValue('F')

 

I would recommend to use the internal optimization procedure,

to optimize a column design (with external applications such as Matlab, Mathcad etc.)  the minimizer in Matlab must call the procedure for solving the column *many* times and you need a fast and stable interface,

an alternative solution could be to use a process library (I have Prode Properties) which links with Mathcad, Matlab etc. and it provides a fast solution for distillation columns.

 

Feed Stage can not be added to Spreed sheet , Case study and Optimization tools as a variable 

 






Similar Topics