OpenLB 1.7
Loading...
Searching...
No Matches
Variables
olb::descriptors::mrt_data Namespace Reference

Variables

template<unsigned D, unsigned Q>
platform_constant Fraction M [Q][Q] = {}
 
template<unsigned D, unsigned Q>
platform_constant Fraction invM [Q][Q] = {}
 
template<unsigned D, unsigned Q>
platform_constant Fraction s [Q] = {}
 
template<unsigned D, unsigned Q>
platform_constant Fraction s_2 [Q] = {}
 
template<unsigned D, unsigned Q>
platform_constant int shearIndexes = {}
 
template<unsigned D, unsigned Q>
platform_constant int shearViscIndexes [shearIndexes< D, Q >] = {}
 
template<unsigned D, unsigned Q>
platform_constant int bulkViscIndex = {}
 
template<>
platform_constant_definition Fraction M< 2, 5 > [5][5]
 Advection Diffusion MRT D2Q5.
 
template<>
platform_constant_definition Fraction M< 2, 9 > [9][9]
 MRT D2Q9 lattice.
 
template<>
platform_constant_definition Fraction M< 3, 7 > [7][7]
 Advection Diffusion MRT D3Q7.
 
template<>
platform_constant_definition Fraction M< 3, 19 > [19][19]
 MRT D3Q19 lattice.
 
template<>
platform_constant_definition Fraction invM< 2, 5 > [5][5]
 
template<>
platform_constant_definition Fraction invM< 2, 9 > [9][9]
 
template<>
platform_constant_definition Fraction invM< 3, 7 > [7][7]
 
template<>
platform_constant_definition Fraction invM< 3, 19 > [19][19]
 
template<>
platform_constant_definition Fraction s< 2, 5 > [5]
 
template<>
platform_constant_definition Fraction s< 2, 9 > [9]
 
template<>
platform_constant_definition Fraction s< 3, 7 > [7]
 
template<>
platform_constant_definition Fraction s< 3, 19 > [19]
 
template<>
platform_constant_definition Fraction s_2< 3, 19 > [19]
 
template<>
platform_constant_definition int shearIndexes< 2, 5 > = 2
 
template<>
platform_constant_definition int shearIndexes< 2, 9 > = 2
 
template<>
platform_constant_definition int shearIndexes< 3, 7 > = 3
 
template<>
platform_constant_definition int shearIndexes< 3, 19 > = 5
 
template<>
platform_constant_definition int shearViscIndexes< 2, 5 > [shearIndexes< 2, 5 >] = { 1, 2 }
 
template<>
platform_constant_definition int shearViscIndexes< 2, 9 > [shearIndexes< 2, 9 >] = { 7, 8 }
 
template<>
platform_constant_definition int shearViscIndexes< 3, 7 > [shearIndexes< 3, 7 >] = { 1, 2, 3 }
 
template<>
platform_constant_definition int shearViscIndexes< 3, 19 > [shearIndexes< 3, 19 >] = { 9, 11, 13, 14, 15 }
 
template<>
platform_constant_definition int bulkViscIndex< 2, 9 > = 2
 
template<>
platform_constant_definition int bulkViscIndex< 3, 19 > = 1
 

Variable Documentation

◆ bulkViscIndex

template<unsigned D, unsigned Q>
platform_constant int olb::descriptors::mrt_data::bulkViscIndex = {}

Definition at line 88 of file mrtLatticeDescriptors.h.

88{};

◆ bulkViscIndex< 2, 9 >

Definition at line 380 of file mrtLatticeDescriptors.h.

◆ bulkViscIndex< 3, 19 >

Definition at line 383 of file mrtLatticeDescriptors.h.

◆ invM

template<unsigned D, unsigned Q>
platform_constant Fraction olb::descriptors::mrt_data::invM[Q][Q] = {}

Definition at line 69 of file mrtLatticeDescriptors.h.

69{};

◆ invM< 2, 5 >

