Simulation of the behavior of building components containing phase change material