Giter VIP home page Giter VIP logo

buildingsystems's People

Contributors

ainderfurth avatar breadkm avatar carlesrt avatar casella avatar ctib avatar jmoeckel avatar nytschgeusen avatar rschopfer avatar tbeu avatar thorade avatar wekagit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buildingsystems's Issues

Wrong temperature at heatPort in zone model

The temperature of the outter interface heatSourcesPorts of the zone model zoneTemplateAirvolumeMixed is constant and equal to 20 °C.

This information/temperature is then forwarded to the outter interface of the building models heatSourcesPorts[nHeatSources] and used to connect external heating or cooling installations (BuildingSystems.Applications.HeatingSystems.WaterHeatingSystem, ...)

The temperature is set with heatPort.T = 293.15; in the model BuildingSystems.Buildings.BaseClasses.RelationRadiationConvection

To solve it, it should be first decided which temperature should be linked to the heatPort

  • Indoor air temperature in zone ? Then, set heatPort.T = heatPortCv.T ;
  • Mean temperature of the in room surfaces ? Then, set heatPort.T = heatPortLw.T ;

Pedantic Error when using Pump with MSL.Water

When running BuildingSystems.Fluid.Movers.FlowControlled_m_flow with MSL.Water in pedantic mode I get:

`The value=0 not in range [611.657,1e+008] for variable pump.preSou.dp_start.``

Example:

model Source2Pump_
//  replaceable package Medium = Modelica.Media.Water.ConstantPropertyLiquidWater;
    replaceable package Medium =  Modelica.Media.Water.WaterIF97OnePhase_ph;

  inner Modelica.Fluid.System system
    annotation (Placement(transformation(extent={{-84,72},{-64,92}})));
  BuildingSystems.Fluid.Sources.Boundary_pT      boundary(
    redeclare package Medium = Medium,
    nPorts=1) annotation (Placement(transformation(
        extent={{-10,-10},{10,10}},
        rotation=0,
        origin={-70,14})));
  BuildingSystems.Fluid.Sources.Boundary_pT bou(
    redeclare package Medium = Medium,
    nPorts=1) annotation (Placement(transformation(
        extent={{-10,-10},{10,10}},
        rotation=180,
        origin={60,14})));
  BuildingSystems.Fluid.Movers.FlowControlled_m_flow pump(
    redeclare package Medium = Medium,
    m_flow_nominal=1,
    inputType=BuildingSystems.Fluid.Types.InputType.Constant)
                      annotation (Placement(transformation(
        extent={{-10,10},{10,-10}},
        rotation=0,
        origin={16,14})));
equation 

  connect(pump.port_b, bou.ports[1])
    annotation (Line(points={{26,14},{38,14},{50,14}}, color={0,127,255}));
  connect(boundary.ports[1], pump.port_a)
    annotation (Line(points={{-60,14},{-28,14},{6,14}}, color={0,127,255}));
end Source2Pump_;

FluidStorage uses end in connect statement

That is valid Modelica, but OpenModelica does not yet support it:
https://trac.openmodelica.org/OpenModelica/ticket/4541

https://libraries.openmodelica.org/branches/master/BuildingSystems/files/BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.err

We could (here, in this model) easily rewrite the FluidStorage model to use nEle instead of end.

Also, the for-loops could be rewritten from e.g.

  for i in 1:nEle-3 loop
    connect(vol[i].ports[2], vol[i+1].ports[1]);
  end for;

to the shorter form

  connect(vol[1:nEle-3].ports[2], vol[2:nEle-2].ports[1]);

slow and broken unit tests

The tests listed in the file
Resources/Scripts/skipUnitTestList.txt
take very long to simulate or are broken (i.e. BuildingsPy cannot parse them).
Could everybody please check whether you created one of the mos scripts and try to fix it?
If no easy fix is available, just leave it on the skip list.

DistrictHeatingNetwork_dp

Anyone who managed to get this example: DistrictHeatingNetwork_dp working, could give me a help? I keep getting this compilation error:

Compiler message:

Compiling and linking the model (GCC). 

dsmodel.c: In function 'equations_31':
dsmodel.c:11931:47: warning: passing argument 1 of 'StringTemporaryDense' from incompatible pointer type [-Wincompatible-pointer-types]
StringElement( StringTemporaryDense( &DYNX(DYNAuxStr_,26+DYNStrInit(did_)),
^
In file included from C:/Program Files (x86)/Dymola 2018/Source/matrixop.h:11:0,
from dsmodel.c:7:
C:/Program Files (x86)/Dymola 2018/Source/matrixop1.h:490:27: note: expected 'const char **' but argument is of type 'char **'
DYMOLA_STATIC StringArray StringTemporaryDense(String*d,SizeType ndims,...);
^~~~~~~~~~~~~~~~~~~~
dsmodel.c:12100:47: warning: passing argument 1 of 'StringTemporaryDense' from incompatible pointer type [-Wincompatible-pointer-types]
StringElement( StringTemporaryDense( &DYNX(DYNAuxStr_,45+DYNStrInit(did_)),
^
In file included from C:/Program Files (x86)/Dymola 2018/Source/matrixop.h:11:0,
from dsmodel.c:7:
C:/Program Files (x86)/Dymola 2018/Source/matrixop1.h:490:27: note: expected 'const char **' but argument is of type 'char **'
DYMOLA_STATIC StringArray StringTemporaryDense(String*d,SizeType ndims,...);
^~~~~~~~~~~~~~~~~~~~
dsmodel.c: In function 'equations_32':
dsmodel.c:12229:47: warning: passing argument 1 of 'StringTemporaryDense' from incompatible pointer type [-Wincompatible-pointer-types]
StringElement( StringTemporaryDense( &DYNX(DYNAuxStr_,7+DYNStrInit(did_)),
^
In file included from C:/Program Files (x86)/Dymola 2018/Source/matrixop.h:11:0,
from dsmodel.c:7:
C:/Program Files (x86)/Dymola 2018/Source/matrixop1.h:490:27: note: expected 'const char **' but argument is of type 'char **'
DYMOLA_STATIC StringArray StringTemporaryDense(String*d,SizeType ndims,...);
^~~~~~~~~~~~~~~~~~~~
dsmodel.c:12731:47: warning: passing argument 1 of 'StringTemporaryDense' from incompatible pointer type [-Wincompatible-pointer-types]
StringElement( StringTemporaryDense( &DYNX(DYNAuxStr_,7+DYNStrInit(did_)),
^
In file included from C:/Program Files (x86)/Dymola 2018/Source/matrixop.h:11:0,
from dsmodel.c:7:
C:/Program Files (x86)/Dymola 2018/Source/matrixop1.h:490:27: note: expected 'const char **' but argument is of type 'char **'
DYMOLA_STATIC StringArray StringTemporaryDense(String*d,SizeType ndims,...);
^~~~~~~~~~~~~~~~~~~~
dsmodel.c: In function 'equations_33':
dsmodel.c:13112:47: warning: passing argument 1 of 'StringTemporaryDense' from incompatible pointer type [-Wincompatible-pointer-types]
StringElement( StringTemporaryDense( &DYNX(DYNAuxStr_,45+DYNStrInit(did_)),
^
In file included from C:/Program Files (x86)/Dymola 2018/Source/matrixop.h:11:0,
from dsmodel.c:7:
C:/Program Files (x86)/Dymola 2018/Source/matrixop1.h:490:27: note: expected 'const char **' but argument is of type 'char **'
DYMOLA_STATIC StringArray StringTemporaryDense(String*d,SizeType ndims,...);
^~~~~~~~~~~~~~~~~~~~
dsmodel.c:13664:47: warning: passing argument 1 of 'StringTemporaryDense' from incompatible pointer type [-Wincompatible-pointer-types]
StringElement( StringTemporaryDense( &DYNX(DYNAuxStr_,26+DYNStrInit(did_)),
^
In file included from C:/Program Files (x86)/Dymola 2018/Source/matrixop.h:11:0,
from dsmodel.c:7:
C:/Program Files (x86)/Dymola 2018/Source/matrixop1.h:490:27: note: expected 'const char **' but argument is of type 'char **'
DYMOLA_STATIC StringArray StringTemporaryDense(String*d,SizeType ndims,...);
^~~~~~~~~~~~~~~~~~~~
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_createEasyVar1D]+0xa): undefined reference to `__security_cookie'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_createEasyVar1D]+0x2e): undefined reference to `nc_open'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_createEasyVar1D]+0x4a): undefined reference to `@__security_check_cookie@4'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_createEasyVar1D]+0x62): undefined reference to `nc_inq_varid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_createEasyVar1D]+0x89): undefined reference to `nc_inq_varndims'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_createEasyVar1D]+0xb0): undefined reference to `nc_inq_vardimid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_createEasyVar1D]+0xca): undefined reference to `nc_inq_dimname'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_createEasyVar1D]+0x136): undefined reference to `@__security_check_cookie@4'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetScattered2D]+0xa): undefined reference to `__security_cookie'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetScattered2D]+0xae): undefined reference to `@__security_check_cookie@4'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeDouble]+0x11): undefined reference to `nc_open'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeDouble]+0x4a): undefined reference to `nc_inq_varid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeDouble]+0x82): undefined reference to `nc_inq_att'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeDouble]+0xa7): undefined reference to `nc_get_att_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeDouble]+0xbd): undefined reference to `nc_close'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeLong]+0x11): undefined reference to `nc_open'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeLong]+0x49): undefined reference to `nc_inq_varid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeLong]+0x80): undefined reference to `nc_inq_att'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeLong]+0xa5): undefined reference to `nc_get_att_long'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeLong]+0xbb): undefined reference to `nc_close'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeString]+0x11): undefined reference to `nc_open'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeString]+0x49): undefined reference to `nc_inq_varid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeString]+0x81): undefined reference to `nc_inq_att'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeString]+0xbe): undefined reference to `nc_get_att_text'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataReaderEA.obj):(.text[_ncEasyGetAttributeString]+0xdf): undefined reference to `nc_close'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DNew]+0x11): undefined reference to `nc_open'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DNew]+0x35): undefined reference to `nc_inq_varid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DNew]+0x53): undefined reference to `nc_inq_varndims'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DNew]+0x77): undefined reference to `nc_inq_vardimid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DNew]+0x88): undefined reference to `nc_inq_dimlen'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DNew]+0xa2): undefined reference to `nc_inq_dimlen'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DNew]+0x168): undefined reference to `nc_get_var_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DNew]+0x29a): undefined reference to `nc_close'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DGet]+0x7): undefined reference to `__security_cookie'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncScattered2D.obj):(.text[_ncScattered2DGet]+0x73): undefined reference to `@__security_check_cookie@4'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DNew]+0x13): undefined reference to `nc_open'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DNew]+0x38): undefined reference to `nc_inq_varid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DNew]+0x56): undefined reference to `nc_inq_varndims'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DNew]+0xe4): undefined reference to `nc_inq_vardimid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DNew]+0xf5): undefined reference to `nc_inq_dimlen'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DNew]+0x33e): undefined reference to `nc_get_var_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DNew]+0x37d): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DNew]+0x3a5): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DFree]+0x2b): undefined reference to `nc_close'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_loadChunk]+0x79): undefined reference to `nc_get_vara_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DGetItem]+0x26): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DSetOption]+0xa0): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DSetOption]+0xc7): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DDumpStatistics]+0xa): undefined reference to `__security_cookie'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DDumpStatistics]+0x2a): undefined reference to `nc_inq_varname'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DDumpStatistics]+0x128): undefined reference to `@__security_check_cookie@4'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncDataSet1D.obj):(.text[_ncDataSet1DDumpStatistics]+0x17d): undefined reference to `@__security_check_cookie@4'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DNew]+0x16): undefined reference to `nc_inq_varid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DNew]+0x3a): undefined reference to `nc_inq_varndims'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DNew]+0x5d): undefined reference to `nc_inq_vardimid'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DNew]+0x6d): undefined reference to `nc_inq_dimlen'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DNew]+0x247): undefined reference to `nc_get_var_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DNew]+0x4a3): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DNew]+0x4ce): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_loadChunk]+0x7e): undefined reference to `nc_get_vara_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DGetItem]+0x45): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DSetOption]+0x179): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DSetOption]+0x1a2): undefined reference to `nc_get_var1_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DDumpStatistics]+0xa): undefined reference to `__security_cookie'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DDumpStatistics]+0x2c): undefined reference to `nc_inq_varname'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DDumpStatistics]+0x73): undefined reference to `nc_inq_varname'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DDumpStatistics]+0x16b): undefined reference to `@__security_check_cookie@4'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/ncVar1D.obj):(.text[_ncVar1DDumpStatistics]+0x1e4): undefined reference to `@__security_check_cookie@4'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/Misc.obj):(.text[_ncError]+0x1b): undefined reference to `nc_strerror'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/Misc.obj):(.text[_ncGetAttributeDoubleDefault]+0x1e): undefined reference to `nc_inq_att'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/Misc.obj):(.text[_ncGetAttributeDoubleDefault]+0x41): undefined reference to `nc_get_att_double'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/Misc.obj):(.text[_ncGetAttributeLongDefault]+0x1e): undefined reference to `nc_inq_att'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/Misc.obj):(.text[_ncGetAttributeLongDefault]+0x41): undefined reference to `nc_get_att_long'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/Misc.obj):(.text[_ncGetAttributeTextDefault]+0x1d): undefined reference to `nc_inq_att'
C:/Users/Toshiba/Desktop/BuildingSystems-master/netCDF-DataReader/NcDataReader2/Resources/Library/win32\ncDataReader2.lib(ncDataReader2.dir/Release/Misc.obj):(.text[_ncGetAttributeTextDefault]+0x4b): undefined reference to `nc_get_att_text'
C:/Users/Toshiba/Desktop/BuildingSys

Error in Buildings.BuildingTemplates.Building1Zone0DDistrict

Running the following commands with Dymola 2017 FD01

Advanced.PedanticModelica=true;
checkModel(BuildingSystems.Buildings.BuildingTemplates.Building1Zone0DDistrict)

in pedantic mode returns the following error:

Using conditionally enabled variable Q_flow_heating outside of connect.

Q_flow_heating is decalred in ``BuildingSystems.Buildings.BaseClasses.BuildingTemplate```.