Initial value:
= {
{{1, 5}, 0, 0, {-1, 5}, 0},
{{1, 5}, {-1, 2}, 0, { 1, 20}, { 1, 4}},
{{1, 5}, 0, {-1, 2}, { 1, 20}, {-1, 4}},
{{1, 5}, { 1, 2}, 0, { 1, 20}, { 1, 4}},
{{1, 5}, 0, { 1, 2}, { 1, 20}, {-1, 4}}
}

Definition at line 170 of file mrtLatticeDescriptors.h.

170 {
171 {{1, 5}, 0, 0, {-1, 5}, 0},
172 {{1, 5}, {-1, 2}, 0, { 1, 20}, { 1, 4}},
173 {{1, 5}, 0, {-1, 2}, { 1, 20}, {-1, 4}},
174 {{1, 5}, { 1, 2}, 0, { 1, 20}, { 1, 4}},
175 {{1, 5}, 0, { 1, 2}, { 1, 20}, {-1, 4}}
176};

◆ invM< 2, 9 >

Initial value:
= {
{{1, 9}, {-1, 9}, { 1, 9}, 0, 0, 0, 0, 0, 0},
{{1, 9}, { 1, 18}, { 1, 36}, {-1, 6}, {-1, 12}, { 1, 6}, { 1, 12}, 0, {-1, 4}},
{{1, 9}, {-1, 36}, {-1, 18}, {-1, 6}, { 1, 6}, 0, 0, { 1, 4}, 0},
{{1, 9}, { 1, 18}, { 1, 36}, {-1, 6}, {-1, 12}, {-1, 6}, {-1, 12}, 0, { 1, 4}},
{{1, 9}, {-1, 36}, {-1, 18}, 0, 0, {-1, 6}, { 1, 6}, {-1, 4}, 0},
{{1, 9}, { 1, 18}, { 1, 36}, { 1, 6}, { 1, 12}, {-1, 6}, {-1, 12}, 0, {-1, 4}},
{{1, 9}, {-1, 36}, {-1, 18}, { 1, 6}, {-1, 6}, 0, 0, { 1, 4}, 0},
{{1, 9}, { 1, 18}, { 1, 36}, { 1, 6}, { 1, 12}, { 1, 6}, { 1, 12}, 0, { 1, 4}},
{{1, 9}, {-1, 36}, {-1, 18}, 0, 0, { 1, 6}, {-1, 6}, {-1, 4}, 0}
}

Definition at line 179 of file mrtLatticeDescriptors.h.

179 {
180 {{1, 9}, {-1, 9}, { 1, 9}, 0, 0, 0, 0, 0, 0},
181 {{1, 9}, { 1, 18}, { 1, 36}, {-1, 6}, {-1, 12}, { 1, 6}, { 1, 12}, 0, {-1, 4}},
182 {{1, 9}, {-1, 36}, {-1, 18}, {-1, 6}, { 1, 6}, 0, 0, { 1, 4}, 0},
183 {{1, 9}, { 1, 18}, { 1, 36}, {-1, 6}, {-1, 12}, {-1, 6}, {-1, 12}, 0, { 1, 4}},
184 {{1, 9}, {-1, 36}, {-1, 18}, 0, 0, {-1, 6}, { 1, 6}, {-1, 4}, 0},
185 {{1, 9}, { 1, 18}, { 1, 36}, { 1, 6}, { 1, 12}, {-1, 6}, {-1, 12}, 0, {-1, 4}},
186 {{1, 9}, {-1, 36}, {-1, 18}, { 1, 6}, {-1, 6}, 0, 0, { 1, 4}, 0},
187 {{1, 9}, { 1, 18}, { 1, 36}, { 1, 6}, { 1, 12}, { 1, 6}, { 1, 12}, 0, { 1, 4}},
188 {{1, 9}, {-1, 36}, {-1, 18}, 0, 0, { 1, 6}, {-1, 6}, {-1, 4}, 0}
189};

