@@ -99,7 +99,8 @@ The `k1` and `k2` rate constants are for Arrhenius reactions. See the [MICM docu
9999To solve this system save the following code in a file named ` foo_chem.cpp ` :
100100
101101``` c++
102- #include < micm/process/arrhenius_rate_constant.hpp>
102+ #include < micm/process/chemical_reaction_builder.hpp>
103+ #include < micm/process/rate_constant/arrhenius_rate_constant.hpp>
103104#include < micm/solver/rosenbrock.hpp>
104105#include < micm/solver/solver_builder.hpp>
105106
@@ -118,17 +119,19 @@ int main(const int argc, const char *argv[])
118119
119120 System chemical_system{ SystemParameters{ .gas_phase_ = gas_phase } };
120121
121- Process r1 = Process::Create ()
122+ Process r1 = ChemicalReactionBuilder ()
122123 .SetReactants({ foo })
123124 .SetProducts({ Yield(bar, 0.8), Yield(baz, 0.2) })
124125 .SetRateConstant(ArrheniusRateConstant({ .A_ = 1.0e-3 }))
125- .SetPhase(gas_phase);
126+ .SetPhase(gas_phase)
127+ .Build();
126128
127- Process r2 = Process::Create ()
129+ Process r2 = ChemicalReactionBuilder ()
128130 .SetReactants({ foo, bar })
129131 .SetProducts({ Yield(baz, 1) })
130132 .SetRateConstant(ArrheniusRateConstant({ .A_ = 1.0e-5, .C_ = 110.0 }))
131- .SetPhase(gas_phase);
133+ .SetPhase(gas_phase)
134+ .Build();
132135
133136 std::vector<Process > reactions{ r1, r2 };
134137
@@ -158,7 +161,7 @@ int main(const int argc, const char *argv[])
158161
159162To build and run the example using GNU (assuming the default install location):
160163```
161- g++ -o foo_chem foo_chem.cpp -I/usr/local/micm-3.9 .0/include -std=c++20
164+ g++ -o foo_chem foo_chem.cpp -I/usr/local/micm-3.10 .0/include -std=c++20
162165./foo_chem
163166```
164167
0 commit comments