Duplicator#

class Duplicator(ID='', ins=None, outs=(), thermo=None, **kwargs)[source]#

Create a Duplicator object that takes in one inlet stream and duplicates it to all outlet streams.

Parameters:
  • ins (Stream], optional) – Inlet stream.

  • outs (Stream], optional) – Duplicated outlet streams.

Examples

Create a Duplicator object with an ID and any number of outlet streams:

>>> from biosteam import settings, Stream, units
>>> settings.set_thermo(['Water', 'Ethanol'], cache=True)
>>> feed = Stream('feed', Water=20, Ethanol=10, T=340)
>>> D1 = units.Duplicator('D1', ins=feed, outs=('out_a', 'out_b', 'out_c'))
>>> D1.simulate()
>>> D1.show()
Duplicator: D1
ins...
[0] feed
    phase: 'l', T: 340 K, P: 101325 Pa
    flow (kmol/hr): Water    20
                    Ethanol  10
outs...
[0] out_a
    phase: 'l', T: 340 K, P: 101325 Pa
    flow (kmol/hr): Water    20
                    Ethanol  10
[1] out_b
    phase: 'l', T: 340 K, P: 101325 Pa
    flow (kmol/hr): Water    20
                    Ethanol  10
[2] out_c
    phase: 'l', T: 340 K, P: 101325 Pa
    flow (kmol/hr): Water    20
                    Ethanol  10
line: str = 'Duplicator'#

class-attribute Name denoting the type of Unit class. Defaults to the class name of the first child class

heat_utilities: list[HeatUtility, ...]#

All heat utilities associated to unit. Cooling and heating requirements are stored here (including auxiliary requirements).

power_utility: PowerUtility#

Electric utility associated to unit (including auxiliary requirements).

F_BM: dict[str, float]#

All bare-module factors for each purchase cost. Defaults to values in the class attribute _F_BM_default.

F_D: dict[str, float]#

All design factors for each purchase cost item in baseline_purchase_costs.

F_P: dict[str, float]#

All pressure factors for each purchase cost item in baseline_purchase_costs.

F_M: dict[str, float]#

All material factors for each purchase cost item in baseline_purchase_costs.

design_results: dict[str, object]#

All design requirements excluding utility requirements and detailed auxiliary unit requirements.

baseline_purchase_costs: dict[str, float]#

All baseline purchase costs without accounting for design, pressure, and material factors.

purchase_costs: dict[str, float]#

Itemized purchase costs (including auxiliary units) accounting for design, pressure, and material factors (i.e., F_D, F_P, F_M). Items here are automatically updated at the end of unit simulation.

installed_costs: dict[str, float]#

All installed costs accounting for bare module, design, pressure, and material factors. Items here are automatically updated at the end of unit simulation.

equipment_lifetime: int | dict[str, int]#

Lifetime of equipment. Defaults to values in the class attribute _default_equipment_lifetime. Use an integer to specify the lifetime for all items in the unit purchase costs. Use a dictionary to specify the lifetime of each purchase cost item.

run_after_specifications: bool#

Whether to run mass and energy balance after calling specification functions

prioritize: bool#

Whether to prioritize unit operation specification within recycle loop (if any).

parallel: dict[str, int]#

Name-number pairs of baseline purchase costs and auxiliary unit operations in parallel. Use ‘self’ to refer to the main unit. Capital and heat and power utilities in parallel will become proportional to this value.

responses: set[GenericResponse]#

Unit design decisions that must be solved to satisfy specifications. While adding responses is optional, simulations benefit from responses by being able to predict better guesses.