◆ invM< 3, 19 >

Definition at line 204 of file mrtLatticeDescriptors.h.

204 {
205 { {1,19}, { -5, 399}, { 1, 21}, 0, 0, 0, 0,
206 0, 0, 0, 0, 0, 0,
207 0, 0, 0, 0, 0, 0
208 },/*0*/
209 { {1,19}, {-11, 2394}, {-1, 63}, {-1, 10}, { 1, 10}, 0, 0,
210 0, 0, { 1, 18}, {-1, 18}, 0, 0,
211 0, 0, 0, 0, 0, 0
212 },/*1*/
213 { {1,19}, {-11, 2394}, {-1, 63}, 0, 0, {-1, 10}, { 1, 10},
214 0, 0, {-1, 36}, { 1, 36}, { 1, 12}, {-1, 12},
215 0, 0, 0, 0, 0, 0
216 },/*2*/
217 { {1,19}, {-11, 2394}, {-1, 63}, 0, 0, 0, 0,
218 { -1, 10}, { 1, 10}, {-1, 36}, { 1, 36}, {-1, 12}, { 1, 12},
219 0, 0, 0, 0, 0, 0
220 },/*3*/
221 { {1,19}, { 4, 1197}, { 1, 252}, {-1, 10}, {-1, 40}, {-1, 10}, {-1, 40},
222 0, 0, { 1, 36}, { 1, 72}, { 1, 12}, { 1, 24},
223 { 1, 4}, 0, 0, {-1, 8}, { 1, 8}, 0
224 },/*4*/
225 { {1,19}, { 4, 1197}, { 1, 252}, {-1, 10}, {-1, 40}, { 1, 10}, { 1, 40},
226 0, 0, { 1, 36}, { 1, 72}, { 1, 12}, { 1, 24},
227 { -1, 4}, 0, 0, {-1, 8}, {-1, 8}, 0
228 },/*5*/
229 { {1,19}, { 4, 1197}, { 1, 252}, {-1, 10}, {-1, 40}, 0, 0,
230 { -1, 10}, {-1, 40}, { 1, 36}, { 1, 72}, {-1, 12}, {-1, 24},
231 0, 0, { 1, 4}, { 1, 8}, 0, {-1, 8}
232 },/*6*/
233 { {1,19}, { 4, 1197}, { 1, 252}, {-1, 10}, {-1, 40}, 0, 0,
234 { 1, 10}, { 1, 40}, { 1, 36}, { 1, 72}, {-1, 12}, {-1, 24},
235 0, 0, {-1, 4}, { 1, 8}, 0, { 1, 8}
236 },/*7*/
237 { {1,19}, { 4, 1197}, { 1, 252}, 0, 0, {-1, 10}, {-1, 40},
238 { -1, 10}, {-1, 40}, {-1, 18}, {-1, 36}, 0, 0,
239 0, { 1, 4}, 0, 0, {-1, 8}, { 1, 8}
240 },/*8*/
241 { {1,19}, { 4, 1197}, { 1, 252}, 0, 0, {-1, 10}, {-1, 40},
242 { 1, 10}, { 1, 40}, {-1, 18}, {-1, 36}, 0, 0,
243 0, {-1, 4}, 0, 0, {-1, 8}, {-1, 8}
244 },/*9*/
245 { {1,19}, {-11, 2394}, {-1, 63}, { 1, 10}, {-1, 10}, 0, 0,
246 0, 0, { 1, 18}, {-1, 18}, 0, 0,
247 0, 0, 0, 0, 0, 0
248 },/*10*/
249 { {1,19}, {-11, 2394}, {-1, 63}, 0, 0, { 1, 10}, {-1, 10},
250 0, 0, {-1, 36}, { 1, 36}, { 1, 12}, {-1, 12},
251 0, 0, 0, 0, 0, 0
252 },/*11*/
253 { {1,19}, {-11, 2394}, {-1, 63}, 0, 0, 0, 0,
254 { 1, 10}, {-1, 10}, {-1, 36}, { 1, 36}, {-1, 12}, { 1, 12},
255 0, 0, 0, 0, 0, 0
256 },/*12*/
257 { {1,19}, { 4, 1197}, { 1, 252}, { 1, 10}, { 1, 40}, { 1, 10}, { 1, 40},
258 0, 0, { 1, 36}, { 1, 72}, { 1, 12}, { 1, 24},
259 { 1, 4}, 0, 0, { 1, 8}, {-1, 8}, 0
260 },/*13*/
261 { {1,19}, { 4, 1197}, { 1, 252}, { 1, 10}, { 1, 40}, {-1, 10}, {-1, 40},
262 0, 0, { 1, 36}, { 1, 72}, { 1, 12}, { 1, 24},
263 { -1, 4}, 0, 0, { 1, 8}, { 1, 8}, 0
264 },/*14*/
265 { {1,19}, { 4, 1197}, { 1, 252}, { 1, 10}, { 1, 40}, 0, 0,
266 { 1, 10}, { 1, 40}, { 1, 36}, { 1, 72}, {-1, 12}, {-1, 24},
267 0, 0, { 1, 4}, {-1, 8}, 0, { 1, 8}
268 },/*15*/
269 { {1,19}, { 4, 1197}, { 1, 252}, { 1, 10}, { 1, 40}, 0, 0,
270 { -1, 10}, {-1, 40}, { 1, 36}, { 1, 72}, {-1, 12}, {-1, 24},
271 0, 0, {-1, 4}, {-1, 8}, 0, {-1, 8}
272 },/*16*/
273 { {1,19}, { 4, 1197}, { 1, 252}, 0, 0, { 1, 10}, { 1, 40},
274 { 1, 10}, { 1, 40}, {-1, 18}, {-1, 36}, 0, 0,
275 0, { 1, 4}, 0, 0, { 1, 8}, {-1, 8}
276 },/*17*/
277 { {1,19}, { 4, 1197}, { 1, 252}, 0, 0, { 1, 10}, { 1, 40},
278 { -1, 10}, {-1, 40}, {-1, 18}, {-1, 36}, 0, 0,
279 0, {-1, 4}, 0, 0, { 1, 8}, { 1, 8}
280 }/*18*/
281};

