Menu

Get list of all Material streams in Python

2022-06-08
2022-06-08
  • Hannes Schneider

    Hi all,
    is there a way to get all material streams in a flowsheet including their properties?

    I can get a specific Material Stream of a flowsheet with:
    DWSIM.Interfaces.IFlowsheet.GetFlowsheetSimulationObject(<objectname>)

    And Material streams of a Unit operation by:
    StreamListExtender.GetInletMaterialStream Method

    But shouldnt there be a way to get all Material streams, with all properties, like the Materialstream table in the GUI?

     
  • Daniel Medeiros

    Daniel Medeiros - 2022-06-08

    You can use iterate through Flowsheet.SimulationObjects.Values and check which ones are material streams.

     

Log in to post a comment.