4 #ifndef INCLUDE_CHEMISTRY_H_
5 #define INCLUDE_CHEMISTRY_H_
17 std::vector<std::string> sources_names;
18 std::vector<std::string> losses_names;
20 std::vector<int> sources_ids;
21 std::vector<bool> sources_IsNeutral;
23 std::vector<int> losses_ids;
24 std::vector<bool> losses_IsNeutral;
31 precision_t branching_ratio;
34 std::vector<reaction_type> reactions;
42 void calc_chemistry(
Neutrals &neutrals,
48 void calc_chemical_sources(
Neutrals &neutrals,
54 struct sources_and_losses_type {
56 precision_t neutral_sources[nSpecies];
57 precision_t neutral_losses[nSpecies];
58 precision_t ion_sources[nIons];
59 precision_t ion_losses[nIons];
61 precision_t heat_neutrals;
62 precision_t heat_ions;
63 precision_t heat_electrons;
66 sources_and_losses_type sources_and_losses;
68 int read_chemistry_file(
Neutrals neutrals,
73 reaction_type interpret_reaction_line(
Neutrals neutrals,
75 std::vector<std::string> line,
78 void find_species_id(std::string name,
85 void display_reaction(reaction_type reaction);
88 #endif // INCLUDE_CHEMISTRY_H_