pynams functions that help when running experiments


In [1]:
import pynams

What is the log base 10 of the fO2 in bars for a given temperature and buffer?


In [2]:
from pynams import fO2
fO2 = fO2(celsius=1000, buffer_curve='NNO')
print(fO2)


-10.319558889368887

What does that fO2 correspond to in mV reported by an O2 sensor?


In [3]:
from pynams import V_from_log10fO2
V_from_log10fO2(celsius=1000, log10fO2=fO2)


 -0.652 target Volts on pO2 meter

My fO2 meter is reading x mV. What fO2 does that correspond to in bars?


In [4]:
from pynams import log10fO2_from_V
logfO2 = log10fO2_from_V(celsius=1000, volts=-0.8)


-12.7 log10 oxygen fugacity