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

0

Changing Feed Stream In Hysys Using Excel Vba Or Matlab

hysys matlab vba

1 reply to this topic
Share this topic:
| More

#1 hash094

hash094

    Brand New Member

  • Members
  • 2 posts

Posted 06 January 2018 - 05:29 AM

Hello,

 

In my case i am using matlab interfacing to change compositions of feed stream. basically changing each component of stream by multiple values such as 1%,2%,3%. Although I have successfully written the code to implement change, but after each component change and subsequent simulation run, I have to reset the feed stream to original values in order for next change (eg 2%).

 

for now i have just made clones of feed streams and i just manually change feed stream after each run.

 

Thus it would be great if i could automate the process of resetting feed stream, as it would save me a lot of time.

 

IF required further clarity on question do let me know, and Thanks for your consideration.

 

 

 



#2 Bobby Strain

Bobby Strain

    Gold Member

  • Members
  • 2,700 posts

Posted 06 January 2018 - 11:09 PM

Why not use absolute values instead of relative values? Such as moles/hr. You must program Matlab such that you make changes in Matlab then poke them back into the simulator. I don't use Matlab, but I do similar things with Excel automation.

 

Bobby






Similar Topics