◆ invM< 3, 7 >

Initial value:
= {
{{1, 7}, 0, 0, 0, { 1, 7}, 0, 0},
{{1, 7}, {-1, 2}, 0, 0, {-1, 42}, { 1, 6}, 0},
{{1, 7}, 0, {-1, 2}, 0, {-1, 42}, {-1, 12}, { 1, 4}},
{{1, 7}, 0, 0, {-1, 2}, {-1, 42}, {-1, 12}, {-1, 4}},
{{1, 7}, { 1, 2}, 0, 0, {-1, 42}, { 1, 6}, 0},
{{1, 7}, 0, { 1, 2}, 0, {-1, 42}, {-1, 12}, { 1, 4}},
{{1, 7}, 0, 0, { 1, 2}, {-1, 42}, {-1, 12}, {-1, 4}}
}

Definition at line 192 of file mrtLatticeDescriptors.h.

192 {
193 // Li, Yang et al 2016: The directions are modified for the OpenLB definition
194 {{1, 7}, 0, 0, 0, { 1, 7}, 0, 0},
195 {{1, 7}, {-1, 2}, 0, 0, {-1, 42}, { 1, 6}, 0},
196 {{1, 7}, 0, {-1, 2}, 0, {-1, 42}, {-1, 12}, { 1, 4}},
197 {{1, 7}, 0, 0, {-1, 2}, {-1, 42}, {-1, 12}, {-1, 4}},
198 {{1, 7}, { 1, 2}, 0, 0, {-1, 42}, { 1, 6}, 0},
199 {{1, 7}, 0, { 1, 2}, 0, {-1, 42}, {-1, 12}, { 1, 4}},
200 {{1, 7}, 0, 0, { 1, 2}, {-1, 42}, {-1, 12}, {-1, 4}}
201};

