Use the Clone() function to create a clone of the stream, then use SetFlowsheet(Flowsheet) to associate it with the current flowsheet. If you're going to do thermo calculations with the temporary stream, don't forget to get the property package instance from any other object/stream and set its CurrentMaterialStream property to the cloned stream itself.
Daniel
Last edit: SourceForge Support 2021-12-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Last edit: Anonymous 2021-12-15
Hi
<redacted>
,Just create a cloned material stream from any other stream attached to the UO. This is how I do on various unit operation models (see https://github.com/DanWBR/dwsim4/blob/master/DWSIM.UnitOperations/Reactors/Gibbs.vb#L806)
Use the Clone() function to create a clone of the stream, then use SetFlowsheet(Flowsheet) to associate it with the current flowsheet. If you're going to do thermo calculations with the temporary stream, don't forget to get the property package instance from any other object/stream and set its CurrentMaterialStream property to the cloned stream itself.
Daniel
Last edit: SourceForge Support 2021-12-20