From 8a57a879d4170f6b46f063200a9473780a29f8fe Mon Sep 17 00:00:00 2001 From: "fabian.wuellhorst" Date: Tue, 14 Nov 2023 16:54:22 +0100 Subject: [PATCH] Add comparative validation for heat pumps as well --- .../BaseClasses/PartialChillerComparison.mo | 2 +- .../BaseClasses/PartialModularComparison.mo | 4 +- .../ModularReversible/Validation/Carnot_y.mo | 2 +- .../Validation/ConstantQualityGrade.mo | 1 - .../Validation/CarnotConstantQuality.mo | 3 +- .../BaseClasses/PartialComparison.mo | 111 ++++++++++++++++++ .../BaseClasses/PartialModularComparison.mo | 72 ++++++++++++ .../Comparative/BaseClasses/package.mo | 10 ++ .../Comparative/BaseClasses/package.order | 2 + .../Validation/Comparative/Carnot_y.mo | 61 ++++++++++ .../Comparative/ConstantQualityGrade.mo | 29 +++++ .../Validation/Comparative/TableData2D.mo | 42 +++++++ .../Validation/Comparative/package.mo | 13 ++ .../Validation/Comparative/package.order | 4 + .../Validation/package.order | 1 + .../Validation/Comparative/Carnot_y.mos | 5 + .../Comparative/ConstantQualityGrade.mos | 5 + .../Validation/Comparative/TableData2D.mos | 5 + 18 files changed, 366 insertions(+), 6 deletions(-) create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/BaseClasses/PartialComparison.mo create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/BaseClasses/PartialModularComparison.mo create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/BaseClasses/package.mo create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/BaseClasses/package.order create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/Carnot_y.mo create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/ConstantQualityGrade.mo create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/TableData2D.mo create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/package.mo create mode 100644 IBPSA/Fluid/HeatPumps/ModularReversible/Validation/Comparative/package.order create mode 100644 IBPSA/Resources/Scripts/Dymola/Fluid/HeatPumps/ModularReversible/Validation/Comparative/Carnot_y.mos create mode 100644 IBPSA/Resources/Scripts/Dymola/Fluid/HeatPumps/ModularReversible/Validation/Comparative/ConstantQualityGrade.mos create mode 100644 IBPSA/Resources/Scripts/Dymola/Fluid/HeatPumps/ModularReversible/Validation/Comparative/TableData2D.mos diff --git a/IBPSA/Fluid/Chillers/ModularReversible/Validation/BaseClasses/PartialChillerComparison.mo b/IBPSA/Fluid/Chillers/ModularReversible/Validation/BaseClasses/PartialChillerComparison.mo index fe3aad6430..e1fb8d8db6 100644 --- a/IBPSA/Fluid/Chillers/ModularReversible/Validation/BaseClasses/PartialChillerComparison.mo +++ b/IBPSA/Fluid/Chillers/ModularReversible/Validation/BaseClasses/PartialChillerComparison.mo @@ -1,5 +1,5 @@ within IBPSA.Fluid.Chillers.ModularReversible.Validation.BaseClasses; -model PartialChillerComparison +partial model PartialChillerComparison "Partial model to allow chiller model comparison" package Medium1 = IBPSA.Media.Water "Medium model"; package Medium2 = IBPSA.Media.Water "Medium model"; diff --git a/IBPSA/Fluid/Chillers/ModularReversible/Validation/BaseClasses/PartialModularComparison.mo b/IBPSA/Fluid/Chillers/ModularReversible/Validation/BaseClasses/PartialModularComparison.mo index ccb2fac87b..806ef30c28 100644 --- a/IBPSA/Fluid/Chillers/ModularReversible/Validation/BaseClasses/PartialModularComparison.mo +++ b/IBPSA/Fluid/Chillers/ModularReversible/Validation/BaseClasses/PartialModularComparison.mo @@ -1,5 +1,5 @@ within IBPSA.Fluid.Chillers.ModularReversible.Validation.BaseClasses; -model PartialModularComparison +partial model PartialModularComparison "Partial model for comparison to Carnot_y" extends BaseClasses.PartialChillerComparison( m1_flow_nominal=chi.mCon_flow_nominal, @@ -39,7 +39,7 @@ model PartialModularComparison final TCon_start=T1_start, final TEva_start=T2_start, final energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) - "Carnot chiller" + "Modular chiller model" annotation (Placement(transformation(extent={{-10,-12},{10,12}}))); equation diff --git a/IBPSA/Fluid/Chillers/ModularReversible/Validation/Carnot_y.mo b/IBPSA/Fluid/Chillers/ModularReversible/Validation/Carnot_y.mo index 388629b1bc..6594f8e503 100644 --- a/IBPSA/Fluid/Chillers/ModularReversible/Validation/Carnot_y.mo +++ b/IBPSA/Fluid/Chillers/ModularReversible/Validation/Carnot_y.mo @@ -42,7 +42,7 @@ equation annotation (Line(points={{-14,9},{-14,50},{-39,50}}, color={0,0,127})); annotation (experiment(Tolerance=1e-6, StopTime=3600), -__Dymola_Commands(file="modelica://IBPSA/Resources/Scripts/Dymola/Fluid/Chillers/Examples/Carnot_y.mos" +__Dymola_Commands(file="modelica://IBPSA/Resources/Scripts/Dymola/Fluid/Chillers/ModularReversible/Validation/Carnot_y.mos" "Simulate and plot"), Documentation(revisions="