Hi everyone,
I am struggling to add Inlet stream to compressor using VBA.
So like Set Compressor.Property("InletStream") = "MyStream"
Does anyone know how to fix this?
Thank you in advance!
|
|
Posted 30 July 2024 - 02:37 AM
Hi everyone,
I am struggling to add Inlet stream to compressor using VBA.
So like Set Compressor.Property("InletStream") = "MyStream"
Does anyone know how to fix this?
Thank you in advance!
Posted 06 August 2024 - 03:14 AM
Hello!
I've managed to figure out so in case anyone needs the answer:
Dim Compressor As HYSYS.CompressOp
Set Compressor = hyCase.Flowsheet.Operations.Add("compressor_name", "compressor")
Set Compressor = hyCase.Flowsheet.Operations().Item("compressor_name")
Dim InletStream As HYSYS.ProcessStream
Set InletStream = hyCase.Flowsheet.MaterialStreams.Add("InletStream")
Set InletStream = hyCase.Flowsheet.MaterialStreams("InletStream")
Compressor.FeedStream = InletStream
ProductStream is Outlet Stream and Energy stream is energy stream ![]()
Edited by Matylda, 06 August 2024 - 03:14 AM.
Posted 14 August 2024 - 12:22 AM
What are you trying to accomplish? Are you trying to define streams on the fly?
Posted 21 August 2024 - 06:39 AM
I was creating a stream that later goes as an inlet to compressor
Posted 22 August 2024 - 02:30 AM
Is it not possible to add it via normal means at the flowsheet?
Why is there a need to use VBA to create a stream?
The Basis Of Calculation To 3% Pressure Loss At The Inlet Of PressureStarted by Guest_phoenixmoca_* , 14 Mar 2026 |
|
|
||
Centrifugal Compressor Cmpression Ratio /discharge Temperature LimitStarted by Guest_Lyne_* , 16 Mar 2026 |
|
|
||
Beginner Question: Inlet Separator Design In Aspen Hysys (Natural Gas,Started by Guest_NewEng2030_* , 12 Feb 2026 |
|
|
||
Compressor Selection Based On Flowrate & Compression RatioStarted by Guest_Dhams_* , 19 Jan 2026 |
|
|
||
Lowering Energy Consumption Of A Gas CompressorStarted by Guest_zbrna_* , 22 Dec 2025 |
|
|