In this case one must be precise about the thermodynamic definition of the chemical potential as well as the state of the device: is it electrically isolated, or is it connected to an electrode?
In this case one must be precise about the thermodynamic definition of the chemical potential as well: as the state of the device is it electrically isolated, or is it connected to an electrode?