A first-order thermal model for building design