In a model, potentiostatic control is defined by using fixed potential boundary conditions. This can be done by setting the Electric Potential with respect to ground to control the cell potential, or the
Electrode Potential with respect to a reference potential somewhere in the system. Galvanostatic control can be accomplished using
Total Current or
Average Current Density boundary conditions. For both cases, one electrode in the cell needs to be grounded.
Mathematically, a Total Current or
Average Current Density condition implies setting the potential of a boundary to be equal to an additional extra global potential degree of freedom (floating potential) to comply with the specified current condition. For this reason, solving for galvanic control is numerically slightly more complex.