72{
73
75 {
76 std::istringstream iss(newValue);
77
79 iss >> species1;
80
82 iss >> species2;
83
84 double reactionRate;
85 iss >> reactionRate;
86
87
88
89
90 double dimensionedReactionRate = reactionRate * (1e-3 * m3 / (mole * s));
91
92
93
96 species1,
97 species2);
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118 while(iss.eof() == false)
119 {
121 iss >> product;
122
123 if(product != "")
124 {
126 }
127 else
128 {
129 break;
130 }
131 };
132
134 }
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
250 {
252 }
254 {
255 std::istringstream iss(newValue);
256
257
258
259
261 iss >> species1;
262
264 iss >> marker;
265
267
268 if(marker == "+")
269 {
270 iss >> species2;
271 iss >> marker;
272 }
273
274
275
278 species1,
279 species2);
280
281
282
283
284 if(marker == "->")
285 {
286 iss >> marker;
287
288 while(marker!="|"
289
290 && iss.eof() == false
291 )
292 {
294 if(marker == "+")
295 {
296 iss >> marker;
297 continue;
298 }
300 iss >> marker;
301 };
302 }
303
304
305
306
307
309 iss >> rateconst_method;
310 if(rateconst_method == "Fix")
311 {
312 iss >> marker;
313 double reactionRate;
314 iss >> reactionRate;
315
316 double dimensionedReactionRate = reactionRate * (1e-3 * m3 / (mole * s));
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338 }
339 else if(rateconst_method == "Arr")
340 {
341 iss >> marker;
342 double A0 = 0;
343 double E_R = 0;
344
345 iss >> A0;
346 iss >> E_R;
348 }
349 else if(rateconst_method == "Pol")
350 {
351 iss >> marker;
352 std::vector<double> P = {0, 0, 0, 0, 0};
353
354 size_t i = 0;
355 while(i < 4)
356 {
357 double tmp;
358 iss >> tmp;
359 P[i] = tmp;
360
361
362
363 ++i;
364 };
366 }
367 else if(rateconst_method == "Scale")
368 {
369 iss >> marker;
370 double temp_K;
371 iss >> temp_K;
372 double reactionRateCste;
373 iss >> reactionRateCste;
374 double dimensionedReactionRate = reactionRateCste * (1e-3 * m3 / (mole * s));
377 }
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
399
400 }
401}
G4GLOB_DLL std::ostream G4cout
void SetPolynomialParameterization(const std::vector< double > &P)
void SetArrehniusParameterization(double A0, double E_R)
void SetObservedReactionRateConstant(G4double rate)
void AddProduct(Reactant *molecule)
void SetScaledParameterization(double temperature_K, double rateCste)
void PrintTable(G4VDNAReactionModel *=0)
void SetReaction(G4double observedReactionRate, Reactant *reactive1, Reactant *reactive2)