Gas

Fill in a module description here

Properties


source

IdealGasConstant

 IdealGasConstant (compound)

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


source

IsIdealGas

 IsIdealGas (compound)

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

Laws

  • mass mole ratio
  • mole volume ratio
The Simple Gas Law

source

BoyleLaw

 BoyleLaw (compound:exex.compound.core.Compound)

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


source

CharlesLaw

 CharlesLaw (compound:exex.compound.core.Compound)

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


source

AvogadroLaw

 AvogadroLaw (compound:exex.compound.core.Compound)

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

The Ideal Gas Law
pressure = {
    "pressure": {"unit": "pascal", "property": Pressure},
    "x": {"unit": "pascal", "property": Pressure},
}

source

IdealGasLaw

 IdealGasLaw (compound:exex.compound.core.Compound)

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

States

Ideal Gas State

Return True if the ideal gas equation holds


source

State

 State (context)

Helper class that provides a standard way to create an ABC using inheritance.

Gas Compound

Gas -> self._config_laws -> init law -> law._config_properties


source

Gas

 Gas (formula:str)

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

Type Details
formula str the chemical formula
Returns None

Sarin gas is developed by Nazi during WWII

C4H10FO2P = Gas('C4H10FO2P')
C4H10FO2P
__main__.Gas(formula='C₄H₁₀F₁O₂P₁')
C4H10FO2P.properties
{'mass': <exex.core.Mass>,
 'mole': <exex.core.Mole>,
 'pressure': <exex.core.Pressure>,
 'volume': <exex.core.Volume>,
 'temperature': <exex.core.Temperature>,
 'ideal_gas_constant': <__main__.IdealGasConstant>,
 'is_ideal_gas': <__main__.IsIdealGas>}
C4H10FO2P.laws['charles_law']
<__main__.CharlesLaw>
C4H10FO2P.laws['ideal_gas_law'].e
Eq(P*V, R*T*n)
C4H10FO2P.laws['ideal_gas_law'].e
Eq(P*V, R*T*n)