unitpackage.electrochemistry.reference_electrode
This module contains the :class: _ReferenceElectrode to explore data for tabulated reference electrodes and determine the shift between different potential scales.
TODO:: Add description of certain sources, etc
An overview and particularities of reference electrodes can be, for example, be inferred from the following sources:
Inzelt et al., Handbook of Reference Electrodes, Springer, 2013 (DOI: https://doi.org/10.1007/978-3-642-36188-3)
Many values for specific reference electrodes can be found in these sources. The individual entries are associated with DOIs to the original works.
EXAMPLES:
>>> from unitpackage.electrochemistry.reference_electrode import ReferenceElectrode
>>> ref = ReferenceElectrode("Ag/AgCl-sat")
>>> ref
{'name': 'Ag/AgCl-sat', 'full_name': 'KCl Saturated silver / silver chloride electrode',
'alias': None, 'entries': [{'value': 0.197, 'standard': 'ECHEMDB-2026', 'approach': 'experimental',
'unit': 'V', 'vs': 'SHE', 'source': {'isbn': '978-1119334064'}, 'choice': None, 'uncertainty': None}],
'temperature_dependence': []}
>>> ref.shift(to="SHE", potential=0.55)
0.35300000000000004
- unitpackage.electrochemistry.reference_electrode.ReferenceElectrode(reference)
Get a reference electrode object.
EXAMPLES:
>>> ref = ReferenceElectrode("SHE") >>> ref.name 'SHE' >>> ReferenceElectrode(ref) is ref True >>> ReferenceElectrode('custom') Traceback (most recent call last): ... KeyError: "Reference electrode 'custom' not found in available reference electrodes (['SHE', 'Ag/AgCl', 'Ag/AgCl-sat', 'Ag/AgCl-1M', 'CE-sat', 'CE-1M', 'CE-0.1M', 'Hg/HgO-0.1M-NaOH', 'Hg/HgO-0.5M-NaOH', 'Hg/HgO-1M-NaOH', 'Hg/HgO-0.1M-KOH', 'Hg/HgO-0.5M-KOH', 'Hg/HgO-1M-KOH', 'MSE-sat', 'MSE-0.5M', 'RHE'])."