Line | Branch | Exec | Source |
---|---|---|---|
1 | // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- | ||
2 | // vi: set et ts=4 sw=4 sts=4: | ||
3 | // | ||
4 | // SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder | ||
5 | // SPDX-License-Identifier: GPL-3.0-or-later | ||
6 | // | ||
7 | /*! | ||
8 | * \file | ||
9 | * \ingroup NavierStokesModel | ||
10 | * \copydoc Dumux::NavierStokesBoundaryTypes | ||
11 | */ | ||
12 | #ifndef FREEFLOW_NAVIERSTOKES_BOUNDARY_TYPES_HH | ||
13 | #define FREEFLOW_NAVIERSTOKES_BOUNDARY_TYPES_HH | ||
14 | |||
15 | #include <dumux/common/boundarytypes.hh> | ||
16 | #include <dumux/common/typetraits/typetraits.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | |||
20 | /*! | ||
21 | * \ingroup NavierStokesModel | ||
22 | * \brief Class to specify the type of a boundary condition for the Navier-Stokes model. | ||
23 | */ | ||
24 | template <int numEq> | ||
25 | class NavierStokesBoundaryTypes : public BoundaryTypes<numEq> | ||
26 | { | ||
27 | using ParentType = BoundaryTypes<numEq>; | ||
28 | |||
29 | public: | ||
30 | 417228553 | NavierStokesBoundaryTypes() | |
31 | 417228649 | { | |
32 |
2/48✓ Branch 0 taken 432065683 times.
✓ Branch 1 taken 2401455594 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
|
2833521529 | for (int eqIdx=0; eqIdx < numEq; ++eqIdx) |
33 | 4832585760 | resetEq(eqIdx); | |
34 | } | ||
35 | |||
36 | /*! | ||
37 | * \brief Reset the boundary types for one equation. | ||
38 | */ | ||
39 | void resetEq(const int eqIdx) | ||
40 | { | ||
41 |
3/8✗ Branch 0 not taken.
✓ Branch 1 taken 60 times.
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✓ Branch 7 taken 26 times.
|
4813042224 | ParentType::resetEq(eqIdx); |
42 | |||
43 |
3/8✗ Branch 0 not taken.
✓ Branch 1 taken 60 times.
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✓ Branch 7 taken 26 times.
|
5809916147 | boundaryInfo_[eqIdx].isSymmetry = false; |
44 |
3/8✗ Branch 0 not taken.
✓ Branch 1 taken 60 times.
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✓ Branch 7 taken 26 times.
|
5809916147 | boundaryInfo_[eqIdx].isBeaversJoseph = false; |
45 |
6/16✗ Branch 0 not taken.
✓ Branch 1 taken 60 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 60 times.
✓ Branch 4 taken 10 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 10 times.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✓ Branch 13 taken 26 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 26 times.
|
10622958371 | boundaryInfo_[eqIdx].isOutflow = false; |
46 | } | ||
47 | |||
48 | /*! | ||
49 | * \brief Sets a symmetry boundary condition for all equations | ||
50 | */ | ||
51 | void setAllSymmetry() | ||
52 | { | ||
53 |
2/2✓ Branch 0 taken 902068286 times.
✓ Branch 1 taken 139255031 times.
|
1041323317 | for (int eqIdx=0; eqIdx < numEq; ++eqIdx) |
54 | { | ||
55 | 902068286 | resetEq(eqIdx); | |
56 | 1804136572 | boundaryInfo_[eqIdx].isSymmetry = true; | |
57 | } | ||
58 | } | ||
59 | |||
60 | /*! | ||
61 | * \brief Returns true if the there is a symmetry boundary condition | ||
62 | */ | ||
63 | bool isSymmetry() const | ||
64 |
26/88✓ Branch 0 taken 12594210 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 12594210 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 13547177 times.
✓ Branch 5 taken 962307 times.
✓ Branch 6 taken 13547177 times.
✓ Branch 7 taken 962307 times.
✓ Branch 8 taken 5346186 times.
✓ Branch 9 taken 914914 times.
✓ Branch 10 taken 5346186 times.
✓ Branch 11 taken 914914 times.
✓ Branch 12 taken 5291530 times.
✓ Branch 13 taken 661612 times.
✓ Branch 14 taken 5291530 times.
✓ Branch 15 taken 661612 times.
✓ Branch 16 taken 6826516 times.
✓ Branch 17 taken 919308 times.
✓ Branch 18 taken 6826516 times.
✓ Branch 19 taken 919308 times.
✓ Branch 20 taken 401868 times.
✓ Branch 21 taken 1991200 times.
✓ Branch 22 taken 401868 times.
✓ Branch 23 taken 1991200 times.
✓ Branch 24 taken 23710 times.
✓ Branch 25 taken 81750 times.
✓ Branch 26 taken 23710 times.
✓ Branch 27 taken 81750 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✗ Branch 52 not taken.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 57 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 67 not taken.
✗ Branch 68 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✗ Branch 71 not taken.
✗ Branch 72 not taken.
✗ Branch 73 not taken.
✗ Branch 74 not taken.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
|
99124576 | { return boundaryInfo_[0].isSymmetry; } |
65 | |||
66 | /*! | ||
67 | * \brief Prevent setting all boundary conditions to Dirichlet. | ||
68 | */ | ||
69 | template<class T = void> | ||
70 | void setAllDirichlet() | ||
71 | { | ||
72 | static_assert(AlwaysFalse<T>::value, "Setting all boundary types to Dirichlet not permitted!"); | ||
73 | } | ||
74 | |||
75 | /*! | ||
76 | * \brief Prevent setting all boundary conditions to Neumann. | ||
77 | */ | ||
78 | template<class T = void> | ||
79 | void setAllNeumann() | ||
80 | { | ||
81 | static_assert(AlwaysFalse<T>::value, "Setting all boundary types to Neumann not permitted!"); | ||
82 | } | ||
83 | |||
84 | /*! | ||
85 | * \brief Set a boundary condition for a single equation to | ||
86 | * Beavers-Joseph(-Saffmann) (special case of Dirichlet b.c.). | ||
87 | */ | ||
88 | void setBeaversJoseph(const int eqIdx) | ||
89 | { | ||
90 | 1330708 | resetEq(eqIdx); | |
91 | 2661416 | boundaryInfo_[eqIdx].isBeaversJoseph = true; | |
92 | } | ||
93 | |||
94 | /*! | ||
95 | * \brief Returns true if an equation is used to specify a | ||
96 | * Beavers-Joseph(-Saffman) boundary condition. | ||
97 | * | ||
98 | * \param eqIdx The index of the equation | ||
99 | */ | ||
100 | bool isBeaversJoseph(const int eqIdx) const | ||
101 |
28/80✓ Branch 0 taken 8238028 times.
✓ Branch 1 taken 111908 times.
✓ Branch 2 taken 8238028 times.
✓ Branch 3 taken 111908 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✓ Branch 8 taken 255244 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 255244 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 346528 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 346528 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 13488 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 13488 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 346528 times.
✓ Branch 21 taken 5180383 times.
✓ Branch 22 taken 346528 times.
✓ Branch 23 taken 5180383 times.
✓ Branch 24 taken 149608 times.
✓ Branch 25 taken 5038855 times.
✓ Branch 26 taken 149608 times.
✓ Branch 27 taken 5038855 times.
✓ Branch 28 taken 346528 times.
✓ Branch 29 taken 5228956 times.
✓ Branch 30 taken 346528 times.
✓ Branch 31 taken 5228956 times.
✓ Branch 32 taken 255244 times.
✓ Branch 33 taken 12971453 times.
✓ Branch 34 taken 255244 times.
✓ Branch 35 taken 12971453 times.
✓ Branch 36 taken 136300 times.
✗ Branch 37 not taken.
✓ Branch 38 taken 136300 times.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✗ Branch 52 not taken.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 57 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 67 not taken.
✗ Branch 68 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✗ Branch 71 not taken.
✗ Branch 72 not taken.
✗ Branch 73 not taken.
✗ Branch 74 not taken.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
|
77238102 | { return boundaryInfo_[eqIdx].isBeaversJoseph; } |
102 | |||
103 | /*! | ||
104 | * \brief Returns true if some equation is used to specify a | ||
105 | * Beavers-Joseph(-Saffman) boundary condition. | ||
106 | */ | ||
107 | bool hasBeaversJoseph() const | ||
108 | { | ||
109 | for (int i = 0; i < numEq; ++i) | ||
110 | if (boundaryInfo_[i].isBeaversJoseph) | ||
111 | return true; | ||
112 | return false; | ||
113 | } | ||
114 | |||
115 | /*! | ||
116 | * \brief Set an outflow boundary condition | ||
117 | */ | ||
118 | void setOutflow(const int eqIdx) | ||
119 | { | ||
120 | 93474929 | resetEq(eqIdx); | |
121 | 186949858 | boundaryInfo_[eqIdx].isOutflow = true; | |
122 | } | ||
123 | |||
124 | /*! | ||
125 | * \brief Returns true if an outflow boundary condition was set | ||
126 | * \param eqIdx The index of the equation | ||
127 | */ | ||
128 | bool isOutflow(const int eqIdx) const | ||
129 |
28/280✓ Branch 0 taken 4325068 times.
✓ Branch 1 taken 4238260 times.
✓ Branch 2 taken 4325068 times.
✓ Branch 3 taken 4238260 times.
✓ Branch 4 taken 5164352 times.
✓ Branch 5 taken 3899498 times.
✓ Branch 6 taken 5164352 times.
✓ Branch 7 taken 3899498 times.
✓ Branch 8 taken 2575410 times.
✓ Branch 9 taken 2218642 times.
✓ Branch 10 taken 2575410 times.
✓ Branch 11 taken 2218642 times.
✓ Branch 12 taken 722584 times.
✓ Branch 13 taken 1201190 times.
✓ Branch 14 taken 722584 times.
✓ Branch 15 taken 1201190 times.
✓ Branch 16 taken 98060 times.
✓ Branch 17 taken 615888 times.
✓ Branch 18 taken 98060 times.
✓ Branch 19 taken 615888 times.
✓ Branch 20 taken 60320 times.
✓ Branch 21 taken 267342 times.
✓ Branch 22 taken 60320 times.
✓ Branch 23 taken 267342 times.
✓ Branch 24 taken 53100 times.
✓ Branch 25 taken 77160 times.
✓ Branch 26 taken 53100 times.
✓ Branch 27 taken 77160 times.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✗ Branch 52 not taken.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 57 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 67 not taken.
✗ Branch 68 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✗ Branch 71 not taken.
✗ Branch 72 not taken.
✗ Branch 73 not taken.
✗ Branch 74 not taken.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 93 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 96 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 103 not taken.
✗ Branch 104 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✗ Branch 107 not taken.
✗ Branch 108 not taken.
✗ Branch 109 not taken.
✗ Branch 110 not taken.
✗ Branch 111 not taken.
✗ Branch 112 not taken.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✗ Branch 116 not taken.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✗ Branch 120 not taken.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✗ Branch 123 not taken.
✗ Branch 124 not taken.
✗ Branch 125 not taken.
✗ Branch 126 not taken.
✗ Branch 127 not taken.
✗ Branch 128 not taken.
✗ Branch 129 not taken.
✗ Branch 130 not taken.
✗ Branch 131 not taken.
✗ Branch 132 not taken.
✗ Branch 133 not taken.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 137 not taken.
✗ Branch 138 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
✗ Branch 141 not taken.
✗ Branch 142 not taken.
✗ Branch 143 not taken.
✗ Branch 144 not taken.
✗ Branch 145 not taken.
✗ Branch 146 not taken.
✗ Branch 147 not taken.
✗ Branch 148 not taken.
✗ Branch 149 not taken.
✗ Branch 150 not taken.
✗ Branch 151 not taken.
✗ Branch 152 not taken.
✗ Branch 153 not taken.
✗ Branch 154 not taken.
✗ Branch 155 not taken.
✗ Branch 156 not taken.
✗ Branch 157 not taken.
✗ Branch 158 not taken.
✗ Branch 159 not taken.
✗ Branch 160 not taken.
✗ Branch 161 not taken.
✗ Branch 162 not taken.
✗ Branch 163 not taken.
✗ Branch 164 not taken.
✗ Branch 165 not taken.
✗ Branch 166 not taken.
✗ Branch 167 not taken.
✗ Branch 168 not taken.
✗ Branch 169 not taken.
✗ Branch 170 not taken.
✗ Branch 171 not taken.
✗ Branch 172 not taken.
✗ Branch 173 not taken.
✗ Branch 174 not taken.
✗ Branch 175 not taken.
✗ Branch 176 not taken.
✗ Branch 177 not taken.
✗ Branch 178 not taken.
✗ Branch 179 not taken.
✗ Branch 180 not taken.
✗ Branch 181 not taken.
✗ Branch 182 not taken.
✗ Branch 183 not taken.
✗ Branch 184 not taken.
✗ Branch 185 not taken.
✗ Branch 186 not taken.
✗ Branch 187 not taken.
✗ Branch 188 not taken.
✗ Branch 189 not taken.
✗ Branch 190 not taken.
✗ Branch 191 not taken.
✗ Branch 192 not taken.
✗ Branch 193 not taken.
✗ Branch 194 not taken.
✗ Branch 195 not taken.
✗ Branch 196 not taken.
✗ Branch 197 not taken.
✗ Branch 198 not taken.
✗ Branch 199 not taken.
✗ Branch 200 not taken.
✗ Branch 201 not taken.
✗ Branch 202 not taken.
✗ Branch 203 not taken.
✗ Branch 204 not taken.
✗ Branch 205 not taken.
✗ Branch 206 not taken.
✗ Branch 207 not taken.
✗ Branch 208 not taken.
✗ Branch 209 not taken.
✗ Branch 210 not taken.
✗ Branch 211 not taken.
✗ Branch 212 not taken.
✗ Branch 213 not taken.
✗ Branch 214 not taken.
✗ Branch 215 not taken.
✗ Branch 216 not taken.
✗ Branch 217 not taken.
✗ Branch 218 not taken.
✗ Branch 219 not taken.
✗ Branch 220 not taken.
✗ Branch 221 not taken.
✗ Branch 222 not taken.
✗ Branch 223 not taken.
✗ Branch 224 not taken.
✗ Branch 225 not taken.
✗ Branch 226 not taken.
✗ Branch 227 not taken.
✗ Branch 228 not taken.
✗ Branch 229 not taken.
✗ Branch 230 not taken.
✗ Branch 231 not taken.
✗ Branch 232 not taken.
✗ Branch 233 not taken.
✗ Branch 234 not taken.
✗ Branch 235 not taken.
✗ Branch 236 not taken.
✗ Branch 237 not taken.
✗ Branch 238 not taken.
✗ Branch 239 not taken.
✗ Branch 240 not taken.
✗ Branch 241 not taken.
✗ Branch 242 not taken.
✗ Branch 243 not taken.
✗ Branch 244 not taken.
✗ Branch 245 not taken.
✗ Branch 246 not taken.
✗ Branch 247 not taken.
✗ Branch 248 not taken.
✗ Branch 249 not taken.
✗ Branch 250 not taken.
✗ Branch 251 not taken.
✗ Branch 252 not taken.
✗ Branch 253 not taken.
✗ Branch 254 not taken.
✗ Branch 255 not taken.
✗ Branch 256 not taken.
✗ Branch 257 not taken.
✗ Branch 258 not taken.
✗ Branch 259 not taken.
✗ Branch 260 not taken.
✗ Branch 261 not taken.
✗ Branch 262 not taken.
✗ Branch 263 not taken.
✗ Branch 264 not taken.
✗ Branch 265 not taken.
✗ Branch 266 not taken.
✗ Branch 267 not taken.
✗ Branch 268 not taken.
✗ Branch 269 not taken.
✗ Branch 270 not taken.
✗ Branch 271 not taken.
✗ Branch 272 not taken.
✗ Branch 273 not taken.
✗ Branch 274 not taken.
✗ Branch 275 not taken.
✗ Branch 276 not taken.
✗ Branch 277 not taken.
✗ Branch 278 not taken.
✗ Branch 279 not taken.
|
51608252 | { return boundaryInfo_[eqIdx].isOutflow; } |
130 | |||
131 | /*! | ||
132 | * \brief Returns true if some equation has an outflow boundary condition | ||
133 | */ | ||
134 | bool hasOutflow() const | ||
135 | { | ||
136 | for (int i = 0; i < numEq; ++i) | ||
137 | if (boundaryInfo_[i].isOutflow) | ||
138 | return true; | ||
139 | return false; | ||
140 | } | ||
141 | |||
142 | protected: | ||
143 | //! use bitfields to minimize the size | ||
144 | struct NavierStokesBoundaryInfo | ||
145 | { | ||
146 | bool isSymmetry : 1; | ||
147 | bool isOutflow : 1; | ||
148 | bool isBeaversJoseph : 1; | ||
149 | }; | ||
150 | |||
151 | std::array<NavierStokesBoundaryInfo, numEq> boundaryInfo_; | ||
152 | }; | ||
153 | |||
154 | } // end namespace Dumux | ||
155 | |||
156 | #endif | ||
157 |