◆ M

template<unsigned D, unsigned Q>
platform_constant Fraction olb::descriptors::mrt_data::M[Q][Q] = {}

Definition at line 65 of file mrtLatticeDescriptors.h.

65{};

◆ M< 2, 5 >

Initial value:
= {
{ 1, 1, 1, 1, 1},
{ 0,-1, 0, 1, 0},
{ 0, 0,-1, 0, 1},
{-4, 1, 1, 1, 1},
{ 0, 1,-1, 1,-1}
}

Advection Diffusion MRT D2Q5.

Based on: Liu, Q., & He, Y. L. (2015). Double multiple-relaxation-time lattice Boltzmann model for solid–liquid phase change with natural convection in porous media. Physica A: Statistical Mechanics and its Applications, 438, 94-106.

Definition at line 97 of file mrtLatticeDescriptors.h.

97 {
98 { 1, 1, 1, 1, 1},
99 { 0,-1, 0, 1, 0},
100 { 0, 0,-1, 0, 1},
101 {-4, 1, 1, 1, 1},
102 { 0, 1,-1, 1,-1}
103};

◆ M< 2, 9 >

Initial value:
= {
{ 1, 1, 1, 1, 1, 1, 1, 1, 1},
{-4, 2, -1, 2, -1, 2, -1, 2, -1},
{ 4, 1, -2, 1, -2, 1, -2, 1, -2},
{ 0, -1, -1, -1, 0, 1, 1, 1, 0},
{ 0, -1, 2, -1, 0, 1, -2, 1, 0},
{ 0, 1, 0, -1, -1, -1, 0, 1, 1},
{ 0, 1, 0, -1, 2, -1, 0, 1, -2},
{ 0, 0, 1, 0, -1, 0, 1, 0, -1},
{ 0, -1, 0, 1, 0, -1, 0, 1, 0}
}

MRT D2Q9 lattice.

The numbering follows the one in "Viscous flow computations with the method of lattice Boltzmann equation", D. Yu, L.-S. Luo, W. Shi, Progress in Aerospace Sciences 39, (2003), p. 329-367

Definition at line 109 of file mrtLatticeDescriptors.h.

109 {
110 { 1, 1, 1, 1, 1, 1, 1, 1, 1},
111 {-4, 2, -1, 2, -1, 2, -1, 2, -1},
112 { 4, 1, -2, 1, -2, 1, -2, 1, -2},
113 { 0, -1, -1, -1, 0, 1, 1, 1, 0},
114 { 0, -1, 2, -1, 0, 1, -2, 1, 0},
115 { 0, 1, 0, -1, -1, -1, 0, 1, 1},
116 { 0, 1, 0, -1, 2, -1, 0, 1, -2},
117 { 0, 0, 1, 0, -1, 0, 1, 0, -1},
118 { 0, -1, 0, 1, 0, -1, 0, 1, 0}
119};

◆ M< 3, 19 >

