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

Exergy Analysis Of Material Stream On Hysys Using Coding


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

#1 bk1791

bk1791

    Brand New Member

  • Members
  • 7 posts

Posted 17 February 2016 - 02:38 PM

hi

iam doing exergy analysis in hysys of a material stream for that i need to specify user variables i wnated help in this regard i have find the code for the ambient temperature which is 

 

sub variable changed()

on error goto errorhandler

dim MS as streams

dim ST as process stream

dim x as internalvariablewrapper

dim TO as double

TO=activevariablewrapper.variable.getvalue()

set MS=activeobject.flowsheet.materialstreams

for each ST in MS

    set= ST.getuservariable("amb temp")

    X.variable.setvalue(TO)

next ST

errorhandler:

end sub

 

for other variables the author says you only need to change user name in the code of ambient temp[erature so if iam writing this code for ambient pressure so what changes should i have to made 

 

 






Similar Topics