The generation of mathematical models for the analysis buildings with multiple thermal zones is a large and complex task. Furthermore, order complexity dynamical model are increased by number included zones. To overcome this problem, paper presents an algorithm to define automatically, using geometric physics parameters as inputs. Additionally, spatial position each zone must be recorded in arr...