If you are using EMS to model phase-changing constructions, there's an idf doing electronic glass window which might be helpful to you: Google Drive Link