Title: A simulation model for analyzing electrical networks in buildings