diff --git a/.travis.yml b/.travis.yml index a47103c0b5..c2335fed6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ env: - DOCKER_REPONAME=lbnlblum - BUILDINGSPY_VERSION=BuildingsPy@v5.0.0 - OMC_VERSION=ubuntu-2204-omc:1.22.0_dev-41-g8a5b18f-1 - - DYMOLA_VERSION=travis_ubuntu-2004_dymola:2023x-x86_64_rev-1 + - DYMOLA_VERSION=travis_ubuntu-2004_dymola:2024xRefresh1-x86_64 jobs: # Test matrix for regression tests. @@ -37,8 +37,8 @@ env: - TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.Fluid.{HeatExchangers,HeatPumps,Humidifiers,Interfaces,MassExchangers,MixingVolumes,Movers,Sensors,Sources,Storage}\"" - TEST_ARG="make test-dymola PACKAGE=\"IBPSA.ThermalZones\"" - TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.ThermalZones\"" - - TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Airflow,BoundaryConditions,Controls}\"" - - TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.{Airflow,BoundaryConditions,Controls}\"" + - TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Airflow,BoundaryConditions,Controls,Electrical}\"" + - TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.{Airflow,BoundaryConditions,Controls,Electrical}\"" - TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Media,Utilities}\"" - TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.{Media,Utilities}\"" 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/interpolate.mo b/IBPSA/Airflow/Multizone/BaseClasses/interpolate.mo deleted file mode 100644 index 7955df7a4b..0000000000 --- a/IBPSA/Airflow/Multizone/BaseClasses/interpolate.mo +++ /dev/null @@ -1,81 +0,0 @@ -within IBPSA.Airflow.Multizone.BaseClasses; -function interpolate - "Function for the interpolation of table data for airflow models" - extends Modelica.Icons.Function; - - input Real u "Independent variable"; - input Real[:] xd "X-axis support points"; - input Real[size(xd, 1)] yd "Y-axis support points"; - input Real[size(xd, 1)] d(each fixed=false) "Derivatives at the support points"; - - output Real z "Dependent variable with monotone interpolation"; - -protected - Integer i "Integer to select data interval"; - -algorithm - i := 1; - for j in 1:size(xd, 1) - 1 loop - if u > xd[j] then - i := j; - end if; - end for; - - // Extrapolate or interpolate the data - if i == 1 then - z:=yd[1]+(u-xd[1])*(yd[2]-yd[1])/(xd[2]-xd[1]); //Interpolate linearly between first and second point - elseif i == (size(xd, 1) - 1) then - z:=yd[end-1]+(u-xd[end-1])*(yd[end]-yd[end-1])/(xd[end]-xd[end-1]); //Interpolate linearly between last and second-to-last point. - - else - z :=IBPSA.Utilities.Math.Functions.cubicHermiteLinearExtrapolation( - x=u, - x1=xd[i], - x2=xd[i + 1], - y1=yd[i], - y2=yd[i + 1], - y1d=d[i], - y2d=d[i + 1]); - end if; - - annotation ( - Documentation(info=" -
-This function returns the value on a cubic hermite spline through the given support points -and provided spline derivatives at these points with monotonically increasing values. -The last 2 points in the table are linearly interpolated. -
--A similar model is also used in the CONTAM software (Dols and Walton, 2015). -
--This function is used in - -IBPSA.Airflow.Multizone.Table_m_flow and -IBPSA.Airflow.Multizone.Table_V_flow -
-