Data
Handles storing reactions.
Reaction
dataclass
¶
Source code in src/freckll/reactions/data.py
calculate_density_krate(number_density)
¶
Calculate the density krate.
ReactionCall
¶
A function that builds a standardized reaction computation.
Source code in src/freckll/reactions/data.py
__call__(concentration)
¶
Call the reaction.
A normalised reaction call.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
concentration
|
FreckllArray
|
The concentration. |
required |
Returns:
Type | Description |
---|---|
list[Reaction]
|
list[Reaction]: The reaction. |
Source code in src/freckll/reactions/data.py
__init__(species_list, reactants, products, tags, inverted, reaction_function)
¶
Initialize the reaction call.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
species_list
|
list[SpeciesFormula]
|
The species list. |
required |
reactants
|
list[SpeciesFormula]
|
The reactants. |
required |
products
|
list[SpeciesFormula]
|
The products. |
required |
tags
|
list[str]
|
The tags. |
required |
inverted
|
bool
|
Whether the reaction is inverted. |
required |
reaction_function
|
Callable[..., ReactionFunction]
|
The reaction function. |
required |
Source code in src/freckll/reactions/data.py
compile(temperature, pressure, thermo_properties)
¶
Compile the reaction.