chemistrylab.material module

This file is part of ChemGymRL.

PropertyIntended Units – Object Type – Brief Description
  • name : N/A – str – The name of the material, used for identification purposes.

  • density : g/cm**3 – float – The density of the material at STP.

  • polarity : N/A – float – The polarity of the material.

  • temperature : K – float – The initial temperature of the material upon being called.

  • pressure : kPa – float – The initial pressure of the material upon being called.

  • phase : N/A – str – The state of the material at the initial temperature.

  • charge : C – float – The electric charge associated with the material.

  • molar_mass : g/mol – float – The most common molar mass of the material.

  • color : N/A – float – A number representing the color of the material using a 0 -> 1 scale.

  • solute : N/A – bool – A boolean indicating if the material is to be used as a solute.

  • solvent : N/A – bool – A boolean indicating if the material is to be used as a solvent.

  • boiling_point : K – float – The boiling point of the material.

  • melting_point : K – float – The melting point of the material.

  • specific_heat : J/g*K – float – The specific heat capacity of the material.

  • enthalpy_fusion : J/mol – float – The material’s enthalpy of fusion.

  • enthalpy_vapor : J/mol – float – The material’s enthalpy of vapor.

  • index : N/A – int – An additional index used for identification purposes.

  • heat_capacity: heat capacity in J/K

  • litres: volume in litres

  • vapour_enthalpy: heat to vaporize in J

Moreover, the REGISTRY variable gives a dictionary of available materials.

class chemistrylab.material.A(mol=0)[source]

Bases: Material

class chemistrylab.material.Air(mol=0)[source]

Bases: Material

class chemistrylab.material.B(mol=0)[source]

Bases: Material

class chemistrylab.material.C(mol=0)[source]

Bases: Material

class chemistrylab.material.C6H14(mol=0)[source]

Bases: Material

class chemistrylab.material.Cl(mol=0)[source]

Bases: Material

precipitate()[source]
class chemistrylab.material.Cl2(mol=0)[source]

Bases: Material

class chemistrylab.material.CuSO4(mol=0)[source]

Bases: Material

class chemistrylab.material.CuSO4Pentahydrate(mol=0)[source]

Bases: Material

class chemistrylab.material.D(mol=0)[source]

Bases: Material

class chemistrylab.material.DiEthylEther(mol=0)[source]

Bases: Material

class chemistrylab.material.Dodecane(mol=0)[source]

Bases: Material

class chemistrylab.material.E(mol=0)[source]

Bases: Material

class chemistrylab.material.Ethoxyethane(mol=0)[source]

Bases: Material

class chemistrylab.material.EthylAcetate(mol=0)[source]

Bases: Material

class chemistrylab.material.F(mol=0)[source]

Bases: Material

class chemistrylab.material.F2(mol=0)[source]

Bases: Material

class chemistrylab.material.FiveMethylundecane(mol=0)[source]

Bases: Material

class chemistrylab.material.FiveSixDimethyldecane(mol=0)[source]

Bases: Material

class chemistrylab.material.FourEthylFiveMethylnonane(mol=0)[source]

Bases: Material

class chemistrylab.material.FourEthyldecane(mol=0)[source]

Bases: Material

class chemistrylab.material.FourFiveDiethyloctane(mol=0)[source]

Bases: Material

class chemistrylab.material.G(mol=0)[source]

Bases: Material

class chemistrylab.material.H(mol=0)[source]

Bases: Material

class chemistrylab.material.H2(mol=0)[source]

Bases: Material

class chemistrylab.material.H2O(mol=0)[source]

Bases: Material

class chemistrylab.material.HCl(mol=0)[source]

Bases: Material

class chemistrylab.material.I(mol=0)[source]

Bases: Material

class chemistrylab.material.Li(mol=0)[source]

Bases: Material

class chemistrylab.material.LiF(mol=0)[source]

Bases: Material

class chemistrylab.material.Material(name='', density={'g': 1.0, 'l': 1.0, 's': 1.0}, polarity=0.0, temperature=1.0, pressure=1.0, phase='', charge=0.0, mol=0, molar_mass=1.0, color=0.0, solute=False, solvent=False, boiling_point=1.0, melting_point=1.0, specific_heat=1.0, enthalpy_fusion=1.0, enthalpy_vapor=1.0, spectra_overlap=None, spectra_no_overlap=None, index=None)[source]

Bases: object

property boiling_point
dissolve()[source]
enthalpy_vapor(enthalpy_vapor)[source]
property get_color
get_density(per_L=True)[source]
get_index()[source]
get_name()[source]
get_spectra_no_overlap()[source]
get_spectra_overlap()[source]
property heat_capacity
is_solute()[source]
is_solvent()[source]
property litres
property litres_per_mol
property melting_point
property molar_mass
precipitate()[source]
ration(ratio)[source]

Creates a new Material and moves ratio fraction of the moles to the new material Args: - ratio (float): Should be in [0,1] Returns - mat (Material): Material with the same class where the moles were moved

set_color(color)[source]
set_enthalpy_fusion(enthalpy_fusion)[source]
set_solute_flag(flag)[source]
set_solvent_flag(flag)[source]
set_specific_heat(specific_heat)[source]
property vapour_enthalpy
class chemistrylab.material.MethylRed(mol=0)[source]

Bases: Material

class chemistrylab.material.Na(mol=0)[source]

Bases: Material

precipitate()[source]
class chemistrylab.material.NaCl(mol=0)[source]

Bases: Material

dissolve()[source]
class chemistrylab.material.O(mol=0)[source]

Bases: Material

class chemistrylab.material.O2(mol=0)[source]

Bases: Material

class chemistrylab.material.O3(mol=0)[source]

Bases: Material

class chemistrylab.material.OneChlorohexane(mol=0)[source]

Bases: Material

class chemistrylab.material.ThreeChlorohexane(mol=0)[source]

Bases: Material

class chemistrylab.material.TwoChlorohexane(mol=0)[source]

Bases: Material

chemistrylab.material.register(*material_classes)[source]