From 9522f55e0fce8b2438a56651b39de64a4cbc36b9 Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Fri, 9 Aug 2024 13:26:57 -0500 Subject: [PATCH 01/46] use MBLv11 paths in templates --- .../ComponentDefinitions.mopt | 2 +- .../templates/DistrictEnergySystem5G.mot | 2 +- .../templates/SpawnBuilding.mot | 14 +++++------ .../templates/SpawnCouplingBuilding.mot | 12 +++++----- .../templates/TeaserBuilding.mot | 14 +++++------ .../templates/TeaserCouplingBuilding.mot | 12 +++++----- .../templates/TimeSeriesBuilding.mot | 24 +++++++++---------- .../templates/TimeSeriesBuildingWithETS.mot | 8 +++---- .../templates/getPeakMassFlowRate.mot | 4 ++-- .../networks/network_2_pipe.py | 2 +- .../templates/ConnectionSeriesAutosize.mo | 4 ++-- .../NetworkDistributionPump_Instance.mopt | 2 +- .../templates/UnidirectionalSeries.mo | 6 ++--- .../Components/Plants/Cooling/CoolingPlant.mo | 4 ++-- .../Plants/Cooling/CoolingPlant.mot | 2 +- .../modelica/GMT_Lib/DHC/DHC_5G_partial.mot | 22 ++++++++--------- .../GMT_Lib/DHC/DHC_5G_waste_heat_GHX.mot | 2 +- .../DHC/DHC_5G_waste_heat_GHX_variable.mot | 8 +++---- geojson_modelica_translator/utils.py | 2 +- tests/GMT_Lib/__snapshots__/test_gmt_lib.ambr | 4 ++-- tests/GMT_Lib/test_gmt_lib.py | 2 +- .../B5a6b99ec37f4de7f94020090/building.mo | 14 +++++------ 22 files changed, 83 insertions(+), 83 deletions(-) diff --git a/geojson_modelica_translator/model_connectors/couplings/5G_templates/NetworkDistributionPump_NetworkDistributionPump/ComponentDefinitions.mopt b/geojson_modelica_translator/model_connectors/couplings/5G_templates/NetworkDistributionPump_NetworkDistributionPump/ComponentDefinitions.mopt index de61c03ef..7abffcdfe 100644 --- a/geojson_modelica_translator/model_connectors/couplings/5G_templates/NetworkDistributionPump_NetworkDistributionPump/ComponentDefinitions.mopt +++ b/geojson_modelica_translator/model_connectors/couplings/5G_templates/NetworkDistributionPump_NetworkDistributionPump/ComponentDefinitions.mopt @@ -1,5 +1,5 @@ inner parameter - Buildings.Experimental.DHC.Examples.Combined.BaseClasses.DesignDataSeries + Buildings.DHC.Examples.Combined.BaseClasses.DesignDataSeries datDes( nBui={{ sys_params.num_buildings }}, {% if sys_params.district_system.fifth_generation.ghe_parameters.design.flow_type == 'borehole' %} diff --git a/geojson_modelica_translator/model_connectors/districts/templates/DistrictEnergySystem5G.mot b/geojson_modelica_translator/model_connectors/districts/templates/DistrictEnergySystem5G.mot index ba4fdaee3..d4d04bfb6 100644 --- a/geojson_modelica_translator/model_connectors/districts/templates/DistrictEnergySystem5G.mot +++ b/geojson_modelica_translator/model_connectors/districts/templates/DistrictEnergySystem5G.mot @@ -13,7 +13,7 @@ model DistrictEnergySystem parameter Modelica.Units.SI.TemperatureDifference delHeaWatTemDis(displayUnit="degC")=12; parameter Modelica.Units.SI.TemperatureDifference delHeaWatTemBui(displayUnit="degC")=5; parameter Integer numberofchillers = 2; - inner parameter Buildings.Experimental.DHC.Examples.Combined.BaseClasses.DesignDataSeries datDes( + inner parameter Buildings.DHC.Examples.Combined.BaseClasses.DesignDataSeries datDes( nBui=1, mPumDis_flow_nominal=95, mPipDis_flow_nominal=95, diff --git a/geojson_modelica_translator/model_connectors/load_connectors/templates/SpawnBuilding.mot b/geojson_modelica_translator/model_connectors/load_connectors/templates/SpawnBuilding.mot index 845518326..cabe5f9c7 100644 --- a/geojson_modelica_translator/model_connectors/load_connectors/templates/SpawnBuilding.mot +++ b/geojson_modelica_translator/model_connectors/load_connectors/templates/SpawnBuilding.mot @@ -1,7 +1,7 @@ within {{project_name}}.Loads.{{model_name}}; model building "n-zone EnergyPlus building model based on URBANopt GeoJSON export, with distribution pumps" - extends Buildings.Experimental.DHC.Loads.BaseClasses.PartialBuilding( + extends Buildings.DHC.Loads.BaseClasses.PartialBuilding( redeclare package Medium=Buildings.Media.Water, final have_eleHea={{ data['nominal_values']['has_electric_heating'] }}, final have_eleCoo={{ data['nominal_values']['has_electric_cooling'] }}, @@ -94,7 +94,7 @@ model building Buildings.Controls.OBC.CDL.Reals.MultiSum mulSum3( nin=2) if have_pum annotation (Placement(transformation(extent={{260,70},{280,90}}))); - Buildings.Experimental.DHC.Loads.BaseClasses.Examples.BaseClasses.FanCoil4Pipe terUni[nZon]( + Buildings.DHC.Loads.BaseClasses.Examples.BaseClasses.FanCoil4Pipe terUni[nZon]( each T_aChiWat_nominal=T_aChiWat_nominal, each T_bChiWat_nominal=T_bChiWat_nominal, redeclare each final package Medium1=MediumW, @@ -112,7 +112,7 @@ model building final mLoaCoo_flow_nominal=mLoaCoo_flow_nominal) "Terminal unit" annotation (Placement(transformation(extent={{-140,-2},{-120,20}}))); - Buildings.Experimental.DHC.Loads.BaseClasses.FlowDistribution disFloHea( + Buildings.DHC.Loads.BaseClasses.FlowDistribution disFloHea( redeclare package Medium=MediumW, allowFlowReversal=true, m_flow_nominal=sum( @@ -123,12 +123,12 @@ model building nPorts_b1=nZon) "Heating water distribution system" annotation (Placement(transformation(extent={{-236,-188},{-216,-168}}))); - Buildings.Experimental.DHC.Loads.BaseClasses.FlowDistribution disFloCoo( + Buildings.DHC.Loads.BaseClasses.FlowDistribution disFloCoo( redeclare package Medium=MediumW, allowFlowReversal=true, m_flow_nominal=sum( terUni.mChiWat_flow_nominal .* terUni.facMulZon), - typDis=Buildings.Experimental.DHC.Loads.BaseClasses.Types.DistributionType.ChilledWater, + typDis=Buildings.DHC.Loads.BaseClasses.Types.DistributionType.ChilledWater, dp_nominal=100000, have_pum=have_pum, nPorts_a1=nZon, @@ -212,8 +212,8 @@ model building It was generated from translating a GeoJSON model specified within URBANopt UI. The heating and cooling loads are computed with a four-pipe fan coil unit model derived from - - Buildings.Experimental.DHC.Loads.BaseClasses.PartialTerminalUnit + + Buildings.DHC.Loads.BaseClasses.PartialTerminalUnit and connected to the room model by means of fluid ports.

", diff --git a/geojson_modelica_translator/model_connectors/load_connectors/templates/SpawnCouplingBuilding.mot b/geojson_modelica_translator/model_connectors/load_connectors/templates/SpawnCouplingBuilding.mot index f8b332b10..8656e50aa 100644 --- a/geojson_modelica_translator/model_connectors/load_connectors/templates/SpawnCouplingBuilding.mot +++ b/geojson_modelica_translator/model_connectors/load_connectors/templates/SpawnCouplingBuilding.mot @@ -84,13 +84,13 @@ model coupling info="

This example illustrates the use of - -Buildings.Experimental.DHC.Loads.BaseClasses.PartialBuilding, - -Buildings.Experimental.DHC.Loads.BaseClasses.PartialTerminalUnit + +Buildings.DHC.Loads.BaseClasses.PartialBuilding, + +Buildings.DHC.Loads.BaseClasses.PartialTerminalUnit and - -Buildings.Experimental.DHC.Loads.BaseClasses.FlowDistribution + +Buildings.DHC.Loads.BaseClasses.FlowDistribution in a configuration with: