Gas

Fill in a module description here

source

Pressure

 Pressure ()

Initialize self. See help(type(self)) for accurate signature.

p = Pressure()
p.data
Series([], Name: Pressure over time, dtype: object)
p.append(2312)
<__main__.Pressure>

source

Gas

 Gas (formula:str)

Represents a chemical compound.

Type Details
formula str the chemical formula

Gas’s Laws


source

GasLaw

 GasLaw ()

Initialize self. See help(type(self)) for accurate signature.

GasLaw().charles_law()
Eq(t_1/v_1, t_2/v_2)
GasLaw().avogadro_law()
Eq(n_1/v_1, n_2/v_2)
def boylelaw():
    p1, v1, p2, v2 = smp.symbols('p_1 v_1 p_2 v_2')
    return smp.Eq(p1*v1, p2*v2)
boylelaw()
Eq(p_1*v_1, p_2*v_2)
boylelaw().subs([('p_1', 2), ('v_2', 5)])
Eq(2*v_1, 5*p_2)

Gas’s law using a different unit from the SI unit


source

UnitGas

 UnitGas ()

Default Units