150 constexpr int walls[6][4] = { {0,1,2,3}, {4,5,6,7}, {0,2,4,6}, {1,3,5,7}, {0,1,4,5}, {2,3,6,7} };
422 auto point = flags.wrap(dest_mesh->at(i));
423 std::size_t x = solver->mesh->axis[0]->findUpIndex(point[0]),
424 y = solver->mesh->axis[1]->findUpIndex(point[1]),
425 z = solver->mesh->axis[2]->findUpIndex(point[2]);
426 if (x == 0 || y == 0 || z == 0 || x == solver->mesh->axis[0]->size() || y == solver->mesh->axis[1]->size() || z == solver->mesh->axis[2]->size())
429 auto elem = solver->maskedMesh->element(x-1, y-1, z-1);
430 size_t idx =
elem.getIndex();
432 auto material = solver->geometry->getMaterial(
elem.getMidpoint());
433 return material->thermk(temps[idx], solver->thickness[idx]);