Chemical Engineering October 2016 - 80
UCT STREAMS
For i = 3 To 4
ONLINE ONLY
Variable declaration example
The first step is to declare the
VBA variables for the Hysys HMB file
using the Dim command, and assign
these variables to the simulation.
Dim ProjectSimFile As HYSYS.Application
Dim
ProjectSimulation As SimulationCase
Dim
HMB_stream As ProcessStream
Set
ProjectSimFile
=
CreateObject( " HYSYS.Application " )
ProjectSimFile.Visible
= True
Set ProjectSimulation = ProjectSimFile.ActiveDocument
Set
HMB_stream = ProjectSimulation.Flowsheet.MaterialStreams.
Item( " 100 " )
GetValue
Example
stream_num = Cells(8, 2).Value
set HMB_STREAM = ProjectSimulation.Flowsheet.MaterialStreams.
Item(stream_num)
Cells(10,
2).Value = HMB_
STREAM.MassFlow.GetValue( " lb/
hr " )
Cells(11, 2).Value = HMB_
STREAM.Temperature.GetValue( " F " )
Cells(12, 2).Value = HMB_
STREAM.Pressure.GetValue( " psia " )
Cells(13, 2).Value = HMB_
STREAM.VapourFraction
SetValue Example
In this example we consider a process
feed with different conditions,
temperature, pressure,
composition
and so on, but with the same
process operating parameters. In
this scenario, the SetValue function
would be used to export data from
the HMB to the simulation.
' SET FLASH VESSEL FEED CONDITIONS
stream_num
= Cells(1, 2).Value
Set HMB_stream = ProjectSimulation.Flowsheet.MaterialStreams.
Item(stream_num)
HMB_stream.MassFlow.SetValue
Val:=Cells(3,
2).Value, UNIT:= " lb/hr "
HMB_stream.Temperature.
Val:=Cells(4,
SetValue
UNIT:= " F "
HMB_stream.Pressure.SetValue
Val:=Cells(5, 2).Value, UNIT:= " psia "
Cells(6, 2).Value = HMB_stream.
VapourFraction
' IMPORT FLASH VESSEL PRODCHEMICAL
ENGINEERING WWW.CHEMENGONLINE.COM
OCTOBER 2016
71
2).Value,
stream_num = Cells(1, i).Value
Set HMB_stream = ProjectSimulation.Flowsheet.MaterialStreams.
Item(stream_num)
Cells(3,
i).Value = HMB_stream.
MassFlow.GetValue( " lb/hr " )
Cells(4, i).Value = HMB_stream.
Temperature.GetValue( " F " )
Cells(5, i).Value = HMB_stream.
Pressure.GetValue( " psia " )
Cells(6, i).Value = HMB_stream.
VapourFraction
Next i
S:10 "
T:10.5 "
http://WWW.CHEMENGONLINE.COM
Chemical Engineering October 2016
Table of Contents for the Digital Edition of Chemical Engineering October 2016
Contents
Chemical Engineering October 2016 - Cover1
Chemical Engineering October 2016 - Cover2
Chemical Engineering October 2016 - Contents
Chemical Engineering October 2016 - 2
Chemical Engineering October 2016 - 3
Chemical Engineering October 2016 - 4
Chemical Engineering October 2016 - 5
Chemical Engineering October 2016 - 6
Chemical Engineering October 2016 - 7
Chemical Engineering October 2016 - 8
Chemical Engineering October 2016 - 9
Chemical Engineering October 2016 - 10
Chemical Engineering October 2016 - 11
Chemical Engineering October 2016 - 12
Chemical Engineering October 2016 - 13
Chemical Engineering October 2016 - 14
Chemical Engineering October 2016 - 15
Chemical Engineering October 2016 - 16
Chemical Engineering October 2016 - 17
Chemical Engineering October 2016 - 18
Chemical Engineering October 2016 - 19
Chemical Engineering October 2016 - 20
Chemical Engineering October 2016 - 21
Chemical Engineering October 2016 - 22
Chemical Engineering October 2016 - 23
Chemical Engineering October 2016 - 24
Chemical Engineering October 2016 - 25
Chemical Engineering October 2016 - 26
Chemical Engineering October 2016 - 27
Chemical Engineering October 2016 - 28
Chemical Engineering October 2016 - 29
Chemical Engineering October 2016 - 30
Chemical Engineering October 2016 - 31
Chemical Engineering October 2016 - 32
Chemical Engineering October 2016 - 33
Chemical Engineering October 2016 - 34
Chemical Engineering October 2016 - 35
Chemical Engineering October 2016 - 36
Chemical Engineering October 2016 - 37
Chemical Engineering October 2016 - 38
Chemical Engineering October 2016 - 39
Chemical Engineering October 2016 - 40
Chemical Engineering October 2016 - 41
Chemical Engineering October 2016 - 42
Chemical Engineering October 2016 - 43
Chemical Engineering October 2016 - 44
Chemical Engineering October 2016 - 45
Chemical Engineering October 2016 - 46
Chemical Engineering October 2016 - 47
Chemical Engineering October 2016 - 48
Chemical Engineering October 2016 - 49
Chemical Engineering October 2016 - 50
Chemical Engineering October 2016 - 51
Chemical Engineering October 2016 - 52
Chemical Engineering October 2016 - 53
Chemical Engineering October 2016 - 54
Chemical Engineering October 2016 - 55
Chemical Engineering October 2016 - 56
Chemical Engineering October 2016 - 57
Chemical Engineering October 2016 - 58
Chemical Engineering October 2016 - 59
Chemical Engineering October 2016 - 60
Chemical Engineering October 2016 - 61
Chemical Engineering October 2016 - 62
Chemical Engineering October 2016 - 63
Chemical Engineering October 2016 - 64
Chemical Engineering October 2016 - 65
Chemical Engineering October 2016 - 66
Chemical Engineering October 2016 - 67
Chemical Engineering October 2016 - 68
Chemical Engineering October 2016 - 69
Chemical Engineering October 2016 - 70
Chemical Engineering October 2016 - 71
Chemical Engineering October 2016 - 72
Chemical Engineering October 2016 - 73
Chemical Engineering October 2016 - 74
Chemical Engineering October 2016 - 75
Chemical Engineering October 2016 - 76
Chemical Engineering October 2016 - 77
Chemical Engineering October 2016 - 78
Chemical Engineering October 2016 - 79
Chemical Engineering October 2016 - 80
Chemical Engineering October 2016 - 81
Chemical Engineering October 2016 - 82
Chemical Engineering October 2016 - 83
Chemical Engineering October 2016 - 84
Chemical Engineering October 2016 - 85
Chemical Engineering October 2016 - 86
Chemical Engineering October 2016 - 87
Chemical Engineering October 2016 - 88
Chemical Engineering October 2016 - 89
Chemical Engineering October 2016 - 90
Chemical Engineering October 2016 - Cover3
Chemical Engineering October 2016 - Cover4
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_september-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_august-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_july-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che-achema1_june-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_june-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_may-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_april-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_march-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_february-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_january-2024
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_november-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/che_december-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering_october-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2023
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-intl-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-intl-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-intl-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-intl-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2022
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2021
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2020
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2019
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2018
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2017
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2016
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2015
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2014
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2013
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2012
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-april-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-march-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-february-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-january-2011
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-december-2010
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-november-2010
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-october-2010
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-september-2010
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-august-2010
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-july-2010
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-june-2010
https://www.nxtbook.com/accessintelligence/ChemicalEngineering/chemical-engineering-may-2010
https://www.nxtbookmedia.com