Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problems with room models

Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling and then I want to improve this model. I use the example Buildings.ThermalZones.Detailed.ElectroChromicWindow as a guide. However, I couldn't make it works. Here is my code:

Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
redeclare package Medium = MediumA, AFlo = AFlo, datConBou = 0, datConExtWin = 0, datConPar = 0, hRoo = 3.37,
       intConMod = Buildings.HeatTransfer.Types.InteriorConvection.Temperature, lat = 0.110175,
m_flow_nominal = 47 * 6 / 3600 * 1.2 * 0.75,
    nConBou = nConBou,
    nConExt = nConExt,
    nConExtWin = nConExtWin,
    nConPar = nConPar,
    nPorts = 2,
    nSurBou = nSurBou,
         datConExt(
         layers={matNWal},
          A=25,
       til=Buildings.Types.Tilt.Wall,
       azi=Buildings.Types.Azimuth.S));

I got always the same error, even trying to create 4 walls, because in the code is just one. I also tried to add more variables to the model.

The error is:

Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[:] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[:] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic;, got type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[4] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[4] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal;[1].

matNWal is like the parameter created in the examples of Buildings.ThermalZones.Detailed.Examples. I read the error and I tried to solve but I don't understand. With OpaqueConstructions.Generic I can write variables like nLay,absIR_a and so on. Inside the variable material is where I have to define that I'm selecting it from Solids.Generic to be able to set the thickness, conductivity, specific heat and density, but at the top of the error text says "Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic".

Problems with room models

Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling and then I want to improve this model. I use the example Buildings.ThermalZones.Detailed.ElectroChromicWindow as a guide. However, I couldn't make it works. Here is my code:

Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
redeclare package Medium = MediumA, AFlo = AFlo, datConBou = 0, datConExtWin = 0, datConPar = 0, hRoo = 3.37,
       intConMod = Buildings.HeatTransfer.Types.InteriorConvection.Temperature, lat = 0.110175,
m_flow_nominal = 47 * 6 / 3600 * 1.2 * 0.75,
    nConBou = nConBou,
    nConExt = nConExt,
    nConExtWin = nConExtWin,
    nConPar = nConPar,
    nPorts = 2,
    nSurBou = nSurBou,
         datConExt(
         layers={matNWal},
          A=25,
       til=Buildings.Types.Tilt.Wall,
       azi=Buildings.Types.Azimuth.S));

I got always the same error, even trying to create 4 walls, because in the code is just one. I also tried to add more variables to the model.

The error is:

Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[:] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[:] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic;, got type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[4] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[4] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal;[1].

matNWal is like the parameter created in the examples of Buildings.ThermalZones.Detailed.Examples. I read the error and I tried to solve but I don't understand. With OpaqueConstructions.Generic I can write variables like nLay,absIR_a and so on. Inside the variable material is where I have to define that I'm selecting it from Solids.Generic to be able to set the thickness, conductivity, specific heat and density, but at the top of the error text says "Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic".

Moreover I ran the examples to know if they work but I got errors too.(ElectroChromicWindow)

   [1] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:29:12 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.ElectroChromicWindow

This one is from MixedAirCO2:

[1] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:34:09 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.MixedAirCO2

Thanks in advance.

Problems with room models

Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling and then I want to improve this model. I use the example Buildings.ThermalZones.Detailed.ElectroChromicWindow as a guide. However, I couldn't make it works. Here is my code:

Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
redeclare package Medium = MediumA, AFlo = AFlo, datConBou = 0, datConExtWin = 0, datConPar = 0, hRoo = 3.37,
       intConMod = Buildings.HeatTransfer.Types.InteriorConvection.Temperature, lat = 0.110175,
m_flow_nominal = 47 * 6 / 3600 * 1.2 * 0.75,
    nConBou = nConBou,
    nConExt = nConExt,
    nConExtWin = nConExtWin,
    nConPar = nConPar,
    nPorts = 2,
    nSurBou = nSurBou,
         datConExt(
         layers={matNWal},
          A=25,
       til=Buildings.Types.Tilt.Wall,
       azi=Buildings.Types.Azimuth.S));

