Source code for watertap.examples.flowsheets.full_treatment_train.model_components.separator

###############################################################################
# WaterTAP Copyright (c) 2021, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory, Oak Ridge National
# Laboratory, National Renewable Energy Laboratory, and National Energy
# Technology Laboratory (subject to receipt of any required approvals from
# the U.S. Dept. of Energy). All rights reserved.
#
# Please see the files COPYRIGHT.md and LICENSE.md for full copyright and license
# information, respectively. These files are also available online at the URL
# "https://github.com/watertap-org/watertap/"
#
###############################################################################

from pyomo.environ import Constraint
# Import IDAES cores
from idaes.generic_models.unit_models.separator import SeparatorData
from idaes.core import declare_process_block_class
from pyomo.environ import Block

import idaes.logger as idaeslog

_log = idaeslog.getLogger(__name__)

[docs]@declare_process_block_class("Separator") class SeparatorData(SeparatorData): """ Standard Separator Unit Model Class with get_costing method added in. """
[docs] def build(self): super().build()
def calculate_scaling_factors(self): super().calculate_scaling_factors() def get_costing(self, module=None, **kwargs): self.costing = Block() module.Separator_costing(self.costing, **kwargs)