Menu

Temporary material stream during python calculation

Anonymous
2017-02-15
2017-02-15
  • Anonymous

    Anonymous - 2017-02-15
     

    Last edit: Anonymous 2021-12-15
  • Daniel Medeiros

    Daniel Medeiros - 2017-02-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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.