I got always the same error, even trying to create 4 walls, because in the code is just one. I also tried to add more variables to the model.

The error is:

Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[:] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[:] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic;, got type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[4] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[4] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal;[1].

matNWal is like the parameter created in the examples of Buildings.ThermalZones.Detailed.Examples. I read the error and I tried to solve but I don't understand. With OpaqueConstructions.Generic I can write variables like nLay,absIR_a and so on. Inside the variable material is where I have to define that I'm selecting it from Solids.Generic to be able to set the thickness, conductivity, specific heat and density, but at the top of the error text says "Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic".

Moreover I ran the examples to know if they work but I got errors too.(ElectroChromicWindow)

   [1] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:29:12 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.ElectroChromicWindow

This one is from MixedAirCO2:

[1] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:34:09 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.MixedAirCO2

Thanks in advance.

Problems with room models

Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling and then I want to improve this model. I use the example Buildings.ThermalZones.Detailed.ElectroChromicWindow as a guide. However, I couldn't make it works. Here is my code:

Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
redeclare package Medium = MediumA, AFlo = AFlo, datConBou = 0, datConExtWin = 0, datConPar = 0, hRoo = 3.37,
       intConMod = Buildings.HeatTransfer.Types.InteriorConvection.Temperature, lat = 0.110175,
m_flow_nominal = 47 * 6 / 3600 * 1.2 * 0.75,
    nConBou = nConBou,
    nConExt = nConExt,
    nConExtWin = nConExtWin,
    nConPar = nConPar,
    nPorts = 2,
    nSurBou = nSurBou,
         datConExt(
         layers={matNWal},
          A=25,
       til=Buildings.Types.Tilt.Wall,
       azi=Buildings.Types.Azimuth.S));

I got always the same error, even trying to create 4 walls, because in the code is just one. I also tried to add more variables to the model.

The error is:

Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[:] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[:] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic;, got type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[4] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[4] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal;[1].

matNWal is like the parameter created in the examples of Buildings.ThermalZones.Detailed.Examples. I read the error and I tried to solve but I don't understand. With OpaqueConstructions.Generic I can write variables like nLay,absIR_a and so on. Inside the variable material is where I have to define that I'm selecting it from Solids.Generic to be able to set the thickness, conductivity, specific heat and density, but at the top of the error text says "Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic".

Moreover I ran the examples to know if they work but I got errors too.(ElectroChromicWindow)

   [1] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:29:12 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.ElectroChromicWindow

This one is from MixedAirCO2:

[1] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:34:09 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.MixedAirCO2

Thanks in advance.

Problems with room models

Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling and then I want to improve this model. I use the example Buildings.ThermalZones.Detailed.ElectroChromicWindow as a guide. However, I couldn't make it works. Here is my code:

Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
redeclare package Medium = MediumA, AFlo = AFlo, datConBou = 0, datConExtWin = 0, datConPar = 0, hRoo = 3.37,
       intConMod = Buildings.HeatTransfer.Types.InteriorConvection.Temperature, lat = 0.110175,
m_flow_nominal = 47 * 6 / 3600 * 1.2 * 0.75,
    nConBou = nConBou,
    nConExt = nConExt,
    nConExtWin = nConExtWin,
    nConPar = nConPar,
    nPorts = 2,
    nSurBou = nSurBou,
         datConExt(
         layers={matNWal},
          A=25,
       til=Buildings.Types.Tilt.Wall,
       azi=Buildings.Types.Azimuth.S));

I got always the same error, even trying to create 4 walls, because in the code is just one. I also tried to add more variables to the model.

The error is:

Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[:] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[:] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic;, got type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[4] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[4] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal;[1].

matNWal is like the parameter created in the examples of Buildings.ThermalZones.Detailed.Examples. I read the error and I tried to solve but I don't understand. With OpaqueConstructions.Generic I can write variables like nLay,absIR_a and so on. Inside the variable material is where I have to define that I'm selecting it from Solids.Generic to be able to set the thickness, conductivity, specific heat and density, but at the top of the error text says "Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic".

Moreover I ran the examples to know if they work but I got errors too.(ElectroChromicWindow)

   [1] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:29:12 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.ElectroChromicWindow

This one is from MixedAirCO2:

[1] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:34:09 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.MixedAirCO2

Thanks in advance.

Problems with room models

Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling and then I want to improve this model. I use the example Buildings.ThermalZones.Detailed.ElectroChromicWindow as a guide. However, I couldn't make it works. Here is my code:

Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
redeclare package Medium = MediumA, AFlo = AFlo, datConBou = 0, datConExtWin = 0, datConPar = 0, hRoo = 3.37,
       intConMod = Buildings.HeatTransfer.Types.InteriorConvection.Temperature, lat = 0.110175,
m_flow_nominal = 47 * 6 / 3600 * 1.2 * 0.75,
    nConBou = nConBou,
    nConExt = nConExt,
    nConExtWin = nConExtWin,
    nConPar = nConPar,
    nPorts = 2,
    nSurBou = nSurBou,
         datConExt(
         layers={matNWal},
          A=25,
       til=Buildings.Types.Tilt.Wall,
       azi=Buildings.Types.Azimuth.S));

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic matNWal(final nLay = 4, absIR_a = 0.9, absIR_b = 0.9, absSol_a = 0.6, absSol_b = 0.6, material = {Buildings.HeatTransfer.Data.Solids.Generic(x = 0.015875, k = 0.17, c = 1090, d = 800), Buildings.HeatTransfer.Data.Solids.Generic(x = 0.009525, k = 0.12, c = 1210, d = 540), Buildings.HeatTransfer.Data.Solids.Generic(x = 0.133, k = 0.047, c = 1006, d = 93.84), Buildings.HeatTransfer.Data.Solids.Generic(x = 0.015875, k = 0.17, c = 1090, d = 800)}) "71T: North Wall";

I got always the same error, even trying to create 4 walls, because in the code is just one. I also tried to add more variables to the model.

The error is:

Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[:] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[:] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic;, got type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[4] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[4] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal;[1].

matNWal is like the parameter created in the examples of Buildings.ThermalZones.Detailed.Examples. I read the error and I tried to solve but I don't understand. With OpaqueConstructions.Generic I can write variables like nLay,absIR_a and so on. Inside the variable material is where I have to define that I'm selecting it from Solids.Generic to be able to set the thickness, conductivity, specific heat and density, but at the top of the error text says "Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic".

Moreover I ran the examples to know if they work but I got errors too.(ElectroChromicWindow)

   [1] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:29:12 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.ElectroChromicWindow

This one is from MixedAirCO2:

[1] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:34:09 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.MixedAirCO2

Thanks in advance.

Problems with room models

Hi, I'm trying to create working with the room model in a new program, because this model is giving me so many errors. I found another question here about room really simple, just 4 walls without windows, floor and ceiling and then I want to improve this model. I use the example Buildings.ThermalZones.Detailed.ElectroChromicWindow as a guide. However, I couldn't make it works. Here model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is my code:

Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
redeclare package Medium = MediumA, AFlo = AFlo, datConBou = 0, datConExtWin = 0, datConPar = 0, hRoo = 3.37,
       intConMod = Buildings.HeatTransfer.Types.InteriorConvection.Temperature, lat = 0.110175,
m_flow_nominal = 47 * 6 / 3600 * 1.2 * 0.75,
    nConBou = nConBou,
    nConExt = nConExt,
    nConExtWin = nConExtWin,
    nConPar = nConPar,
    nPorts = 2,
    nSurBou = nSurBou,
         datConExt(
         layers={matNWal},
          A=25,
       til=Buildings.Types.Tilt.Wall,
       azi=Buildings.Types.Azimuth.S));

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic matNWal(final nLay = 4, absIR_a = 0.9, absIR_b = 0.9, absSol_a = 0.6, absSol_b = 0.6, material = {Buildings.HeatTransfer.Data.Solids.Generic(x = 0.015875, k = 0.17, c = 1090, d = 800), Buildings.HeatTransfer.Data.Solids.Generic(x = 0.009525, k = 0.12, c = 1210, d = 540), Buildings.HeatTransfer.Data.Solids.Generic(x = 0.133, k = 0.047, c = 1006, d = 93.84), Buildings.HeatTransfer.Data.Solids.Generic(x = 0.015875, k = 0.17, c = 1090, d = 800)}) "71T: North Wall";

I got always the same error, even trying to create 4 walls, because that in the code is just one. I also tried to add more variables to the model. other question, but I'm not capable of solve it.

The error is: tells me that there is a mismatch, it expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic. However that layers are already that type, so I don't know what happen.

Moreover I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

model nuevaHab
    replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

equation
 end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

[Buildings.ThermalZones.Detailed.BaseClasses.RoomHeatMassBalance: 152:11-152:27]: Type mismatch in binding layers = {matNWal}, {Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall2(3, {Buildings.HeatTransfer.Data.Solids.Concrete(0.2, 1.4, 840.0, 2240.0, 0.1428571428571429, 3, 3, false, 331.4, 231.862027939031, 2.098932057384107, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.InsulationBoard(0.15, 0.03, 1200.0, 40.0, 5.0, 3, 2, false, 331.4, 189.7366596101028, 1.717591969916441, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.Concrete(0.05, 1.4, 840.0, 2240.0, 0.03571428571428572, 3, 1, false, 331.4, 57.96550698475776, 0.5247330143460268, 293.15, 293.15, 0.0, false, false)}, 5.178571428571429, {3, 2, 1}, 0.9, 0.9, 0.5, 0.5, Buildings.HeatTransfer.Types.SurfaceRoughness.Medium)}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[:] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[:] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic;, got type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal
  Integer(min = 1) nLay;
  record Buildings.HeatTransfer.Data.BaseClasses.Material
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "SpecificHeatCapacity", unit = "J/(kg.K)") c;
  Real(quantity = "Density", unit = "kg/m3", displayUnit = "g/cm3", min = 0.0) d;
  Real(unit = "m2.K/W") R;
  Integer(min = 0) nStaRef;
  Integer(min = 1) nSta;
  Boolean steadyState;
  Real piRef;
  Real piMat;
  Real(min = 0.0) nStaReal;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TSol;
  Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") TLiq;
  Real(quantity = "SpecificEnergy", unit = "J/kg") LHea;
  Boolean ensureMonotonicity;
  Boolean phasechange;
end Buildings.HeatTransfer.Data.BaseClasses.Material;[4] material;
  Real(unit = "m2.K/W") R;
  Integer(min = 1)[4] nSta;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
  Real(quantity = "Emissivity", unit = "1") absSol_a;
  Real(quantity = "Emissivity", unit = "1") absSol_b;
  enumeration(VeryRough, Rough, Medium, MediumSmooth, Smooth, VerySmooth) roughness_a;
end Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$matNWal;[1].

matNWal is like the parameter created in the examples of Buildings.ThermalZones.Detailed.Examples. I read the error and I tried to solve but I don't understand. With OpaqueConstructions.Generic I can write variables like nLay,absIR_a and so on. Inside the variable material is where I have to define that I'm selecting it from Solids.Generic to be able to set the thickness, conductivity, specific heat and density, but at the top of the error text says "Type mismatch in binding layers = {matNWal}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic".

Moreover I ran the examples to know if they work but I I algo got errors too.(ElectroChromicWindow)a translation warning.

   [1] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch [Buildings.HeatTransfer.Data.OpaqueConstructions: 14:5-16:73]: Failed to deduce dimensions of nSta due to unknown dimensions of modifier array(mixedAir1.bouConExt.conPar[1].layers.material[i].nSta for named argument i in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:29:12 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:29:12 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.ElectroChromicWindow
1:mixedAir1.bouConExt.conPar[1].layers.nLay).

This one is from MixedAirCO2:Thanks!

[1] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch for named argument in Buildings.HeatTransfer.Data.Glasses.Generic(tauSol={0.775, 0.775}). The argument has type:
  Real[2]
expected type:
  Real[1]

[2] 11:34:09 Translation Error
[Buildings.HeatTransfer.Data.GlazingSystems: 91:13-100:36]: Type mismatch in array expression in component glaSys. Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84) is of type record Buildings.HeatTransfer.Data.Glasses.Electrochromic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[2] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[2] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Electrochromic; while the elements [Buildings.HeatTransfer.Data.Glasses.Electrochromic(0.006, 0.9, {0.814, 0.111}, {0.08599999999999999, 0.179}, {0.08599999999999999, 0.179}, 0.0, 0.84, 0.84),Buildings.HeatTransfer.Data.Glasses.Generic(0.006, 0.9, {0.775, 0.775}, {0.07099999999999999, 0.07099999999999999}, {0.07099999999999999, 0.07099999999999999}, 0.0, 0.84, 0.84)] are of type record Buildings.HeatTransfer.Data.Glasses.Generic
  Real(quantity = "Length", unit = "m") x;
  Real(quantity = "ThermalConductivity", unit = "W/(m.K)") k;
  Real(quantity = "TransmissionCoefficient", unit = "1")[1] tauSol;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_a;
  Real(quantity = "ReflectionCoefficient", unit = "1")[1] rhoSol_b;
  Real(quantity = "TransmissionCoefficient", unit = "1") tauIR;
  Real(quantity = "Emissivity", unit = "1") absIR_a;
  Real(quantity = "Emissivity", unit = "1") absIR_b;