clean up MoistAir functions

The subpackage BS/Utilities/MoistAirFunctions:
https://github.com/UdK-VPT/BuildingSystems/tree/master/BuildingSystems/Utilities/MoistAirFunctions
has some duplication with Annex60/Utilities/Psychrometrics:
https://github.com/iea-annex60/modelica-annex60/tree/master/Annex60/Utilities/Psychrometrics
and possibly also with Annex60/Media:
https://github.com/iea-annex60/modelica-annex60/tree/master/Annex60/Media

We should check our package to see what functions are missing in Annex60.

Replacing Reals with Units

This is a follow-up issue to #1.

There are several variables declared as Real and have a unit. In many cases these are derived physical quantities which only appears once or twice.

In order to have consistent code: Should we change the style-guide in such way, that a Real variable must not have a unit property. Instead, each time a unit is set, a new type must be declared or an already defined type must be used respectively.


Would concern following 45 files:


  • Buildings\Airpathes\AirpathConstant.mo
  • Buildings\Airpathes\AirpathPrescribedPressure.mo
  • Buildings\Airvolumes\Airvolume3D.mo
  • Buildings\Airvolumes\AirvolumeCompressible0D.mo
  • Buildings\Ambient.mo
  • Buildings\BaseClasses\AirpathGeneral.mo
  • Buildings\BuildingTemplates\Building1Zone0DDistrict.mo
  • Buildings\Constructions\Windows\Window.mo
  • Buildings\Data\AirpathCharacteristics\AirpathCharacteristicWindow.mo
  • Fluid\Interfaces\TemperatureControlledHeatFlow.mo
  • Interfaces\AirchangeRateInput.mo
  • Interfaces\AirchangeRateOutput.mo
  • Interfaces\Angle_degInput.mo
  • Interfaces\Angle_degOutput.mo
  • Interfaces\HeatFlowRateInput.mo
  • Interfaces\HeatFlowRateOutput.mo
  • Interfaces\LengthInput.mo
  • Interfaces\LengthOutput.mo
  • Interfaces\MassFlowRateInput.mo
  • Interfaces\MassFlowRateOutput.mo
  • Interfaces\Moisture_absInput.mo
  • Interfaces\Moisture_absOutput.mo
  • Interfaces\PowerInput.mo
  • Interfaces\PowerOutput.mo
  • Interfaces\RadiantEnergyFluenceRateInput.mo
  • Interfaces\RadiantEnergyFluenceRateOutput.mo
  • Interfaces\Temp_KInput.mo
  • Interfaces\Temp_KOutput.mo
  • Interfaces\VelocityInput.mo
  • Interfaces\VelocityOutput.mo
  • Technologies\Photovoltaics\BaseClasses\ElectricalModels\ElectricalModelGeneral.mo
  • Technologies\Photovoltaics\BaseClasses\ElectricalModels\ElectricalModelOneDiode.mo
  • Technologies\Photovoltaics\BaseClasses\ElectricalModels\ElectricalModelOneDiodeGeneral.mo
  • Technologies\Photovoltaics\BaseClasses\ElectricalModels\ElectricalModelOneDiodeMPP.mo
  • Technologies\Photovoltaics\BaseClasses\ElectricalModels\ElectricalModelTwoDiodes.mo
  • Technologies\Photovoltaics\BaseClasses\ElectricalModels\ElectricalModelTwoDiodesMPP.mo
  • Technologies\Photovoltaics\BaseClasses\PVModuleGeneral.mo
  • Technologies\Photovoltaics\BaseClasses\ThermalModels\ThermalModelSimple.mo
  • Technologies\Photovoltaics\PVModules\PVModuleComplex.mo
  • Technologies\Photovoltaics\PVModules\PVModuleComplexMPP.mo
  • Technologies\Photovoltaics\PVModules\PVModuleSimple.mo
  • Technologies\Photovoltaics\PVModules\PVModuleSimpleMPP.mo
  • Technologies\SolarThermal\Data\Collectors\CollectorPartial.mo
  • Technologies\ThermalStorages\BaseClasses\StratificationModel\PartialInletStratification.mo
  • Technologies\ThermalStorages\FluidStorage.mo

Missing .mos files in Psychrometrics/examples

.mos files are missing for the examples BuildingSystems.Utilities.Psychrometrics.Functions.Examples.Density_pTX and BuildingSystems.Utilities.Psychrometrics.Examples.Density_pTX.

SolarRadiationTransformer models

The models in the SolarRadiationTransformers package can be improved.

proposed changes
  • In SolarRadiationTransformerGeneral

Edited
1. Remove Deg and Angle of the name of the cos.. and sin.. variables such as cosAngleDegInc

There are some variables with the name AngleDeg.... So I guess it is not a good idea to change the names.


  1. Change Type BuildingSystems.Types.Angle_deg per Modelica.SIunits.Conversions.NonSIunits.Angle_deg (It could be done per other models too). see 6b3da87
  • SolarRadiationTransformerIsotropic
  1. Add upper limit to the direct irradaition on a tilted surface (In some simulations the value of IrrDirHor*R is higher than the total irradiance on a tilted surface IrrTotTil, thus the diffuse irradiation on the tilted surface radiationPort.IrrDif becomes negative). See f397b20
  2. Some changes in docu. See da1f359

Pedantic Photovoltaics

Advanced.PedanticModelica:=true;
checkModel("BuildingSystems.Technologies.Photovoltaics");

Pedantic Solar Thermal

Advanced.PedanticModelica:=true;
checkModel("BuildingSystems.Technologies.SolarThermal");

Error in ``Buildings.Data.AirpathCharacteristics.CdTiltedPane``

Applying Dymolas (2017 FD01) checkModel() in pedantic mode to Buildings.Data.AirpathCharacteristics.CdTiltedPane throws following error:

Component type specifier Angle_degInput is a connector, that should not be used in a function
File: Q:/Git/BuildingSystems/BuildingSystems/Buildings/Data/AirpathCharacteristics/CdTiltedPane.mo, line 7
Component context: angleDegPanes
Component declared as Angle_degInput angleDegPanes in BuildingSystems.Interfaces

Illegal inheritance in BuildingSystems.Utilities.Visualisation3D.Modelica3D

Warning while loading the file f:\Libraries\BuildingSystems\BuildingSystems\Utilities\Visualisation3D\Modelica3D\Setup.mo.
The Modelica class of BuildingSystems.Utilities.Visualisation3D.Modelica3D.Setup.ExtSetup (model) and its base class BuiltIn.ExternalObject (type) are not compatible.
Message: Modelica.IncompatibleBaseClass

Warning while loading the file f:\Libraries\BuildingSystems\BuildingSystems\Utilities\Visualisation3D\Modelica3D\VisConfig.mo.
The Modelica class of BuildingSystems.Utilities.Visualisation3D.Modelica3D.VisConfig.ExtVisConfig (model) and its base class BuiltIn.ExternalObject (type) are not compatible.
Message: Modelica.IncompatibleBaseClass