Initial value:
= {
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{-30,-11,-11,-11, 8, 8, 8, 8, 8, 8,-11,-11,-11, 8, 8, 8, 8, 8, 8},
{ 12, -4, -4, -4, 1, 1, 1, 1, 1, 1, -4, -4, -4, 1, 1, 1, 1, 1, 1},
{ 0, -1, 0, 0, -1, -1, -1, -1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0},
{ 0, 4, 0, 0, -1, -1, -1, -1, 0, 0, -4, 0, 0, 1, 1, 1, 1, 0, 0},
{ 0, 0, -1, 0, -1, 1, 0, 0, -1, -1, 0, 1, 0, 1, -1, 0, 0, 1, 1},
{ 0, 0, 4, 0, -1, 1, 0, 0, -1, -1, 0, -4, 0, 1, -1, 0, 0, 1, 1},
{ 0, 0, 0, -1, 0, 0, -1, 1, -1, 1, 0, 0, 1, 0, 0, 1, -1, 1, -1},
{ 0, 0, 0, 4, 0, 0, -1, 1, -1, 1, 0, 0, -4, 0, 0, 1, -1, 1, -1},
{ 0, 2, -1, -1, 1, 1, 1, 1, -2, -2, 2, -1, -1, 1, 1, 1, 1, -2, -2},
{ 0, -4, 2, 2, 1, 1, 1, 1, -2, -2, -4, 2, 2, 1, 1, 1, 1, -2, -2},
{ 0, 0, 1, -1, 1, 1, -1, -1, 0, 0, 0, 1, -1, 1, 1, -1, -1, 0, 0},
{ 0, 0, -2, 2, 1, 1, -1, -1, 0, 0, 0, -2, 2, 1, 1, -1, -1, 0, 0},
{ 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 1, -1},
{ 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0},
{ 0, 0, 0, 0, -1, -1, 1, 1, 0, 0, 0, 0, 0, 1, 1, -1, -1, 0, 0},
{ 0, 0, 0, 0, 1, -1, 0, 0, -1, -1, 0, 0, 0, -1, 1, 0, 0, 1, 1},
{ 0, 0, 0, 0, 0, 0, -1, 1, 1, -1, 0, 0, 0, 0, 0, 1, -1, -1, 1}
}

MRT D3Q19 lattice.

The numbering follows the one in "Multiple-relaxation- time lattice Boltzmann models in three dimensions", D. D'Humières, I. Ginzburg, M. Krafzcyk, P. Lallemand, L.-S. Luo, Phil. Trans. R. Soc. Lond. A (2002) 660, p. 437-451

Definition at line 147 of file mrtLatticeDescriptors.h.

