Skip to content

Allow only needing to define the present phases and components in inlet Feed blocks and allow the Mixer unit model to handle it #1718

@tannerpolley

Description

@tannerpolley

Having working on the HDA flowsheet tutorial for a while, I am seeing a potential benefit and clarity for defining the feed/inlet streams with only the present phases and components. For example, in the HDA flowsheet, one inlet only contains liquid Toluene and the other inlet only contains vapor Methane and Benzene. It would be nice if each Feed unit model could take a different property package that only has the necessary phases and components. This would also allow the fixing the inlet states to be more intuitive since you wouldnt have to include very small value in each component and phase when in reality they arent present. I am confident it is mathematically possible and maybe even better for the model to compute. The Mixer unit model would have to be able to handle the different property packages for each inlet stream but that is doable and then create the mixed outlet stream with all components and phases present. All in all this would allow all users a more intuitive approach to creating models.

Potential Preview

  m.fs.I101 = Feed(property_package=m.fs.thermo_params)
  m.fs.I102 = Feed(property_package=m.fs.thermo_params_vap)

  m.fs.M101 = Mixer(
      property_packages=[m.fs.thermo_params, m.fs.thermo_params_vap, m.fs.thermo_params],
      num_inlets=3,
      inlet_list=['inlet_1', 'inlet_2_vapor', 'inlet_3'],
  )

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions