ladybug-tools / uwg

:city_sunrise: The Urban Weather Generator (uwg) is a Python application for modeling the urban heat island effect.
https://www.ladybug.tools/uwg/docs/
GNU General Public License v3.0
56 stars 26 forks source link

Possible bug on Sensible Cooling/Heating demand calculation #259

Closed gianlucamaracchini closed 3 years ago

gianlucamaracchini commented 3 years ago

Hi, in building.py I found this:

` # Heat/Cooling load (W/m^2 of bld footprint), if any self.sensCoolDemand = max( wallArea zac_in_wall (T_wall - T_cool) + # wall load massArea zac_in_mass (T_mass-T_cool) + # mass load

window load due to temp delta

        winArea * self.u_value * (T_can - T_cool) +
        zac_in_ceil * (T_ceil-T_cool) +  # ceiling load
        self.int_heat +  # internal load
        volInfil * dens * parameter.cp * (T_can - T_cool) +  # m3 s-1
        volVent * dens * parameter.cp * (T_can-T_cool) +  # m3 s-1
        winTrans,  # solar load through window
        0.)

    self.sensHeatDemand = max(
        -(wallArea * zac_in_wall * (T_wall-T_heat) +  # wall load
          massArea * zac_in_mass * (T_mass-T_heat) +  # mass load
          winArea * self.u_value * (T_can - T_heat) +  # window load
          zac_in_ceil * (T_ceil-T_heat) +  # ceiling load
          self.int_heat +  # internal load
          volInfil * dens * parameter.cp * (T_can-T_heat) +  # m3 s-1
          volVent * dens * parameter.cp * (T_can-T_heat) +  # m3 s-1
          winTrans),  # solar load through window
        0.)`

As you can see the ceiling load is not multiplied by the roof area. This seems a bug to me,

Thanks in advance for your answer and work.

gianlucamaracchini commented 3 years ago

Solved. Areas are normalized per building footprint.