56static const int FSTARTDIR = 1;
57static const int FENDDIR = 26;
59static const int STARTF = 0;
60static const int ENDF = 26;
63static const int ENDDIR = 26;
65extern const int DX1[ENDDIR + 1];
66extern const int DX2[ENDDIR + 1];
67extern const int DX3[ENDDIR + 1];
72static const int MINLEVEL = 0;
73static const int MAXLEVEL = 25;
75extern const int EX1[ENDDIR + 1];
76extern const int EX2[ENDDIR + 1];
77extern const int EX3[ENDDIR + 1];
81extern const int INVDIR[ENDDIR + 1];
144 return "Cell3DSystem::getDrectionString(...) - unknown dir";
148static inline void setNeighborCoordinatesForDirection(
int &x1,
int &x2,
int &x3,
const int &direction)
279static void calcDensity(
const real *
const &f ,
real &rho)
283 rho = ((f[dPPP] + f[dMMM]) + (f[dPMP] + f[dMPM])) + ((f[dPMM] + f[dMPP]) + (f[dMMP] + f[dPPM])) +
284 (((f[dPP0] + f[dMM0]) + (f[dPM0] + f[dMP0])) + ((f[dP0P] + f[dM0M]) + (f[dP0M] + f[dM0P])) +
285 ((f[d0PM] + f[d0MP]) + (f[d0PP] + f[d0MM]))) +
286 ((f[dP00] + f[dM00]) + (f[d0P0] + f[d0M0]) + (f[d00P] + f[d00M])) + f[d000];
289static void calcIncompVelocityX1(
const real *
const &f ,
real &
vx1)
293 vx1 = ((((f[dPPP] - f[dMMM]) + (f[dPMP] - f[dMPM])) + ((f[dPMM] - f[dMPP]) + (f[dPPM] - f[dMMP]))) +
294 (((f[dP0M] - f[dM0P]) + (f[dP0P] - f[dM0M])) + ((f[dPM0] - f[dMP0]) + (f[dPP0] - f[dMM0]))) + (f[dP00] - f[dM00]));
297static void calcIncompVelocityX2(
const real *
const &f ,
real &
vx2)
301 vx2 = ((((f[dPPP] - f[dMMM]) + (f[dMPM] - f[dPMP])) + ((f[dMPP] - f[dPMM]) + (f[dPPM] - f[dMMP]))) +
302 (((f[d0PM] - f[d0MP]) + (f[d0PP] - f[d0MM])) + ((f[dMP0] - f[dPM0]) + (f[dPP0] - f[dMM0]))) + (f[d0P0] - f[d0M0]));
305static void calcIncompVelocityX3(
const real *
const &f ,
real &
vx3)
309 vx3 = ((((f[dPPP] - f[dMMM]) + (f[dPMP] - f[dMPM])) + ((f[dMPP] - f[dPMM]) + (f[dMMP] - f[dPPM]))) +
310 (((f[d0MP] - f[d0PM]) + (f[d0PP] - f[d0MM])) + ((f[dM0P] - f[dP0M]) + (f[dP0P] - f[dM0M]))) + (f[d00P] - f[d00M]));
313static real getCompVelocityX1(
const real *
const &f )
317 return ((((f[dPPP] - f[dMMM]) + (f[dPMP] - f[dMPM])) + ((f[dPMM] - f[dMPP]) + (f[dPPM] - f[dMMP]))) +
318 (((f[dP0M] - f[dM0P]) + (f[dP0P] - f[dM0M])) + ((f[dPM0] - f[dMP0]) + (f[dPP0] - f[dMM0]))) + (f[dP00] - f[dM00])) /
322static real getCompVelocityX2(
const real *
const &f )
326 return ((((f[dPPP] - f[dMMM]) + (f[dMPM] - f[dPMP])) + ((f[dMPP] - f[dPMM]) + (f[dPPM] - f[dMMP]))) +
327 (((f[d0PM] - f[d0MP]) + (f[d0PP] - f[d0MM])) + ((f[dMP0] - f[dPM0]) + (f[dPP0] - f[dMM0]))) + (f[d0P0] - f[d0M0])) /
331static real getCompVelocityX3(
const real *
const &f )
335 return ((((f[dPPP] - f[dMMM]) + (f[dPMP] - f[dMPM])) + ((f[dMPP] - f[dPMM]) + (f[dMMP] - f[dPPM]))) +
336 (((f[d0MP] - f[d0PM]) + (f[d0PP] - f[d0MM])) + ((f[dM0P] - f[dP0M]) + (f[dP0P] - f[dM0M]))) + (f[d00P] - f[d00M])) /
340static void calcCompVelocityX1(
const real *
const &f ,
real &
vx1)
344 vx1 = ((((f[dPPP] - f[dMMM]) + (f[dPMP] - f[dMPM])) + ((f[dPMM] - f[dMPP]) + (f[dPPM] - f[dMMP]))) +
345 (((f[dP0M] - f[dM0P]) + (f[dP0P] - f[dM0M])) + ((f[dPM0] - f[dMP0]) + (f[dPP0] - f[dMM0]))) + (f[dP00] - f[dM00])) /
349static void calcCompVelocityX2(
const real *
const &f ,
real &
vx2)
353 vx2 = ((((f[dPPP] - f[dMMM]) + (f[dMPM] - f[dPMP])) + ((f[dMPP] - f[dPMM]) + (f[dPPM] - f[dMMP]))) +
354 (((f[d0PM] - f[d0MP]) + (f[d0PP] - f[d0MM])) + ((f[dMP0] - f[dPM0]) + (f[dPP0] - f[dMM0]))) + (f[d0P0] - f[d0M0])) /
358static void calcCompVelocityX3(
const real *
const &f ,
real &
vx3)
362 vx3 = ((((f[dPPP] - f[dMMM]) + (f[dPMP] - f[dMPM])) + ((f[dMPP] - f[dPMM]) + (f[dMMP] - f[dPPM]))) +
363 (((f[d0MP] - f[d0PM]) + (f[d0PP] - f[d0MM])) + ((f[dM0P] - f[dP0M]) + (f[dP0P] - f[dM0M]))) + (f[d00P] - f[d00M])) /
370 d3q27_system::calcDensity(f, rho);
371 d3q27_system::calcIncompVelocityX1(f,
vx1);
372 d3q27_system::calcIncompVelocityX2(f,
vx2);
373 d3q27_system::calcIncompVelocityX3(f,
vx3);
380 d3q27_system::calcDensity(f, drho);
381 d3q27_system::calcIncompVelocityX1(f,
vx1);
382 d3q27_system::calcIncompVelocityX2(f,
vx2);
383 d3q27_system::calcIncompVelocityX3(f,
vx3);
385 real rho = drho + vf::basics::constant::c1o1;
391static real getCompFeqForDirection(
const int &direction,
const real &drho,
const real &
vx1,
const real &
vx2,
397 real rho = drho + vf::basics::constant::c1o1;
400 return REAL_CAST(vf::basics::constant::c8o27 * (drho + rho * (-
cu_sq)));
402 return REAL_CAST(vf::basics::constant::c2o27 * (drho + rho * (3.0 * (
vx1) +vf::basics::constant::c9o2 * (
vx1) * (
vx1)-
cu_sq)));
404 return REAL_CAST(vf::basics::constant::c2o27 * (drho + rho * (3.0 * (-
vx1) + vf::basics::constant::c9o2 * (-
vx1) * (-
vx1) -
cu_sq)));
406 return REAL_CAST(vf::basics::constant::c2o27 * (drho + rho * (3.0 * (
vx2) +vf::basics::constant::c9o2 * (
vx2) * (
vx2)-
cu_sq)));
408 return REAL_CAST(vf::basics::constant::c2o27 * (drho + rho * (3.0 * (-
vx2) + vf::basics::constant::c9o2 * (-
vx2) * (-
vx2) -
cu_sq)));
410 return REAL_CAST(vf::basics::constant::c2o27 * (drho + rho * (3.0 * (
vx3) + vf::basics::constant::c9o2 * (
vx3) * (
vx3)-
cu_sq)));
412 return REAL_CAST(vf::basics::constant::c2o27 * (drho + rho * (3.0 * (-
vx3) + vf::basics::constant::c9o2 * (-
vx3) * (-
vx3) -
cu_sq)));
414 return REAL_CAST(vf::basics::constant::c1o54 *
417 return REAL_CAST(vf::basics::constant::c1o54 *
420 return REAL_CAST(vf::basics::constant::c1o54 *
423 return REAL_CAST(vf::basics::constant::c1o54 *
426 return REAL_CAST(vf::basics::constant::c1o54 *
429 return REAL_CAST(vf::basics::constant::c1o54 *
432 return REAL_CAST(vf::basics::constant::c1o54 *
435 return REAL_CAST(vf::basics::constant::c1o54 *
438 return REAL_CAST(vf::basics::constant::c1o54 *
441 return REAL_CAST(vf::basics::constant::c1o54 *
444 return REAL_CAST(vf::basics::constant::c1o54 *
447 return REAL_CAST(vf::basics::constant::c1o54 *
450 return REAL_CAST(vf::basics::constant::c1o216 *
454 return REAL_CAST(vf::basics::constant::c1o216 *
455 (drho + rho * (3.0 * (-
vx1 -
vx2 -
vx3) +
458 return REAL_CAST(vf::basics::constant::c1o216 *
462 return REAL_CAST(vf::basics::constant::c1o216 *
463 (drho + rho * (3.0 * (-
vx1 -
vx2 +
vx3) +
466 return REAL_CAST(vf::basics::constant::c1o216 *
470 return REAL_CAST(vf::basics::constant::c1o216 *
471 (drho + rho * (3.0 * (-
vx1 +
vx2 -
vx3) +
474 return REAL_CAST(vf::basics::constant::c1o216 *
478 return REAL_CAST(vf::basics::constant::c1o216 *
479 (drho + rho * (3.0 * (-
vx1 +
vx2 +
vx3) +
492 real rho = drho + vf::basics::constant::c1o1;
494 feq[d000] = vf::basics::constant::c8o27 * (drho + rho * (-
cu_sq));
495 feq[dP00] = vf::basics::constant::c2o27 * (drho + rho * (3.0 * (
vx1) + vf::basics::constant::c9o2 * (
vx1) * (
vx1)-
cu_sq));
496 feq[dM00] = vf::basics::constant::c2o27 * (drho + rho * (3.0 * (-
vx1) + vf::basics::constant::c9o2 * (-
vx1) * (-
vx1) -
cu_sq));
497 feq[d0P0] = vf::basics::constant::c2o27 * (drho + rho * (3.0 * (
vx2) + vf::basics::constant::c9o2 * (
vx2) * (
vx2)-
cu_sq));
498 feq[d0M0] = vf::basics::constant::c2o27 * (drho + rho * (3.0 * (-
vx2) + vf::basics::constant::c9o2 * (-
vx2) * (-
vx2) -
cu_sq));
499 feq[d00P] = vf::basics::constant::c2o27 * (drho + rho * (3.0 * (
vx3) + vf::basics::constant::c9o2 * (
vx3) * (
vx3)-
cu_sq));
500 feq[d00M] = vf::basics::constant::c2o27 * (drho + rho * (3.0 * (-
vx3) + vf::basics::constant::c9o2 * (-
vx3) * (-
vx3) -
cu_sq));
501 feq[dPP0] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (
vx1 +
vx2) + vf::basics::constant::c9o2 * (
vx1 +
vx2) * (
vx1 +
vx2) -
cu_sq));
502 feq[dMM0] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (-
vx1 -
vx2) + vf::basics::constant::c9o2 * (-
vx1 -
vx2) * (-
vx1 -
vx2) -
cu_sq));
503 feq[dPM0] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (
vx1 -
vx2) + vf::basics::constant::c9o2 * (
vx1 -
vx2) * (
vx1 -
vx2) -
cu_sq));
504 feq[dMP0] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (-
vx1 +
vx2) + vf::basics::constant::c9o2 * (-
vx1 +
vx2) * (-
vx1 +
vx2) -
cu_sq));
505 feq[dP0P] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (
vx1 +
vx3) + vf::basics::constant::c9o2 * (
vx1 +
vx3) * (
vx1 +
vx3) -
cu_sq));
506 feq[dM0M] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (-
vx1 -
vx3) + vf::basics::constant::c9o2 * (-
vx1 -
vx3) * (-
vx1 -
vx3) -
cu_sq));
507 feq[dP0M] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (
vx1 -
vx3) + vf::basics::constant::c9o2 * (
vx1 -
vx3) * (
vx1 -
vx3) -
cu_sq));
508 feq[dM0P] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (-
vx1 +
vx3) + vf::basics::constant::c9o2 * (-
vx1 +
vx3) * (-
vx1 +
vx3) -
cu_sq));
509 feq[d0PP] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (
vx2 +
vx3) + vf::basics::constant::c9o2 * (
vx2 +
vx3) * (
vx2 +
vx3) -
cu_sq));
510 feq[d0MM] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (-
vx2 -
vx3) + vf::basics::constant::c9o2 * (-
vx2 -
vx3) * (-
vx2 -
vx3) -
cu_sq));
511 feq[d0PM] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (
vx2 -
vx3) + vf::basics::constant::c9o2 * (
vx2 -
vx3) * (
vx2 -
vx3) -
cu_sq));
512 feq[d0MP] = vf::basics::constant::c1o54 * (drho + rho * (3.0 * (-
vx2 +
vx3) + vf::basics::constant::c9o2 * (-
vx2 +
vx3) * (-
vx2 +
vx3) -
cu_sq));
513 feq[dPPP] = vf::basics::constant::c1o216 *
516 vf::basics::constant::c1o216 *
518 feq[dPPM] = vf::basics::constant::c1o216 *
521 vf::basics::constant::c1o216 *
523 feq[dPMP] = vf::basics::constant::c1o216 *
526 vf::basics::constant::c1o216 *
528 feq[dPMM] = vf::basics::constant::c1o216 *
531 vf::basics::constant::c1o216 *
535static real getIncompFeqForDirection(
const int &direction,
const real &drho,
const real &
vx1,
546 return REAL_CAST(vf::basics::constant::c2o27 * (drho + 3.0 * (
vx1) + vf::basics::constant::c9o2 * (
vx1) * (
vx1)-
cu_sq));
548 return REAL_CAST(vf::basics::constant::c2o27 * (drho + 3.0 * (-
vx1) + vf::basics::constant::c9o2 * (-
vx1) * (-
vx1) -
cu_sq));
550 return REAL_CAST(vf::basics::constant::c2o27 * (drho + 3.0 * (
vx2) + vf::basics::constant::c9o2 * (
vx2) * (
vx2)-
cu_sq));
552 return REAL_CAST(vf::basics::constant::c2o27 * (drho + 3.0 * (-
vx2) + vf::basics::constant::c9o2 * (-
vx2) * (-
vx2) -
cu_sq));
554 return REAL_CAST(vf::basics::constant::c2o27 * (drho + 3.0 * (
vx3) + vf::basics::constant::c9o2 * (
vx3) * (
vx3)-
cu_sq));
556 return REAL_CAST(vf::basics::constant::c2o27 * (drho + 3.0 * (-
vx3) + vf::basics::constant::c9o2 * (-
vx3) * (-
vx3) -
cu_sq));
558 return REAL_CAST(vf::basics::constant::c1o54 *
561 return REAL_CAST(vf::basics::constant::c1o54 *
564 return REAL_CAST(vf::basics::constant::c1o54 *
567 return REAL_CAST(vf::basics::constant::c1o54 *
570 return REAL_CAST(vf::basics::constant::c1o54 *
573 return REAL_CAST(vf::basics::constant::c1o54 *
576 return REAL_CAST(vf::basics::constant::c1o54 *
579 return REAL_CAST(vf::basics::constant::c1o54 *
582 return REAL_CAST(vf::basics::constant::c1o54 *
585 return REAL_CAST(vf::basics::constant::c1o54 *
588 return REAL_CAST(vf::basics::constant::c1o54 *
591 return REAL_CAST(vf::basics::constant::c1o54 *
629 feq[d000] = vf::basics::constant::c8o27 * (drho -
cu_sq);
630 feq[dP00] = vf::basics::constant::c2o27 * (drho + 3.0 * (
vx1) + vf::basics::constant::c9o2 * (
vx1) * (
vx1)-
cu_sq);
631 feq[dM00] = vf::basics::constant::c2o27 * (drho + 3.0 * (-
vx1) + vf::basics::constant::c9o2 * (-
vx1) * (-
vx1) -
cu_sq);
632 feq[d0P0] = vf::basics::constant::c2o27 * (drho + 3.0 * (
vx2) + vf::basics::constant::c9o2 * (
vx2) * (
vx2)-
cu_sq);
633 feq[d0M0] = vf::basics::constant::c2o27 * (drho + 3.0 * (-
vx2) + vf::basics::constant::c9o2 * (-
vx2) * (-
vx2) -
cu_sq);
634 feq[d00P] = vf::basics::constant::c2o27 * (drho + 3.0 * (
vx3) + vf::basics::constant::c9o2 * (
vx3) * (
vx3)-
cu_sq);
635 feq[d00M] = vf::basics::constant::c2o27 * (drho + 3.0 * (-
vx3) + vf::basics::constant::c9o2 * (-
vx3) * (-
vx3) -
cu_sq);
636 feq[dPP0] = vf::basics::constant::c1o54 * (drho + 3.0 * (
vx1 +
vx2) + vf::basics::constant::c9o2 * (
vx1 +
vx2) * (
vx1 +
vx2) -
cu_sq);
637 feq[dMM0] = vf::basics::constant::c1o54 * (drho + 3.0 * (-
vx1 -
vx2) + vf::basics::constant::c9o2 * (-
vx1 -
vx2) * (-
vx1 -
vx2) -
cu_sq);
638 feq[dPM0] = vf::basics::constant::c1o54 * (drho + 3.0 * (
vx1 -
vx2) + vf::basics::constant::c9o2 * (
vx1 -
vx2) * (
vx1 -
vx2) -
cu_sq);
639 feq[dMP0] = vf::basics::constant::c1o54 * (drho + 3.0 * (-
vx1 +
vx2) + vf::basics::constant::c9o2 * (-
vx1 +
vx2) * (-
vx1 +
vx2) -
cu_sq);
640 feq[dP0P] = vf::basics::constant::c1o54 * (drho + 3.0 * (
vx1 +
vx3) + vf::basics::constant::c9o2 * (
vx1 +
vx3) * (
vx1 +
vx3) -
cu_sq);
641 feq[dM0M] = vf::basics::constant::c1o54 * (drho + 3.0 * (-
vx1 -
vx3) + vf::basics::constant::c9o2 * (-
vx1 -
vx3) * (-
vx1 -
vx3) -
cu_sq);
642 feq[dP0M] = vf::basics::constant::c1o54 * (drho + 3.0 * (
vx1 -
vx3) + vf::basics::constant::c9o2 * (
vx1 -
vx3) * (
vx1 -
vx3) -
cu_sq);
643 feq[dM0P] = vf::basics::constant::c1o54 * (drho + 3.0 * (-
vx1 +
vx3) + vf::basics::constant::c9o2 * (-
vx1 +
vx3) * (-
vx1 +
vx3) -
cu_sq);
644 feq[d0PP] = vf::basics::constant::c1o54 * (drho + 3.0 * (
vx2 +
vx3) + vf::basics::constant::c9o2 * (
vx2 +
vx3) * (
vx2 +
vx3) -
cu_sq);
645 feq[d0MM] = vf::basics::constant::c1o54 * (drho + 3.0 * (-
vx2 -
vx3) + vf::basics::constant::c9o2 * (-
vx2 -
vx3) * (-
vx2 -
vx3) -
cu_sq);
646 feq[d0PM] = vf::basics::constant::c1o54 * (drho + 3.0 * (
vx2 -
vx3) + vf::basics::constant::c9o2 * (
vx2 -
vx3) * (
vx2 -
vx3) -
cu_sq);
647 feq[d0MP] = vf::basics::constant::c1o54 * (drho + 3.0 * (-
vx2 +
vx3) + vf::basics::constant::c9o2 * (-
vx2 +
vx3) * (-
vx2 +
vx3) -
cu_sq);
648 feq[dPPP] = vf::basics::constant::c1o216 *
650 feq[dMMM] = vf::basics::constant::c1o216 *
652 feq[dPPM] = vf::basics::constant::c1o216 *
654 feq[dMMP] = vf::basics::constant::c1o216 *
656 feq[dPMP] = vf::basics::constant::c1o216 *
658 feq[dMPM] = vf::basics::constant::c1o216 *
660 feq[dPMM] = vf::basics::constant::c1o216 *
662 feq[dMPP] = vf::basics::constant::c1o216 *
666static inline real getBoundaryVelocityForDirection(
const int &direction,
const real &bcVelocityX1,
667 const real &bcVelocityX2,
const real &bcVelocityX3)
673 return (
real)(vf::basics::constant::c4o9 * (+bcVelocityX1));
675 return (
real)(vf::basics::constant::c4o9 * (-bcVelocityX1));
677 return (
real)(vf::basics::constant::c4o9 * (+bcVelocityX2));
679 return (
real)(vf::basics::constant::c4o9 * (-bcVelocityX2));
681 return (
real)(vf::basics::constant::c4o9 * (+bcVelocityX3));
683 return (
real)(vf::basics::constant::c4o9 * (-bcVelocityX3));
685 return (
real)(vf::basics::constant::c1o9 * (+bcVelocityX1 + bcVelocityX2));
687 return (
real)(vf::basics::constant::c1o9 * (-bcVelocityX1 - bcVelocityX2));
689 return (
real)(vf::basics::constant::c1o9 * (+bcVelocityX1 - bcVelocityX2));
691 return (
real)(vf::basics::constant::c1o9 * (-bcVelocityX1 + bcVelocityX2));
693 return (
real)(vf::basics::constant::c1o9 * (+bcVelocityX1 + bcVelocityX3));
695 return (
real)(vf::basics::constant::c1o9 * (-bcVelocityX1 - bcVelocityX3));
697 return (
real)(vf::basics::constant::c1o9 * (+bcVelocityX1 - bcVelocityX3));
699 return (
real)(vf::basics::constant::c1o9 * (-bcVelocityX1 + bcVelocityX3));
701 return (
real)(vf::basics::constant::c1o9 * (+bcVelocityX2 + bcVelocityX3));
703 return (
real)(vf::basics::constant::c1o9 * (-bcVelocityX2 - bcVelocityX3));
705 return (
real)(vf::basics::constant::c1o9 * (+bcVelocityX2 - bcVelocityX3));
707 return (
real)(vf::basics::constant::c1o9 * (-bcVelocityX2 + bcVelocityX3));
709 return (
real)(vf::basics::constant::c1o36 * (+bcVelocityX1 + bcVelocityX2 + bcVelocityX3));
711 return (
real)(vf::basics::constant::c1o36 * (-bcVelocityX1 - bcVelocityX2 - bcVelocityX3));
713 return (
real)(vf::basics::constant::c1o36 * (+bcVelocityX1 + bcVelocityX2 - bcVelocityX3));
715 return (
real)(vf::basics::constant::c1o36 * (-bcVelocityX1 - bcVelocityX2 + bcVelocityX3));
717 return (
real)(vf::basics::constant::c1o36 * (+bcVelocityX1 - bcVelocityX2 + bcVelocityX3));
719 return (
real)(vf::basics::constant::c1o36 * (-bcVelocityX1 + bcVelocityX2 - bcVelocityX3));
721 return (
real)(vf::basics::constant::c1o36 * (+bcVelocityX1 - bcVelocityX2 - bcVelocityX3));
723 return (
real)(vf::basics::constant::c1o36 * (-bcVelocityX1 + bcVelocityX2 + bcVelocityX3));
729static const int &getInvertDirection(
const int &direction)
739static void getLBMDirections(std::vector<int> &dirs,
bool onlyLBdirs =
false)
744 dirs.resize(FENDDIR + 1);
745 for (
int dir = FSTARTDIR; dir <= FENDDIR; ++dir)
749 dirs.resize(ENDDIR + 1);
750 for (
int dir = STARTF; dir <= ENDF; ++dir)
755static std::vector<int> getDX(
const int &
exn)
758 ex.resize(ENDDIR + 1);
761 for (
int dir = FSTARTDIR; dir <= FENDDIR; ++dir)
765 for (
int dir = FSTARTDIR; dir <= FENDDIR; ++dir)
769 for (
int dir = FSTARTDIR; dir <= FENDDIR; ++dir)
776static inline void calcDistanceToNeighbors(std::vector<real> &
distNeigh,
const real &deltaX1)
791static inline void calcDistanceToNeighbors(std::vector<real> &
distNeigh,
const real &deltaX1,
const real &deltaX2,
804 sqrt(deltaX1 * deltaX1 + deltaX2 * deltaX2 + deltaX3 * deltaX3);
806 sqrt(deltaX1 * deltaX1 + deltaX2 * deltaX2 + deltaX3 * deltaX3);
809static inline void initRayVectors(
real *
const &rayX1,
real *
const &rayX2,
real *
const &rayX3)
814 real c1oS2 = vf::basics::constant::c1oSqrt2;
815 real c1oS3 = vf::basics::constant::c1oSqrt3;
927 return ((f[dP00] + f[dM00] + f[d0P0] + f[d0M0] + f[d00P] + f[d00M] +
928 2. * (f[dPP0] + f[dMM0] + f[dPM0] + f[dMP0] + f[dP0P] + f[dM0M] + f[dP0M] + f[dM0P] + f[d0PP] + f[d0MM] + f[d0PM] + f[d0MP]) +
929 3. * (f[dPPP] + f[dMMP] + f[dPMP] + f[dMPP] + f[dPPM] + f[dMMM] + f[dPMM] + f[dMPM]) -
933 vf::basics::constant::c1o3;
1027 m0 += vf::basics::constant::c1o36 *
oMdrho;
1035 m0 += vf::basics::constant::c1o9 *
oMdrho;
1043 m0 += vf::basics::constant::c1o36 *
oMdrho;
1052 m0 += vf::basics::constant::c1o9 *
oMdrho;
1060 m0 += vf::basics::constant::c4o9 *
oMdrho;
1068 m0 += vf::basics::constant::c1o9 *
oMdrho;
1077 m0 += vf::basics::constant::c1o36 *
oMdrho;
1085 m0 += vf::basics::constant::c1o9 *
oMdrho;
1093 m0 += vf::basics::constant::c1o36 *
oMdrho;
1105 m0 += vf::basics::constant::c1o6 *
oMdrho;
1120 m0 += vf::basics::constant::c1o18 *
oMdrho;
1129 m0 += vf::basics::constant::c2o3 *
oMdrho;
1144 m0 += vf::basics::constant::c2o9 *
oMdrho;
1153 m0 += vf::basics::constant::c1o6 *
oMdrho;
1168 m0 += vf::basics::constant::c1o18 *
oMdrho;
1195 m0 += vf::basics::constant::c1o3 *
oMdrho;
1226 m0 += vf::basics::constant::c1o3 *
oMdrho;
1241 m0 += vf::basics::constant::c1o9 *
oMdrho;
1247 real OxxPyyPzz = 1.;
1262 (rho + vf::basics::constant::c1o1);
1572 real OxxPyyPzz = 1.;
1579 std::array<real, 6>
moments = {
1897 real OxxPyyPzz = 1.;
std::shared_ptr< T > SPtr
namespace for global system-functions
real getIncompVelocityX2(const real *const &f)
std::string getDirectionString(int direction)
real getIncompVelocityX1(const real *const &f)
real getDensity(const real *const &f)
const real cNorm[3][ENDDIR]
real getIncompVelocityX3(const real *const &f)