Physical Constants#
Caution
The MATLAB toolbox is an experimental part of the Cantera API and may be changed without notice. It includes breaking changes from the legacy MATLAB API. While almost all features of the legacy MATLAB API are implemented, the toolbox does not include all functionality available for the C++ and Python interfaces.
These values are the same as those in the Cantera C++ header file ct_defs.h.
- ct.Avogadro()#
Get Avogadro’s number in 1/kmol.
>> r = ct.Avogadro
- Returns:
Avogadro’s number in 1/kmol.
- ct.GasConstant()#
Get the universal gas constant in J/kmol/K.
>> r = gasConstant
- Returns:
The universal gas constant in J/kmol/K.
- ct.OneAtm()#
Get one atmosphere in Pa.
>> p = ct.OneAtm
- Returns:
One atmosphere in Pascals.
- ct.OneBar()#
Get one bar in Pascals.
>> r = ct.OneBar
- Returns:
One bar in Pascals.
- ct.Boltzmann()#
Get Boltzmann’s constant in J/K.
>> r = ct.Boltzmann
- Returns:
Boltzmann’s constant in J/K.
- ct.Planck()#
Get Planck’s constant in J·s.
>> r = ct.Planck
- Returns:
Planck’s constant in J·s.
- ct.StefanBoltz()#
Get Stefan-Boltzmann constant in W/m²/K⁴.
>> r = ct.StefanBoltz
- Returns:
Stefan-Boltzmann constant in W/m²/K⁴.
- ct.ElectronCharge()#
Get the elementary charge in Coulombs.
>> r = ct.ElectronCharge
- Returns:
The elementary charge in Coulombs.
- ct.ElectronMass()#
Get the electron mass in kg.
>> r = ct.ElectronMass
- Returns:
The electron mass in kg.
- ct.FaradayConstant()#
Get the Faraday constant in C/kmol of electron.
>> r = ct.FaradayConstant
- Returns:
The Faraday constant in C/kmol of electron.
- ct.fineStructureConstant()#
Get the fine-structure constant (dimensionless).
>> r = ct.fineStructureConstant
- Returns:
The fine-structure constant (dimensionless).
- ct.lightSpeed()#
Get the speed of light in m/s.
>> r = ct.lightSpeed
- Returns:
The speed of light in m/s.
- ct.permeability0()#
Get the vacuum permeability in N/A².
>> r = ct.permeability0
- Returns:
The vacuum permeability in N/A².
- ct.epsilon0()#
Get the vacuum permittivity in C²/N/m².
>> r = ct.epsilon0
- Returns:
The vacuum permittivity in C²/N/m².