295 if (block->isNotActive())
303 real timestep = c0o1;
328 real deltaX1 =
dx, deltaX2 =
dx, deltaX3 =
dx;
332 if (!
ub_math::zero(deltaX1 - deltaX2 + deltaX1 - deltaX3 + deltaX2 - deltaX3))
334 UB_EXARGS,
"fuer den bei LB nicht vorkommenden Fall deltaX1!=deltaX2!=deltaX3 nicht implementiert ");
340 distNeigh[dPM0] = vf::basics::constant::cSqrt2 * deltaX1;
342 distNeigh[d0MP] = vf::basics::constant::cSqrt2 * deltaX1;
344 distNeigh[d0MM] = vf::basics::constant::cSqrt2 * deltaX1;
346 distNeigh[dMMP] = vf::basics::constant::cSqrt3 * deltaX1;
348 distNeigh[dMMM] = vf::basics::constant::cSqrt3 * deltaX1;
359 if (bcArray->isUndefined(ix1, ix2, ix3))
374 bcArray->setSolid(ix1, ix2, ix3);
386 bcArray->setSolid(ix1, ix2, ix3);
392 if (bcArray->isSolid(ix1, ix2, ix3))
397 for (
int fdir = d3q27_system::FSTARTDIR;
fdir <= d3q27_system::FENDDIR;
fdir++) {
409 bc = bcArray->getBC(ix1, ix2, ix3);
411 bc = std::make_shared<BoundaryConditions>();
412 bcArray->setBC(ix1, ix2, ix3, bc);
415 if (bc->hasNoSlipBoundary()) {
416 bc->setBoundaryVelocityX1(c0o1);
417 bc->setBoundaryVelocityX2(c0o1);
418 bc->setBoundaryVelocityX3(c0o1);
421 for (
int index = (
int)
BCs.size() - 1; index >= 0; --index)
434 std::vector<int>
p(3);
440 for (
int index = (
int)
BCs.size() - 1; index >= 0; --index)
450 bcArray->setSolid(ix1, ix2, ix3);
465 if (bcArray->isSolid(ix1, ix2, ix3) || bcArray->isUndefined(ix1, ix2, ix3))
477 bcArray->setSolid(ix1, ix2, ix3);
487 bcArray->setSolid(ix1, ix2, ix3);
496 for (
int fdir = d3q27_system::FSTARTDIR;
fdir <= d3q27_system::FENDDIR;
fdir++) {
535 bc = bcArray->getBC(ix1, ix2, ix3);
537 bc = std::make_shared<BoundaryConditions>();
538 bcArray->setBC(ix1, ix2, ix3, bc);
540 for (
int index = (
int)
BCs.size() - 1; index >= 0; --index)
558 std::vector<int>
p(3);
564 for (
int index = (
int)
BCs.size() - 1; index >= 0; --index)
603 int ix1 = (*setPos)[0];
604 int ix2 = (*setPos)[1];
605 int ix3 = (*setPos)[2];
607 if (bcArray->isFluid(
611 if (!bcArray->hasBC(ix1, ix2, ix3))
621 for (
int dir = d3q27_system::FSTARTDIR; dir <= d3q27_system::FENDDIR; dir++) {
796 if (!block->getConnector(d0P0))
798 if (!block->getConnector(dP00))
800 if (!block->getConnector(d00P))
817 grid.lock()->calcStartCoordinatesAndDelta(block, x1, x2, x3,
dx);
820 int ix1 = (*setPos)[0];
821 int ix2 = (*setPos)[1];
822 int ix3 = (*setPos)[2];
835 if (!
bcMatrix->hasBC(ix1, ix2, ix3))
844 for (
int dir = d3q27_system::FSTARTDIR; dir <= d3q27_system::FENDDIR; dir++) {