147 {
148 { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
149 {-30,-11,-11,-11, 8, 8, 8, 8, 8, 8,-11,-11,-11, 8, 8, 8, 8, 8, 8},
150 { 12, -4, -4, -4, 1, 1, 1, 1, 1, 1, -4, -4, -4, 1, 1, 1, 1, 1, 1},
151 { 0, -1, 0, 0, -1, -1, -1, -1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0},
152 { 0, 4, 0, 0, -1, -1, -1, -1, 0, 0, -4, 0, 0, 1, 1, 1, 1, 0, 0},
153 { 0, 0, -1, 0, -1, 1, 0, 0, -1, -1, 0, 1, 0, 1, -1, 0, 0, 1, 1},
154 { 0, 0, 4, 0, -1, 1, 0, 0, -1, -1, 0, -4, 0, 1, -1, 0, 0, 1, 1},
155 { 0, 0, 0, -1, 0, 0, -1, 1, -1, 1, 0, 0, 1, 0, 0, 1, -1, 1, -1},
156 { 0, 0, 0, 4, 0, 0, -1, 1, -1, 1, 0, 0, -4, 0, 0, 1, -1, 1, -1},
157 { 0, 2, -1, -1, 1, 1, 1, 1, -2, -2, 2, -1, -1, 1, 1, 1, 1, -2, -2},
158 { 0, -4, 2, 2, 1, 1, 1, 1, -2, -2, -4, 2, 2, 1, 1, 1, 1, -2, -2},
159 { 0, 0, 1, -1, 1, 1, -1, -1, 0, 0, 0, 1, -1, 1, 1, -1, -1, 0, 0},
160 { 0, 0, -2, 2, 1, 1, -1, -1, 0, 0, 0, -2, 2, 1, 1, -1, -1, 0, 0},
161 { 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0},
162 { 0, 0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 1, -1},
163 { 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0},
164 { 0, 0, 0, 0, -1, -1, 1, 1, 0, 0, 0, 0, 0, 1, 1, -1, -1, 0, 0},
165 { 0, 0, 0, 0, 1, -1, 0, 0, -1, -1, 0, 0, 0, -1, 1, 0, 0, 1, 1},
166 { 0, 0, 0, 0, 0, 0, -1, 1, 1, -1, 0, 0, 0, 0, 0, 1, -1, -1, 1}
167};

◆ M< 3, 7 >

Initial value:
= {
{1, 1, 1, 1, 1, 1, 1},
{0, -1, 0, 0, 1, 0, 0},
{0, 0, -1, 0, 0, 1, 0},
{0, 0, 0, -1, 0, 0, 1},
{6, -1, -1, -1, -1, -1, -1},
{0, 2, -1, -1, 2, -1, -1},
{0, 0, 1, -1, 0, 1, -1}
}

Advection Diffusion MRT D3Q7.

Based on: Wu, H., Wang, J., & Tao, Z. (2011). Passive heat transfer in a turbulent channel flow simulation using large eddy simulation based on the lattice Boltzmann method framework. International Journal of Heat and Fluid Flow, 32(6), 1111-1119.

There are some differences in respect to the order of the columns based on the lattice directions

Definition at line 131 of file mrtLatticeDescriptors.h.

131 {
132 // Li, Yang et al 2016: The directions are modified for the OpenLB definition
133 {1, 1, 1, 1, 1, 1, 1},
134 {0, -1, 0, 0, 1, 0, 0},
135 {0, 0, -1, 0, 0, 1, 0},
136 {0, 0, 0, -1, 0, 0, 1},
137 {6, -1, -1, -1, -1, -1, -1},
138 {0, 2, -1, -1, 2, -1, -1},
139 {0, 0, 1, -1, 0, 1, -1}
140};

◆ s

template<unsigned D, unsigned Q>
platform_constant Fraction olb::descriptors::mrt_data::s[Q] = {}

Definition at line 73 of file mrtLatticeDescriptors.h.

73{};

◆ s< 2, 5 >

Initial value:
= {
0, 0, 0, {3, 2}, {3, 2}
}

Definition at line 284 of file mrtLatticeDescriptors.h.

284 {
285 0, 0, 0, {3, 2}, {3, 2}
286};

◆ s< 2, 9 >

Initial value:
= {
0, {11, 10}, {11, 10}, 0, {11, 10}, 0, {11, 10}, 0, 0
}

Definition at line 291 of file mrtLatticeDescriptors.h.

291 {
292 0, {11, 10}, {11, 10}, 0, {11, 10}, 0, {11, 10}, 0, 0
293};

◆ s< 3, 19 >

Initial value:
= {
0,
{ 119, 100},
{ 7, 5},
0,
{ 6, 5},
0,
{ 6, 5},
0,
{ 6, 5},
0,
{ 7, 5},
0,
{ 7, 5},
0,
0,
0,
{ 99, 50},
{ 99, 50},
{ 99, 50}
}

Definition at line 309 of file mrtLatticeDescriptors.h.

309 {
310 /*s0*/ 0, // rho (conserved)
311 /*s1*/ { 119, 100},
312 /*s2*/ { 7, 5},
313 /*s3*/ 0, // rho*ux (conserved)
314 /*s4*/ { 6, 5},
315 /*s5*/ 0, // rho*uy (conserved)
316 /*s6*/ { 6, 5}, // = s4
317 /*s7*/ 0, // rho*uz (conserved)
318 /*s8*/ { 6, 5}, // = s4
319 /*s9*/ 0, //should be equal to s13, used to define nu
320 /*s10*/ { 7, 5},
321 /*s11*/ 0, // = s9,
322 /*s12*/ { 7, 5},
323 /*s13*/ 0, //should be equal to s9, used to define nu
324 /*s14*/ 0, // = s13,
325 /*s15*/ 0, // = s13,
326 /*s16*/ { 99, 50},
327 /*s17*/ { 99, 50}, // = s16,
328 /*s18*/ { 99, 50} // = s16,
329};

◆ s< 3, 7 >

Initial value:
= {
0,
0,
0,
0,
{19, 10},
{19, 10},
{19, 10}
}

Definition at line 296 of file mrtLatticeDescriptors.h.

296 {
297 // Original MRT Relaxation times
298 /*s0*/ 0, // rho (conserved)
299 /*s1*/ 0, // Function of the thermal diffusivity: S_a = 1/t_a = 1/(4*a + 1/2)
300 /*s2*/ 0, // Function of the thermal diffusivity: S_a = 1/t_a = 1/(4*a + 1/2)
301 /*s3*/ 0, // Function of the thermal diffusivity: S_a = 1/t_a = 1/(4*a + 1/2)
302 /*s4*/ {19, 10},
303 /*s5*/ {19, 10},
304 /*s6*/ {19, 10}
305};

◆ s_2

template<unsigned D, unsigned Q>
platform_constant Fraction olb::descriptors::mrt_data::s_2[Q] = {}

Definition at line 77 of file mrtLatticeDescriptors.h.

77{};

◆ s_2< 3, 19 >

Initial value:
= {
0,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
0,
1,
1,
1
}

Definition at line 333 of file mrtLatticeDescriptors.h.

333 {
334 /*s0*/ 0, // rho (conserved)
335 /*s1*/ 1,
336 /*s2*/ 1,
337 /*s3*/ 0, // rho*ux (conserved)
338 /*s4*/ 1,
339 /*s5*/ 0, // rho*uy (conserved)
340 /*s6*/ 1, // = s4
341 /*s7*/ 0, // rho*uz (conserved)
342 /*s8*/ 1, // = s4
343 /*s9*/ 0, //should be equal to s13, used to define nu
344 /*s10*/ 1,
345 /*s11*/ 0, // = s9,
346 /*s12*/ 1,
347 /*s13*/ 0, //should be equal to s9, used to define nu
348 /*s14*/ 0, // = s13,
349 /*s15*/ 0, // = s13,
350 /*s16*/ 1,
351 /*s17*/ 1, // = s16,
352 /*s18*/ 1 // = s16,
353};

◆ shearIndexes

template<unsigned D, unsigned Q>
platform_constant int olb::descriptors::mrt_data::shearIndexes = {}

Definition at line 80 of file mrtLatticeDescriptors.h.

80{};

◆ shearIndexes< 2, 5 >

Definition at line 356 of file mrtLatticeDescriptors.h.

◆ shearIndexes< 2, 9 >

Definition at line 359 of file mrtLatticeDescriptors.h.

◆ shearIndexes< 3, 19 >

Definition at line 365 of file mrtLatticeDescriptors.h.

◆ shearIndexes< 3, 7 >

Definition at line 362 of file mrtLatticeDescriptors.h.

◆ shearViscIndexes

template<unsigned D, unsigned Q>
platform_constant int olb::descriptors::mrt_data::shearViscIndexes[shearIndexes< D, Q >] = {}

Definition at line 84 of file mrtLatticeDescriptors.h.

84{};

◆ shearViscIndexes< 2, 5 >

Definition at line 368 of file mrtLatticeDescriptors.h.

368{ 1, 2 };

◆ shearViscIndexes< 2, 9 >

Definition at line 371 of file mrtLatticeDescriptors.h.

371{ 7, 8 };

◆ shearViscIndexes< 3, 19 >

template<>
platform_constant_definition int olb::descriptors::mrt_data::shearViscIndexes< 3, 19 >[shearIndexes< 3, 19 >] = { 9, 11, 13, 14, 15 }

Definition at line 377 of file mrtLatticeDescriptors.h.

377{ 9, 11, 13, 14, 15 };

◆ shearViscIndexes< 3, 7 >

Definition at line 374 of file mrtLatticeDescriptors.h.

374{ 1, 2, 3 };