end Buildings.HeatTransfer.Data.Glasses.Generic;.

[3] 11:34:09 Translation Error
Error occurred while flattening model Buildings.ThermalZones.Detailed.Examples.MixedAirCO2

Thanks in advance.

Problems with room models

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

The error tells me that there is a mismatch, it expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic. However that layers are already that type, so I don't know what happen.

Moreover I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

model nuevaHab
    replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

equation
 end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

[Buildings.ThermalZones.Detailed.BaseClasses.RoomHeatMassBalance: 152:11-152:27]: Type mismatch in binding layers = {Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall2(3, {Buildings.HeatTransfer.Data.Solids.Concrete(0.2, 1.4, 840.0, 2240.0, 0.1428571428571429, 3, 3, false, 331.4, 231.862027939031, 2.098932057384107, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.InsulationBoard(0.15, 0.03, 1200.0, 40.0, 5.0, 3, 2, false, 331.4, 189.7366596101028, 1.717591969916441, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.Concrete(0.05, 1.4, 840.0, 2240.0, 0.03571428571428572, 3, 1, false, 331.4, 57.96550698475776, 0.5247330143460268, 293.15, 293.15, 0.0, false, false)}, 5.178571428571429, {3, 2, 1}, 0.9, 0.9, 0.5, 0.5, Buildings.HeatTransfer.Types.SurfaceRoughness.Medium)}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic

I algo got a translation warning.

[Buildings.HeatTransfer.Data.OpaqueConstructions: 14:5-16:73]: Failed to deduce dimensions of nSta due to unknown dimensions of modifier array(mixedAir1.bouConExt.conPar[1].layers.material[i].nSta for i in 1:mixedAir1.bouConExt.conPar[1].layers.nLay).

Thanks!

Problems with room models

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

The error tells me that there is a mismatch, it expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic. However that layers are already that type, so I don't know what happen.

Moreover I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

model nuevaHab
    replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

equation
 end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

[Buildings.ThermalZones.Detailed.BaseClasses.RoomHeatMassBalance: 152:11-152:27]: Type mismatch in binding layers = {Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall2(3, {Buildings.HeatTransfer.Data.Solids.Concrete(0.2, 1.4, 840.0, 2240.0, 0.1428571428571429, 3, 3, false, 331.4, 231.862027939031, 2.098932057384107, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.InsulationBoard(0.15, 0.03, 1200.0, 40.0, 5.0, 3, 2, false, 331.4, 189.7366596101028, 1.717591969916441, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.Concrete(0.05, 1.4, 840.0, 2240.0, 0.03571428571428572, 3, 1, false, 331.4, 57.96550698475776, 0.5247330143460268, 293.15, 293.15, 0.0, false, false)}, 5.178571428571429, {3, 2, 1}, 0.9, 0.9, 0.5, 0.5, Buildings.HeatTransfer.Types.SurfaceRoughness.Medium)}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic

I algo got a translation warning.

[Buildings.HeatTransfer.Data.OpaqueConstructions: 14:5-16:73]: Failed to deduce dimensions of nSta due to unknown dimensions of modifier array(mixedAir1.bouConExt.conPar[1].layers.material[i].nSta for i in 1:mixedAir1.bouConExt.conPar[1].layers.nLay).

Thanks!

Problems with room models

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

The error tells me that there is a mismatch, it expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic. However that layers are already that type, so I don't know what happen.

Moreover I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

model nuevaHab
    replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

equation
 end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

[Buildings.ThermalZones.Detailed.BaseClasses.RoomHeatMassBalance: 152:11-152:27]: Type mismatch in binding layers = {Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall2(3, {Buildings.HeatTransfer.Data.Solids.Concrete(0.2, 1.4, 840.0, 2240.0, 0.1428571428571429, 3, 3, false, 331.4, 231.862027939031, 2.098932057384107, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.InsulationBoard(0.15, 0.03, 1200.0, 40.0, 5.0, 3, 2, false, 331.4, 189.7366596101028, 1.717591969916441, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.Concrete(0.05, 1.4, 840.0, 2240.0, 0.03571428571428572, 3, 1, false, 331.4, 57.96550698475776, 0.5247330143460268, 293.15, 293.15, 0.0, false, false)}, 5.178571428571429, {3, 2, 1}, 0.9, 0.9, 0.5, 0.5, Buildings.HeatTransfer.Types.SurfaceRoughness.Medium)}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic

I algo got a translation warning.

[Buildings.HeatTransfer.Data.OpaqueConstructions: 14:5-16:73]: Failed to deduce dimensions of nSta due to unknown dimensions of modifier array(mixedAir1.bouConExt.conPar[1].layers.material[i].nSta for i in 1:mixedAir1.bouConExt.conPar[1].layers.nLay).

Thanks!

Problems with room modelsmodel

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

The error tells me that there is a mismatch, it expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic. However that layers are already that type, so I don't know what happen.

Moreover I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

model nuevaHab
    replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

equation
 end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

[Buildings.ThermalZones.Detailed.BaseClasses.RoomHeatMassBalance: 152:11-152:27]: Type mismatch in binding layers = {Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall2(3, {Buildings.HeatTransfer.Data.Solids.Concrete(0.2, 1.4, 840.0, 2240.0, 0.1428571428571429, 3, 3, false, 331.4, 231.862027939031, 2.098932057384107, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.InsulationBoard(0.15, 0.03, 1200.0, 40.0, 5.0, 3, 2, false, 331.4, 189.7366596101028, 1.717591969916441, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.Concrete(0.05, 1.4, 840.0, 2240.0, 0.03571428571428572, 3, 1, false, 331.4, 57.96550698475776, 0.5247330143460268, 293.15, 293.15, 0.0, false, false)}, 5.178571428571429, {3, 2, 1}, 0.9, 0.9, 0.5, 0.5, Buildings.HeatTransfer.Types.SurfaceRoughness.Medium)}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic

I algo also got a translation warning.

[Buildings.HeatTransfer.Data.OpaqueConstructions: 14:5-16:73]: Failed to deduce dimensions of nSta due to unknown dimensions of modifier array(mixedAir1.bouConExt.conPar[1].layers.material[i].nSta for i in 1:mixedAir1.bouConExt.conPar[1].layers.nLay).

Thanks!

Problems with room model

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

The error tells me that there is a mismatch, it expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic. However that layers are already that type, so I don't know what happen.

Moreover I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

model nuevaHab
    replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

equation
 end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

[Buildings.ThermalZones.Detailed.BaseClasses.RoomHeatMassBalance: 152:11-152:27]: 

Type mismatch in binding layers = {Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall2(3, {Buildings.HeatTransfer.Data.Solids.Concrete(0.2, 1.4, 840.0, 2240.0, 0.1428571428571429, 3, 3, false, 331.4, 231.862027939031, 2.098932057384107, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.InsulationBoard(0.15, 0.03, 1200.0, 40.0, 5.0, 3, 2, false, 331.4, 189.7366596101028, 1.717591969916441, 293.15, 293.15, 0.0, false, false), Buildings.HeatTransfer.Data.Solids.Concrete(0.05, 1.4, 840.0, 2240.0, 0.03571428571428572, 3, 1, false, 331.4, 57.96550698475776, 0.5247330143460268, 293.15, 293.15, 0.0, false, false)}, 5.178571428571429, {3, 2, 1}, 0.9, 0.9, 0.5, 0.5, Buildings.HeatTransfer.Types.SurfaceRoughness.Medium)}, expected subtype of record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic

I also got a translation warning.array expression in component <prefix.nopre()&gt;. floor="" is="" of="" type="" record="" buildings.heattransfer.data.opaqueconstructions.generic$wall3<="" p="">

[Buildings.HeatTransfer.Data.OpaqueConstructions: 14:5-16:73]: Failed to deduce dimensions of nSta due to unknown dimensions of modifier array(mixedAir1.bouConExt.conPar[1].layers.material[i].nSta for i in 1:mixedAir1.bouConExt.conPar[1].layers.nLay).

Thanks!

Problems with room model

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

model nuevaHab
    replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

equation
 end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

Type mismatch in array expression in component <prefix.nopre()&gt;. floor="" is="" of="" type="" record="" buildings.heattransfer.data.opaqueconstructions.generic$wall3<="" p="">

Thanks!

Problems with room model

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

model nuevaHab
    replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

equation
 end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

 Type mismatch in array expression in component <prefix.nopre()&gt;. floor="" is="" of="" type="" record="" buildings.heattransfer.data.opaqueconstructions.generic$wall3<="" p="">

<Prefix.NOPRE()>. Floor is of type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall3

Thanks!

Problems with room model

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

 model nuevaHab
     replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=3;
nConBou=4;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {-12, -14}, {48, -18}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2 (
Wall2(
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});
    Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam = "C:/Users/GEPOC-PC3/Documents/Buildings 5.0.1/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos")  annotation(
      Placement(visible = true, transformation(origin = {56, 30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant const(k = 0)  annotation(
      Placement(visible = true, transformation(origin = {-36, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Routing.Replicator replicator1(nout = max(1, nConExtWin))  annotation(
      Placement(visible = true, transformation(origin = {-6, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant qLat(k = 0)  annotation(
      Placement(visible = true, transformation(origin = {-70, -82}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant qCon(k = 0)  annotation(
      Placement(visible = true, transformation(origin = {-70, -52}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant qRad(k = 0)  annotation(
      Placement(visible = true, transformation(origin = {-70, -20}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Routing.Multiplex3 multiplex31 annotation(
      Placement(visible = true, transformation(origin = {-28, -52}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));    
equation
    connect(multiplex31.y, mixedAir1.qGai_flow) annotation(
      Line(points = {{-16, -52}, {-6, -52}, {-6, -10}, {26, -10}, {26, -10}}, color = {0, 0, 127}, thickness = 0.5));
    connect(qRad.y, multiplex31.u1[1]) annotation(
      Line(points = {{-58, -20}, {-40, -20}, {-40, -46}, {-40, -46}, {-40, -44}}, color = {0, 0, 127}));
    connect(qCon.y, multiplex31.u2[1]) annotation(
      Line(points = {{-58, -52}, {-40, -52}, {-40, -52}, {-40, -52}}, color = {0, 0, 127}));
    connect(qLat.y, multiplex31.u3[1]) annotation(
      Line(points = {{-58, -82}, {-40, -82}, {-40, -60}, {-40, -60}}, color = {0, 0, 127}));
    connect(const.y, replicator1.u) annotation(
      Line(points = {{-25, 0}, {-18, 0}}, color = {0, 0, 127}));
    connect(replicator1.y, mixedAir1.uSha) annotation(
      Line(points = {{6, 0}, {26, 0}, {26, 0}, {26, 0}}, color = {0, 0, 127}, thickness = 0.5));
    connect(weaDat.weaBus, mixedAir1.weaBus) annotation(
      Line(points = {{66, 30}, {66, 0}}, color = {255, 204, 51}, thickness = 0.5));

     end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

 Type mismatch in array expression in component <Prefix.NOPRE()>. Floor is of type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall3

Thanks!

Problems with room model

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564/openmodelica-how-to-create-a-model-of-a-room-with-floor-heating-and-air-exchange-to-outside/). I think my problem is the same that in the other question, but I'm not capable of solve it.

I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

    model nuevaHab
        replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=4;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {48, -18}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2(
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.22,k=1,c=0,d=0)});     

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Ceiling(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.009525,k=0.12,c=1210,d=540),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.015875,k=0.17,c=1090,d=800)});      

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall4(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});
    Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam = "C:/Users/GEPOC-PC3/Documents/Buildings 5.0.1/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos")  annotation(
      Placement(visible = true, transformation(origin = {56, 30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant const(k = 0)  annotation(
      Placement(visible = true, transformation(origin = {-36, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Routing.Replicator replicator1(nout = max(1, nConExtWin))  annotation(
      Placement(visible = true, transformation(origin = {-6, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant qLat(k = 0)  annotation(
      Placement(visible = true, transformation(origin = {-70, -82}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant qCon(k = 0)  annotation(
      Placement(visible = true, transformation(origin = {-70, -52}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant qRad(k = 0)  annotation(
      Placement(visible = true, transformation(origin = {-70, -20}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Routing.Multiplex3 multiplex31 annotation(
      Placement(visible = true, transformation(origin = {-28, -52}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));    
equation
    connect(multiplex31.y, mixedAir1.qGai_flow) annotation(
      Line(points = {{-16, -52}, {-6, -52}, {-6, -10}, {26, -10}, {26, -10}}, color = {0, 0, 127}, thickness = 0.5));
    connect(qRad.y, multiplex31.u1[1]) annotation(
      Line(points = {{-58, -20}, {-40, -20}, {-40, -46}, {-40, -46}, {-40, -44}}, color = {0, 0, 127}));
    connect(qCon.y, multiplex31.u2[1]) annotation(
      Line(points = {{-58, -52}, {-40, -52}, {-40, -52}, {-40, -52}}, color = {0, 0, 127}));
    connect(qLat.y, multiplex31.u3[1]) annotation(
      Line(points = {{-58, -82}, {-40, -82}, {-40, -60}, {-40, -60}}, color = {0, 0, 127}));
    connect(const.y, replicator1.u) annotation(
      Line(points = {{-25, 0}, {-18, 0}}, color = {0, 0, 127}));
    connect(replicator1.y, mixedAir1.uSha) annotation(
      Line(points = {{6, 0}, {26, 0}, {26, 0}, {26, 0}}, color = {0, 0, 127}, thickness = 0.5));
    connect(weaDat.weaBus, mixedAir1.weaBus) annotation(
      Line(points = {{66, 30}, {66, 0}}, color = {255, 204, 51}, thickness = 0.5));

     end nuevaHab;

The error (It isn't complete because the error message is so long. If you want to see it, you can copy & execute it).

 Type mismatch in array expression in component <Prefix.NOPRE()>. Floor is of type record Buildings.HeatTransfer.Data.OpaqueConstructions.Generic$Wall3

Thanks!