From d38038b53916de16ecfaf71e24ab6501b904898c Mon Sep 17 00:00:00 2001 From: hcasperfu Date: Wed, 28 Feb 2024 13:45:45 -0800 Subject: [PATCH 01/13] moved models --- .../Multizone/BaseClasses/Examples/package.order | 1 - IBPSA/Airflow/Multizone/BaseClasses/package.order | 1 - IBPSA/Airflow/Multizone/Table_m_flow.mo | 2 +- ..._Utilities_Math_Functions_Examples_Interpolate.txt} | 0 .../Math/Functions}/Examples/Interpolate.mos | 2 +- .../Math/Functions}/Examples/Interpolate.mo | 10 +++++----- IBPSA/Utilities/Math/Functions/Examples/package.order | 1 + .../Math/Functions}/interpolate.mo | 2 +- IBPSA/Utilities/Math/Functions/package.order | 1 + 9 files changed, 10 insertions(+), 10 deletions(-) rename IBPSA/Resources/ReferenceResults/Dymola/{IBPSA_Airflow_Multizone_BaseClasses_Examples_Interpolate.txt => IBPSA_Utilities_Math_Functions_Examples_Interpolate.txt} (100%) rename IBPSA/Resources/Scripts/Dymola/{Airflow/Multizone/BaseClasses => Utilities/Math/Functions}/Examples/Interpolate.mos (62%) rename IBPSA/{Airflow/Multizone/BaseClasses => Utilities/Math/Functions}/Examples/Interpolate.mo (83%) rename IBPSA/{Airflow/Multizone/BaseClasses => Utilities/Math/Functions}/interpolate.mo (98%) diff --git a/IBPSA/Airflow/Multizone/BaseClasses/Examples/package.order b/IBPSA/Airflow/Multizone/BaseClasses/Examples/package.order index e841c46bf2..d11030019d 100644 --- a/IBPSA/Airflow/Multizone/BaseClasses/Examples/package.order +++ b/IBPSA/Airflow/Multizone/BaseClasses/Examples/package.order @@ -1,4 +1,3 @@ -Interpolate PowerLaw PowerLawFixedM WindPressureLowRise diff --git a/IBPSA/Airflow/Multizone/BaseClasses/package.order b/IBPSA/Airflow/Multizone/BaseClasses/package.order index 698bba52a4..ab4a1d1fef 100644 --- a/IBPSA/Airflow/Multizone/BaseClasses/package.order +++ b/IBPSA/Airflow/Multizone/BaseClasses/package.order @@ -6,7 +6,6 @@ PowerLawResistanceParameters TwoWayFlowElement TwoWayFlowElementBuoyancy ZonalFlow -interpolate powerLaw powerLawFixedM windPressureLowRise diff --git a/IBPSA/Airflow/Multizone/Table_m_flow.mo b/IBPSA/Airflow/Multizone/Table_m_flow.mo index f736baf4b8..f17dd0c252 100644 --- a/IBPSA/Airflow/Multizone/Table_m_flow.mo +++ b/IBPSA/Airflow/Multizone/Table_m_flow.mo @@ -2,7 +2,7 @@ within IBPSA.Airflow.Multizone; model Table_m_flow "Mass flow(y-axis) vs Pressure(x-axis) cubic spline fit model based from table data, with last two points linearly interpolated" extends IBPSA.Airflow.Multizone.BaseClasses.PartialOneWayFlowElement( - m_flow = IBPSA.Airflow.Multizone.BaseClasses.interpolate( + m_flow = IBPSA.Utilities.Math.Functions.interpolate( u=dp, xd=dpMea_nominal, yd=mMea_flow_nominal, diff --git a/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Airflow_Multizone_BaseClasses_Examples_Interpolate.txt b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Utilities_Math_Functions_Examples_Interpolate.txt similarity index 100% rename from IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Airflow_Multizone_BaseClasses_Examples_Interpolate.txt rename to IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Utilities_Math_Functions_Examples_Interpolate.txt diff --git a/IBPSA/Resources/Scripts/Dymola/Airflow/Multizone/BaseClasses/Examples/Interpolate.mos b/IBPSA/Resources/Scripts/Dymola/Utilities/Math/Functions/Examples/Interpolate.mos similarity index 62% rename from IBPSA/Resources/Scripts/Dymola/Airflow/Multizone/BaseClasses/Examples/Interpolate.mos rename to IBPSA/Resources/Scripts/Dymola/Utilities/Math/Functions/Examples/Interpolate.mos index 8d1f874fd5..a684903a75 100644 --- a/IBPSA/Resources/Scripts/Dymola/Airflow/Multizone/BaseClasses/Examples/Interpolate.mos +++ b/IBPSA/Resources/Scripts/Dymola/Utilities/Math/Functions/Examples/Interpolate.mos @@ -1,2 +1,2 @@ -simulateModel("IBPSA.Airflow.Multizone.BaseClasses.Examples.Interpolate", stopTime=500, tolerance=1e-06, resultFile="Interpolate"); +simulateModel("IBPSA.Utilities.Math.Functions.Examples.Interpolate", stopTime=500, tolerance=1e-06, resultFile="Interpolate"); createPlot(id=1, position={15, 15, 584, 361}, x="dp", y={"m_flow"}, range={-50.0, 50.0, -0.1, 0.04000000000000001}, grid=true, filename="Interpolate.mat", colors={{28,108,200}}, timeUnit="Pa", displayUnits={"kg/s"}); diff --git a/IBPSA/Airflow/Multizone/BaseClasses/Examples/Interpolate.mo b/IBPSA/Utilities/Math/Functions/Examples/Interpolate.mo similarity index 83% rename from IBPSA/Airflow/Multizone/BaseClasses/Examples/Interpolate.mo rename to IBPSA/Utilities/Math/Functions/Examples/Interpolate.mo index d8bc5892ce..62f3e9559c 100644 --- a/IBPSA/Airflow/Multizone/BaseClasses/Examples/Interpolate.mo +++ b/IBPSA/Utilities/Math/Functions/Examples/Interpolate.mo @@ -1,4 +1,4 @@ -within IBPSA.Airflow.Multizone.BaseClasses.Examples; +within IBPSA.Utilities.Math.Functions.Examples; model Interpolate "Test model for the interpolation function" extends Modelica.Icons.Example; @@ -28,18 +28,18 @@ initial equation ensureMonotonicity=true); equation dp=ramp.y; - m_flow =IBPSA.Airflow.Multizone.BaseClasses.interpolate(u=dp,xd=xd,yd=yd,d=d); + m_flow =IBPSA.Utilities.Math.Functions.interpolate(u=dp,xd=xd,yd=yd,d=d); annotation ( experiment( StopTime=500, Tolerance=1e-06), - __Dymola_Commands(file="modelica://IBPSA/Resources/Scripts/Dymola/Airflow/Multizone/BaseClasses/Examples/Interpolate.mos" + __Dymola_Commands(file="modelica://IBPSA/Resources/Scripts/Dymola/Utilities/Math/Functions/Examples/Interpolate.mos" "Simulate and plot"), Documentation(info="

This example demonstrates the function - -IBPSA.Airflow.Multizone.BaseClasses.interpolate. + +IBPSA.Utilities.Math.Functions.interpolate.

", revisions="