Common
Common functions and equations for reactions.
arrhenius_constant(a, n, er, temperature)
¶
Computes Arrhenius rate constants for low and high pressure limits.
Formula is as follows:
where: - \(k\) is the rate constant - \(A\) is the pre-exponential factor - \(T\) is the temperature - \(n\) is the temperature exponent - \(E_r\) is the activation energy - \(k\) is the rate constant
Parameters:
Name | Type | Description | Default |
---|---|---|---|
a
|
float | FreckllArray
|
The pre-exponential factor. |
required |
n
|
float | FreckllArray
|
The temperature exponent |
required |
er
|
float | FreckllArray
|
The activation energy. |
required |
Returns:
Name | Type | Description |
---|---|---|
k |
FreckllArray
|
The rate constant of the reaction. |
Source code in src/freckll/reactions/common.py
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\). |
Source code in src/freckll/reactions/common.py
plog_interpolate(log_points, a_points, n_points, er_points, pressures, temperature)
¶
Interpolates the Arrhenius parameters for the given pressures.
This is for the Pressure-Dependent Arrhenius (PLOG) rate constants.
The interpolation is given by:
Parameters:
Name | Type | Description | Default |
---|---|---|---|
log_points
|
FreckllArray
|
The log of the pressures at which the Arrhenius parameters are given. |
required |
a_points
|
FreckllArray
|
The pre-exponential factors at the given pressures. |
required |
n_points
|
FreckllArray
|
The temperature exponents at the given pressures. |
required |
er_points
|
FreckllArray
|
The activation energies at the given pressures. |
required |
pressures
|
FreckllArray
|
The pressures at which to interpolate the Arrhenius parameters. |
required |
Returns:
Type | Description |
---|---|
tuple[FreckllArray, FreckllArray, FreckllArray]
|
A tuple of the interpolated pre-exponential factor, temperature exponent, and activation energy. |
Source code in src/freckll/reactions/common.py
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
|