-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBulkGeneric.hpp
More file actions
96 lines (85 loc) · 2.48 KB
/
BulkGeneric.hpp
File metadata and controls
96 lines (85 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/
#pragma once
#include "../reactionsSystems/Parameters.hpp"
namespace hpcReact
{
namespace bulkGeneric
{
// turn off uncrustify to allow for better readability of the parameters
// *****UNCRUSTIFY-OFF******
// constexpr
// EquilibriumKineticsModelConstants< double, int, int, 5 >
// um1Constants =
// {
// { 1.70e-3, 3.2e-4, 4.7e-11, 1.0e7, 1.0e4 },
// { 0.039, 1.0e4, 1.0e4, 1.0e-12, 1.0e8 },
// { 0.0, 0.0, 0.0, 0.0, 0.0 },
// };
// constexpr
// ReactionsParameters< double, int, int, EquilibriumKineticsModelConstants, 10, 5 >
// um1Params =
// {
// {
// {
// { -1, 1, 0, 0, 0, 0, 0, 0, 0, -1 },
// { 0, -1, 1, 1, 0, 0, 0, 0, 0, 0 },
// { 0, 0, 1, -1, 1, 0, 0, 0, 0, 0 },
// { 0, 0, -4, 0, 0, -1, 2, 1, 0, 2 },
// { 0, 0, 0, 0, -1, 0, -1, 0, 1, 0 }
// }
// },
// um1Constants };
using simpleKineticTestType = reactionsSystems::MixedReactionsParameters< double, int, int, 5, 2, 0 >;
constexpr
simpleKineticTestType
simpleKineticTestRateParams =
{
// stoichiometric matrix
{
{ -2, 1, 1, 0, 0 },
{ 0, 0, -1, -1, 2 }
},
// equilibrium constants
{ 1.0, 1.0 },
// forward rate constants
{ 1.0, 0.5 },
// reverse rate constants
{ 1.0, 0.5 },
// flag of mobile secondary species
{ 1, 1 },
// Use the forward and reverse to calculate the kinetic reaction rates
0
};
using simpleTestType = reactionsSystems::MixedReactionsParameters< double, int, int, 5, 2, 2 >;
constexpr
simpleTestType
simpleTestRateParams =
{
// stoichiometric matrix
{
{ -2, 1, 1, 0, 0 },
{ 0, 0, -1, -1, 2 }
},
// equilibrium constants
{ 1.0, 1.0 },
// forward rate constants
{ 1.0, 0.5 },
// reverse rate constants
{ 1.0, 0.5 },
// flag of mobile secondary species
{ 1, 1 },
// Use the forward and reverse to calculate the kinetic reaction rates
0
};
// *****UNCRUSTIFY-ON******
} // namespace bulkGeneric
} // namespace hpcReact