fixed Thermostat and boundaryCondidtion