Reaction

Fill in a module description here

Reaction


source

Reaction

 Reaction (reactants:list, products:list)

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

Type Details
reactants list list of reactants
products list list of products
pd.DataFrame(data=[[1, 1, 1, 1]], columns=['Initial mass', 'Final mass', 'Initial energy', 'Final Energy'])
Initial mass Final mass Initial energy Final Energy
0 1 1 1 1
H2 = Compound('H2')
O2 = Compound('O2')
O2.setAmount(mass=Q(2.2, 'kilogram'))
<chemchem.compound.Compound>
O2.__dict__
{'occurences': {'O': 2},
 'elements': [<chemlib.chemistry.Element>,
  <chemlib.chemistry.Element>],
 'formula': 'O₂',
 'coefficient': 1,
 'name': None,
 'mass': 2.2 <Unit('kilogram')>,
 'moles': 68.75429714357148 <Unit('mole')>,
 'specific_heat': None}
H2O = Compound('H2O')
r2 = Reaction(reactants=[H2, O2], products=[H2O])
r2.table()
Name Formula Mass Mole Specifc Heat Heat Capacity
0 None H₂ None None None None
1 None O₂ 2.2 kilogram 68.75429714357148 mole None None
#r2.reactants[1].temperature(0)