Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding surrogate option for CPHSDM calculations #1548

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions watertap/unit_models/gac.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@


# ---------------------------------------------------------------------
class CPHSDMCalculationMethod(Enum):
input = auto() # calculate CPHSDM model by inputting empirical parameters
surrogate = auto() # calculate CPHSDM model using pre-trained surrogate


class FilmTransferCoefficientType(Enum):
fixed = auto() # liquid phase film transfer coefficient is a user specified value
calculated = (
Expand Down Expand Up @@ -181,6 +186,19 @@ class GACData(InitializationMixin, UnitModelBlockData):
**MomentumBalanceType.momentumPhase** - momentum balances for each phase.}""",
),
)
CONFIG.declare(
"cphsdm_calaculation_method",
ConfigValue(
default=CPHSDMCalculationMethod.input,
domain=In(CPHSDMCalculationMethod),
description="CPHSDM calculation method",
doc="""Select the method of calculations for the empirical CPHSDM expressions
**default** - CPHSDMCalculationMethod.input.
**Valid values:** {
**CPHSDMCalculationMethod.input** - calculate CPHSDM model by inputting empirical parameterse,
**CPHSDMCalculationMethod.surrogate** - calculate CPHSDM model using pre-trained surrogate}""",
),
)
CONFIG.declare(
"film_transfer_coefficient_type",
ConfigValue(
Expand Down
Loading