Common
Common functions and equations for reactions.
collision_rate_array(reduced_masses, num_species, k_rate, k_inf, m_concentration, temperature)
¶
Limits the reaction rate to the collision rate.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
reduced_masses
|
FreckllArray
|
The reduced masses of the reactants. |
required |
num_species
|
FreckllArrayInt
|
The number of species in the reaction. |
required |
k_rate
|
FreckllArray
|
The rate constant of the reaction. |
required |
k_inf
|
FreckllArray
|
high-pressure limit of the rate constant. |
required |
m_concentration
|
FreckllArray
|
The concentration of the reactants. |
required |
temperature
|
FreckllArray
|
The temperature of the reaction. |
required |
Source code in src/freckll/reactions/common.py
collision_rate_limit(reactants, k_rate, k_inf, m_concentration, temperature)
¶
Limits the reaction rate to the collision rate.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
reactants
|
list[SpeciesFormula]
|
The reactants in the reaction. |
required |
k_rate
|
FreckllArray
|
The rate constant of the reaction. |
required |
k_inf
|
FreckllArray
|
high-pressure limit of the rate constant. |
required |
m_concentration
|
FreckllArray
|
The concentration of the reactants. |
required |
temperature
|
FreckllArray
|
The temperature of the reaction. |
required |
Source code in src/freckll/reactions/common.py
compile_thermodynamic_properties(species, nasa_coeffs, temperature)
¶
Compiles the thermodynamic properties of the species in the reaction.
Resultant array will be of shape (Nspecies,2, Nlayers)
Where the second axis is the enthalpy and entropy.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
species
|
list[SpeciesFormula]
|
The species in the network. |
required |
nasa_coeffs
|
SpeciesDict[NasaCoeffs]
|
The NASA polynomial coefficients of the species. |
required |
temperature
|
FreckllArray
|
The temperature of the reaction. |
required |
Returns:
Type | Description |
---|---|
FreckllArray
|
The thermodynamic properties of the species. |
Source code in src/freckll/reactions/common.py
invert_reaction(thermo_inv_reactants, thermo_inv_products, k0, k_inf, temperature)
¶
Reverses the reaction.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
thermo_inv_reactants
|
FreckllArray
|
The thermodynamic properties of the reactants. |
required |
thermo_inv_products
|
FreckllArray
|
The thermodynamic properties of the products. |
required |
k0
|
FreckllArray
|
The rate constant of the reaction. |
required |
k_inf
|
FreckllArray
|
The high-pressure limit of the rate constant. |
required |
temperature
|
FreckllArray
|
The temperature of the reaction. |
required |
Returns:
Type | Description |
---|---|
tuple[FreckllArray, FreckllArray, FreckllArray]
|
The inverted rate constants \(k_0\), \(k_\infty\) and the equilibrium constant \(K\). |