watertap.examples.flowsheets.full_treatment_train.flowsheet_components package

Subpackages

Submodules

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.costing module

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.costing.build_costing(m, costing_package=<class 'watertap.costing.watertap_costing_package.WaterTAPCosting'>, **kwargs)[source]

Add costing to a given flowsheet

Parameters
  • m – model

  • costing_package – FlowsheetCostingBlock

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.desalination module

Desalination flowsheet components

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.desalination.build_desalination(m, has_desal_feed=False, is_twostage=False, has_ERD=False, RO_type='0D', RO_base='TDS', RO_level='simple')[source]

Builds RO desalination including specified feed and auxiliary equipment.

Parameters
  • has_desal_feed – True or False, default = False, if True a feed block is created and specified to the standard feed

  • RO_type – ‘Sep’, ‘0D’, or 1D, default = ‘0D’

  • RO_level – ‘simple’ or ‘detailed’, default = ‘simple’

  • RO_base – ‘TDS’ only, default = ‘ion’

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.desalination.initialize_desalination(m, **kwargs)[source]

Initialized the model created by build_desalination. :param m: pyomo concrete model with a built desalination train :param **kwargs: same keywords as provided to the build_desalination function

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.desalination.scale_desalination(m, **kwargs)[source]

Scales the model created by build_desalination. :param m: pyomo concrete model with a built desalination train :param **kwargs: same keywords as provided to the build_desalination function

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.feed_block module

Feed blocks for supported property packages

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.feed_block.build_feed(m, base='TDS')[source]

Build a feed block for a specified property base. The state vars are fixed to the standard condition. Property bases include: ‘TDS’, ‘ion’, ‘salt’

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.gypsum_saturation_index module

eNRTL property blocks to calculate and constrain gypsum saturation index

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.pretreatment_NF module

Pretreatment flowsheet components

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.pretreatment_NF.build_pretreatment_NF(m, has_bypass=True, NF_type='ZO', NF_base='ion')[source]

Builds NF pretreatment including specified feed and auxiliary equipment. :param has_bypass: True or False, default = True :param NF_type: ‘Sep’ or ‘ZO’, default = ‘ZO’ :param NF_base: ‘ion’ or ‘salt’, default = ‘ion’

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.pretreatment_softening module

Pretreatment flowsheet components

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.pretreatment_softening.build(m)[source]

Builds softening pretreatment including specified feed and auxiliary equipment.

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.translator_block module

Translator blocks for supported property packages

watertap.examples.flowsheets.full_treatment_train.flowsheet_components.translator_block.build_tb(m, base_inlet='ion', base_outlet='TDS', name_str=None)[source]

Build a translator block to convert for the specified base from inlet to outlet.

Module contents