Modeling a building with dynamic walls