Warning while loading the file f:\Libraries\BuildingSystems\BuildingSystems\Utilities\Visualisation3D\Modelica3D\Setup.mo.
The Modelica class of BuildingSystems.Utilities.Visualisation3D.Modelica3D.Setup.ExtSetup (model) and its base class BuiltIn.ExternalObject (type) are not compatible.
Message: Modelica.IncompatibleBaseClass

Warning while loading the file f:\Libraries\BuildingSystems\BuildingSystems\Utilities\Visualisation3D\Modelica3D\VisConfig.mo.
The Modelica class of BuildingSystems.Utilities.Visualisation3D.Modelica3D.VisConfig.ExtVisConfig (model) and its base class BuiltIn.ExternalObject (type) are not compatible.
Message: Modelica.IncompatibleBaseClass

clean up SmoothFunctions

We should check the subpackge BS/Utilities/SmoothFunctions.
https://github.com/UdK-VPT/BuildingSystems/tree/master/BuildingSystems/Utilities/SmoothFunctions

All functions that are usefull should get a documentation, a corresponding block and a runnable example with reference results. Then they can be added to Annex60/Utilities/Math:
https://github.com/iea-annex60/modelica-annex60/tree/master/Annex60/Utilities/Math

All other functions should be deleted or replaced with their MSL or Annex60 equivalent.

