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.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
- property get_color
- property heat_capacity
- property litres
- property litres_per_mol
- property melting_point
- property molar_mass
- 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
- property vapour_enthalpy