Add campus models of TU Berlin

Add two district models to package BuildingSystems.Applications.DistrictSimulation

UniversityCampusBerlinCharlottenburg.mo

-> district model with low order building buildings of the university campus Berlin-Charlottenburg

UniversityCampusBerlinCharlottenburgDistrictHeating.mo

-> as UniversityCampusBerlinCharlottenburg.mo, but the building models are supplied by a district heating grid with thermal energy.

Example Building1Zone0D fails in OpenModelica

Hi,

I just loaded the latest git version of the BuildingSystems library in openmodelica v1.11.0.

When I tried to run the "Building1Zone0D" example, I get this warning and error:

[20] 14:47:54 Translation Warning
[BuildingSystems.Buildings.Interfaces.SurfaceToConstructionPort: 2:1-22:30]: Connector .BuildingSystems.Buildings.Interfaces.SurfaceToConstructionPort$building1$innerConstructions$toSurfacePort_1 is not balanced: The number of potential variables (29) is not equal to the number of flow variables (2).

[21] 14:47:54 Translation Error
[BuildingSystems.Buildings.Constructions.Walls.WallThermal1DNodes: 14:5-14:39]: Type mismatch in binding lambda = {1.351370344342937}, expected subtype of Real, got type Real[1].

[22] 14:47:54 Translation Error
Error occurred while flattening model BuildingSystems.Buildings.Examples.Building1Zone0D

Do you have a hint, what I am doing wrong?
Thank you!
Fabian

Moving Tipps and Tricks to Wiki

Content of issues which contain valuable information, that should not be hard to find after closing the issue (as #3) should be moved to a new wiki-section (e.g. Tipps and Tricks).

Do you think, that this is a good idea - or would it even makes things worse, as the wiki is the last place, where people look for information?

NcDataReader - wrong definition of constantVariable[:]

The current version of the block Utilities.NcDataReader2.NcDataReader sets the value of the parameters constantVariable[:] to zero. These are the different constant values of the .nc readed file, such as latitude or longitude.

@ainderfurth and I guess that the line of code = fill(0.0,size(varNameConstant,1)) was added intending to deal with those cases were the values for latitude or any oher constant needed by the WeatherDataNetcdfmodel are not defined in the .nc file.

A possible correction is:

parameter Real constantVariable[size(varNameConstant,1)](start={ncEasyGetAttributeDouble(fileName,"",varNameConstant[j]) for j in 1:size(varNameConstant, 1)}) = {ncEasyGetAttributeDouble(fileName,"",varNameConstant[j]) for j in 1:size(varNameConstant, 1)};

The problem which was intended to avoid might happen again... In case the varNameConstant[j] is not found in the .nc file an error will occur with the following message:

ERROR | -43 | netcdf  | NetCDF: Attribute not found

Up to now I did not find a way to check the file before the function is called... I think it might be enough to properly document the model, explaining what to check when this error occurs.

@nytschgeusen
Do I prepare a pull request with the suggested changes?
should I look depeer into it? or it is enough to document the error?


  • Edited 18.11.2015

Start value ( start={ncEasyGetAttributeDouble(fi.... ) not needed


Weather data reader

As a result of
ibpsa/modelica-ibpsa#82 (comment)
we do now have two Weather Data Readers.

The version from Buildings has been added to Annex60 and is therefore now included in BuildingSystems. This Reader reads TMY3 files, converts them to CombiTimeTable format and uses a Bus to distribute the info to components.

BuildingSystems has the netCDF reader from @jraedler , but an old version.
There exists a newer version by @jraedler
https://bitbucket.org/jraedler/ncdatareader2
and there also exists a fork by @tbeu that has been restructured a lot.
https://github.com/tbeu/netCDF-DataReader

The newer netCDF reader can also read HDF5, I believe.
http://www.hdfgroup.org/projects/netCDF-4/

Should the two readers be combined? What is the better weather format, TMY3 or HDF5? Can we support both, if possible with the identical interface to the end user?

Modelica License 2

It should be "Modelica License 2" instead of "Modelica 2 license" (at least in the Readme).

Error in Buildings.Zones.ZoneTemplateAirvolumeMixed

Running the following commands with Dymola 2017 FD01

Advanced.PedanticModelica=true;
checkModel(BuildingSystems.Buildings.Zones.ZoneTemplateAirvolumeMixed)

returns the following error:

The model BuildingSystems.Buildings.Zones.ZoneTemplateAirvolumeMixed component radiationDistribution is structurally singular.
when assuming the most generic outside couplings to all the flow variables of its connectors.

Use of not standardized annotation `NumberOfIntervals`

The flag NumberOfIntervals within annotations is not standardized and throws an error in pedantic mode.

Following three (not Annex60)-files must be corrected:

  • BuildingSystems\Applications\ClimateAnalyses\FreeFloatingTemperature
  • BuildingSystems\HAM\HeatAndMoistureTransport\Examples\HeatAndMoistureTransport1DNodes
  • BuildingSystems\HAM\HeatAndMoistureTransport\Examples\HeatAndMoistureTransport3D

Solution: Replace it with flag Interval (= (StopTime - StartTime)/NumberOfIntervals)

code checking

When checking the library code, we still get some errors and warnings.
The long term goal should of course be 0 errors in pedantic mode.

Enable Dymolas pedantic mode using a flag:
advancedpedanticmodelica

Enable Dymolas pedantic mode in the GUI:
dymola_pedantic

FixedResistanceDpM

As discussed in ibpsa/modelica-ibpsa#607 the model Fluid.FixedResistances.FixedResistanceDpM will be refactored soon, it will be split up in two simpler models. We are using FixedResistanceDpM in two models:

These two models will have to be updated, possibly using the conversion script supplied in the A60 Pull Request.

Non pedantic error `Buildings.Zones.ZoneTemplateAirvolume3D`

Error is thrown in standard check mode (so not pedantic):
To reproduce, use
checkModel("BuildingSystems.Buildings.Zones.ZoneTemplateAirvolume3D")

There also errors thrown by:

  • BuildingSystems.Buildings.Zones.Examples.SingleZoneThermal3D
  • BuildingSystems.Buildings.Examples.ThermalModelHouse3D
  • BuildingSystems.Buildings.Examples.ThermalModelHouse3Dwindow

but I think, because of extends, they all based on the error in the zone.

Technologies.DistrictHeatingNetworks.Examples

Both examples have some errors:

checkModel("BuildingSystems.Technologies.DistrictHeatingNetworks.Examples.DistrictHeatingNetwork_dp");
checkModel("BuildingSystems.Technologies.DistrictHeatingNetworks.Examples.DistrictHeatingNetwork_m_flow");

The heat ports of the buildings are not connected properly, might be part of the problem.

Error in ``BuildingSystems.Buildings.Constructions.Windows.SlidingWindow``

Applying Dymolas (2017 FD01) checkModel() to BuildingSystems.Buildings.Constructions.Windows.SlidingWindow in pedantic mode throws following error:

The model BuildingSystems.Buildings.Constructions.Windows.SlidingWindow component radTra1to2 is structurally singular.
when assuming inputs to be known,
and that non-physical connectors will impose suitable constraints.

invalid connect in Technologies.SolarThermal

Some connect equations are strange/wrong in the ThermCollector model, e.g. this one:

connect(heatPortCon, heatPortCon) annotation (Line(

And the ThermalCollectorInSeries model uses [end] in connect statement:

connect(thermalCollector[end].port_b, port_b) annotation (Line(

See more warnings/errors by simulating (with OpenModelica) the example Technologies.SolarThermal.Examples.BigCollectorInstallationWithStorage
or look at the errorlog here:
https://libraries.openmodelica.org/branches/v1.12/BuildingSystems/files/BuildingSystems_BuildingSystems.Technologies.SolarThermal.Examples.BigCollectorInstallationWithStorage.err

style: Declaration of Variables

Following rule 3.8 we should use units for variables, that have a physical correspondence - and if possible use types from Modelica.SIUnits.

There exists lot of variables in the BuildingSystems, that are declared as Real (without a unit) but have a physical correspondece.


Following files contain the keyword Real and were NOT copied from Annex60. Files from package Types some subpackages of Utilities are not considered as they do not use physical quantities:


  • buildings\airvolumes\airvolumecompressible0d.mo
  • buildings\airvolumes\airvolume3d.mo
  • buildings\baseclasses\airpathgeneral.mo
  • buildings\baseclasses\relationradiationconvection.mo
  • buildings\baseclasses\zonetemplategeneral.mo
  • buildings\buildingtemplates\building1zone0d_vis3d.mo
  • buildings\buildingtemplates\building1zone0ddistrict_vis3d.mo
  • buildings\buildingtemplates\building1zone1dcylinder_vis3d.mo
  • buildings\buildingtemplates\building1zone0ddistrict.mo
  • buildings\constructions\walls\wallthermal3d_vis3d.mo
  • buildings\constructions\walls\wallthermal1dnodes_vis3d.mo
  • buildings\constructions\windows\radiationtransmission.mo
  • buildings\constructions\windows\window.mo
  • buildings\constructions\windows\window_vis3d.mo
  • buildings\data\airpathcharacteristics\airpathcharacteristicwindow.mo
  • buildings\data\airpathcharacteristics\cdtiltedpane.mo
  • buildings\zones\zonetemplateairvolumemixed.mo
  • buildings\airpathes\airpathconstant.mo
  • buildings\airpathes\airpathprescribedpressure.mo
  • buildings\functions\tair.mo
  • buildings\functions\tsky.mo
  • buildings\functions\pair.mo
  • buildings\functions\vwind.mo
  • buildings\interfaces\airpathportgeneral.mo
  • buildings\ambient.mo
  • climate\solarradiationtransformers\solarradiationtransformergeneral.mo
  • fluid\fixedresistances\pipe.mo
  • ham\convectiveheattransfer\surfaces\alphaplatefree.mo
  • ham\data\materialproperties\baseclasses\materialhygrothermalgeneral.mo
  • ham\heatandmoisturetransport\baseclasses\heatandmoisturetransportgeneral.mo
  • ham\heatandmoisturetransport\functions\examples\dphi.mo
  • ham\heatandmoisturetransport\functions\dphi.mo
  • ham\heatandmoisturetransport\functions\interpol.mo
  • ham\heatandmoisturetransport\functions\phisor.mo
  • ham\heatandmoisturetransport\functions\wderphi.mo
  • ham\heatandmoisturetransport\functions\wsor.mo
  • ham\heatandmoisturetransport\heatandmoisturetransport1d.mo
  • ham\heatandmoisturetransport\heatandmoisturetransport1dnodes.mo
  • ham\heatandmoisturetransport\heatandmoisturetransport3d.mo
  • ham\heatconduction\heatconduction1d_vis3d.mo
  • ham\heatconduction\heatconduction3d.mo
  • ham\heatconduction\heatconduction1d.mo
  • technologies\chillers\data\compressionchillers\compressionchillergeneral.mo
  • technologies\chillers\compressionchiller.mo
  • technologies\electricalstorages\batterysimple.mo
  • technologies\photovoltaics\baseclasses\electricalmodels\electricalmodelonediodegeneral.mo
  • technologies\photovoltaics\baseclasses\electricalmodels\electricalmodeltwodiodesgeneral.mo
  • technologies\photovoltaics\baseclasses\electricalmodels\electricalmodeltwodiodesmpp.mo
  • technologies\photovoltaics\baseclasses\electricalmodels\electricalmodelgeneral.mo
  • technologies\photovoltaics\baseclasses\thermalmodels\thermalmodelsimple.mo
  • technologies\photovoltaics\baseclasses\pvmodulegeneral.mo
  • technologies\photovoltaics\data\photovoltaicmodules.mo
  • technologies\photovoltaics\pvmodules\pvmodulesimple.mo
  • technologies\photovoltaics\pvmodules\pvmodulesimplempp.mo
  • technologies\solarthermal\data\collectors\collectorpartial.mo
  • technologies\solarthermal\thermalcollector.mo
  • technologies\thermalstorages\baseclasses\buoyancymodels\buoyancy1.mo
  • technologies\thermalstorages\baseclasses\buoyancymodels\buoyancy2.mo
  • technologies\thermalstorages\baseclasses\stratificationmodel\partialinletstratification.mo
  • utilities\moistairfunctions\t_sat.mo
  • utilities\moistairfunctions\enthalpy.mo
  • utilities\moistairfunctions\p.mo
  • utilities\moistairfunctions\p_sat.mo
  • utilities\moistairfunctions\t_dp.mo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.