VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
MultipleGridBuilderFacade.cpp
Go to the documentation of this file.
1//=======================================================================================
2// ____ ____ __ ______ __________ __ __ __ __
3// \ \ | | | | | _ \ |___ ___| | | | | / \ | |
4// \ \ | | | | | |_) | | | | | | | / \ | |
5// \ \ | | | | | _ / | | | | | | / /\ \ | |
6// \ \ | | | | | | \ \ | | | \__/ | / ____ \ | |____
7// \ \ | | |__| |__| \__\ |__| \________/ /__/ \__\ |_______|
8// \ \ | | ________________________________________________________________
9// \ \ | | | ______________________________________________________________|
10// \ \| | | | __ __ __ __ ______ _______
11// \ | | |_____ | | | | | | | | | _ \ / _____)
12// \ | | _____| | | | | | | | | | | \ \ \_______
13// \ | | | | |_____ | \_/ | | | | |_/ / _____ |
14// \ _____| |__| |________| \_______/ |__| |______/ (_______/
15//
16// This file is part of VirtualFluids. VirtualFluids is free software: you can
17// redistribute it and/or modify it under the terms of the GNU General Public
18// License as published by the Free Software Foundation, either version 3 of
19// the License, or (at your option) any later version.
20//
21// VirtualFluids is distributed in the hope that it will be useful, but WITHOUT
22// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24// for more details.
25//
26// SPDX-License-Identifier: GPL-3.0-or-later
27// SPDX-FileCopyrightText: Copyright © VirtualFluids Project contributors, see AUTHORS.md in root folder
28//
32//=======================================================================================
33#include <algorithm>
34#include <climits>
35#include <iostream>
36#include <iterator>
37#include <stdexcept>
38#include <string>
39#include <utility>
40
44#include "geometries/Object.h"
46#include "grid/GridDimensions.h"
47
48using namespace vf::basics::constant;
49
50namespace vf::gpu {
51
52using namespace communication_directions;
53
56 std::optional<real> overlapOfSubdomains)
57 : gridBuilder(std::move(gridBuilder)), gridDimensionsDomain(std::move(gridDimensions)),
58 overlapOfSubdomains(overlapOfSubdomains)
59{
60}
61
67
69{
70 if (createGridsHasBeenCalled)
71 throw std::runtime_error("MultipleGridBuilderFacade::createGrids() has been called more than once.");
72 createGridsHasBeenCalled = true;
73
74 this->calculateNumberOfSubdomains();
75 this->numberOfSubdomainsTotal =
77
78 if (numberOfSubdomainsTotal > 1 && !this->overlapOfSubdomains)
79 throw std::runtime_error("OverlapOfSubdomains in MultipleGridBuilderFacade is NaN.");
80
81 if (generatePart >= numberOfSubdomainsTotal)
82 throw std::runtime_error("Invalid id for subdomain: It is greater or equal to numberOfSubdomains");
83
84 this->sortSplitLocations();
85
86 this->checkSplitLocations(this->xSplits, this->gridDimensionsDomain->minX, this->gridDimensionsDomain->maxX);
87 this->checkSplitLocations(this->ySplits, this->gridDimensionsDomain->minY, this->gridDimensionsDomain->maxY);
88 this->checkSplitLocations(this->zSplits, this->gridDimensionsDomain->minZ, this->gridDimensionsDomain->maxZ);
89
90 this->calculatedIndexOfPart(generatePart);
91
92 this->checkForNeighbors();
93
94 this->configureSubDomainGrids();
95
96 this->addGeometriesToGridBuilder();
97
98 gridBuilder->buildGrids(false); // buildGrids() has to be called before setting the BCs!!!!
99
100 this->setUpCommunicationNeighbors();
101
102 this->setGlobalPeriodicity();
103}
104
105void MultipleGridBuilderFacade::calculateNumberOfSubdomains()
106{
107 this->numberOfSubdomains[Axis::x] = (uint)(this->xSplits.size() + 1);
108 this->numberOfSubdomains[Axis::y] = (uint)(this->ySplits.size() + 1);
109 this->numberOfSubdomains[Axis::z] = (uint)(this->zSplits.size() + 1);
110}
111
112void MultipleGridBuilderFacade::sortSplitLocations()
113{
114
115 std::sort(this->xSplits.begin(), this->xSplits.end());
116 std::sort(this->ySplits.begin(), this->ySplits.end());
117 std::sort(this->zSplits.begin(), this->zSplits.end());
118}
119
120void MultipleGridBuilderFacade::calculatedIndexOfPart(uint generatePart)
121{
122 this->index.at(Axis::x) = this->getX3D(generatePart);
123 this->index.at(Axis::y) = this->getY3D(generatePart);
124 this->index.at(Axis::z) = this->getZ3D(generatePart);
125}
126
127void MultipleGridBuilderFacade::checkSplitLocations(const std::vector<real>& splits, real lowerBound, real upperBound) const
128{
129 if (splits.empty()) return;
130
131 if (splits.front() < lowerBound)
132 throw std::runtime_error("The domain split value " + std::to_string(splits.front()) +
133 " is smaller than the lower bound (" + std::to_string(lowerBound) + ") of the domain.");
134 if (splits.back() > upperBound)
135 throw std::runtime_error("A domain split value " + std::to_string(splits.back()) +
136 " is larger than the upper bound (" + std::to_string(upperBound) + ") of the domain.");
137
138 auto iteratorOfDuplicate = std::adjacent_find(splits.begin(), splits.end());
139 if (iteratorOfDuplicate != splits.end())
140 throw std::runtime_error("The domain split value " + std::to_string(*iteratorOfDuplicate) +
141 " was added multiple times for the same coordinate direction");
142}
143
144void MultipleGridBuilderFacade::configureSubDomainGrids()
145{
146
147 // Example: 2 subdomains in x
148 // xSplits = {0}
149 // xMin = {-1}
150 // xMax = {1}
151
152 // vector xValues (bounding boxes of the subdomains)
153 //
154 // /------- subdmain 0 -------/
155 // | |
156 // -1.0 0.0 1.0
157 // | |
158 // /------- subdmain 1 -------/
159 //
160 // xValues = {-1.0, 0.0, 1.0}
161
162 // create vector with the coordinates of the subdomain's bounding boxes
163 std::vector<real> xValues = { this->gridDimensionsDomain->minX, this->gridDimensionsDomain->maxX };
164 xValues.insert(std::prev(xValues.end()), this->xSplits.begin(), this->xSplits.end());
165 std::vector<real> yValues = { this->gridDimensionsDomain->minY, this->gridDimensionsDomain->maxY };
166 yValues.insert(std::prev(yValues.end()), this->ySplits.begin(), this->ySplits.end());
167 std::vector<real> zValues = { this->gridDimensionsDomain->minZ, this->gridDimensionsDomain->maxZ };
168 zValues.insert(std::prev(zValues.end()), this->zSplits.begin(), this->zSplits.end());
169
170 real xMinCoarseGrid = xValues[index.at(Axis::x)];
171 real yMinCoarseGrid = yValues[index.at(Axis::y)];
172 real zMinCoarseGrid = zValues[index.at(Axis::z)];
173 real xMaxCoarseGrid = xValues[index.at(Axis::x) + 1];
174 real yMaxCoarseGrid = yValues[index.at(Axis::y) + 1];
175 real zMaxCoarseGrid = zValues[index.at(Axis::z) + 1];
176
177 std::array localPeriodicity { false, false, false };
178 std::array globalPeriodicity { false, false, false };
179 for (const auto coordDirection : axis::allAxes) {
180 if (!periodicity[coordDirection])
181 continue;
182
185 else
187 }
188
189 // add overlap
190 xMinCoarseGrid -= (hasNeighbors[communication_directions::MX] || globalPeriodicity[Axis::x]) ? overlapOfSubdomains.value() : 0;
191 yMinCoarseGrid -= (hasNeighbors[communication_directions::MY] || globalPeriodicity[Axis::y]) ? overlapOfSubdomains.value() : 0;
192 zMinCoarseGrid -= (hasNeighbors[communication_directions::MZ] || globalPeriodicity[Axis::z]) ? overlapOfSubdomains.value() : 0;
193 xMaxCoarseGrid += (hasNeighbors[communication_directions::PX] || globalPeriodicity[Axis::x]) ? overlapOfSubdomains.value() : 0;
194 yMaxCoarseGrid += (hasNeighbors[communication_directions::PY] || globalPeriodicity[Axis::y]) ? overlapOfSubdomains.value() : 0;
195 zMaxCoarseGrid += (hasNeighbors[communication_directions::PZ] || globalPeriodicity[Axis::z]) ? overlapOfSubdomains.value() : 0;
196
197 // add coarse grid
199 zMaxCoarseGrid, gridDimensionsDomain->delta);
200
201 // add fine grids for grid refinement
202 this->addFineGridsToGridBuilder();
203
204 // set subdomain boxes
205 // subdomain boxes are only needed on multiple gpus
207 gridBuilder->setSubDomainBox(std::make_shared<BoundingBox>(xValues[index.at(Axis::x)], xValues[index.at(Axis::x) + 1],
208 yValues[index.at(Axis::y)], yValues[index.at(Axis::y) + 1],
209 zValues[index.at(Axis::z)], zValues[index.at(Axis::z) + 1]));
210 }
211
213}
214
215void MultipleGridBuilderFacade::setUpCommunicationNeighbors()
216{
217 // Communication is only needed on multiple gpus
218 if (numberOfSubdomainsTotal == 1) return;
219
220 if (hasNeighbors.empty())
221 throw std::runtime_error("checkForNeighbors() has to be called befor calling setUpCommunicationNeighbors()");
222
223 for (const auto &[direction, hasNeighbor] : hasNeighbors) {
224 if (hasNeighbor) {
225 gridBuilder->findCommunicationIndices(direction);
226
227 switch (direction) {
229 gridBuilder->setCommunicationProcess(
230 direction, getIndex1D(index.at(Axis::x) - 1, index.at(Axis::y), index.at(Axis::z)));
231 break;
233 gridBuilder->setCommunicationProcess(
234 direction, getIndex1D(index.at(Axis::x), index.at(Axis::y) - 1, index.at(Axis::z)));
235 break;
237 gridBuilder->setCommunicationProcess(
238 direction, getIndex1D(index.at(Axis::x), index.at(Axis::y), index.at(Axis::z) - 1));
239 break;
241 gridBuilder->setCommunicationProcess(
242 direction, getIndex1D(index.at(Axis::x) + 1, index.at(Axis::y), index.at(Axis::z)));
243 break;
245 gridBuilder->setCommunicationProcess(
246 direction, getIndex1D(index.at(Axis::x), index.at(Axis::y) + 1, index.at(Axis::z)));
247 break;
249 gridBuilder->setCommunicationProcess(
250 direction, getIndex1D(index.at(Axis::x), index.at(Axis::y), index.at(Axis::z) + 1));
251 break;
252 }
253 }
254 }
255}
256
257void MultipleGridBuilderFacade::checkForNeighbors()
258{
259 hasNeighbors[communication_directions::MX] = (index.at(Axis::x) > 0);
260 hasNeighbors[communication_directions::MY] = (index.at(Axis::y) > 0);
261 hasNeighbors[communication_directions::MZ] = (index.at(Axis::z) > 0);
262 hasNeighbors[communication_directions::PX] = (index.at(Axis::x) < numberOfSubdomains[Axis::x] - 1);
263 hasNeighbors[communication_directions::PY] = (index.at(Axis::y) < numberOfSubdomains[Axis::y] - 1);
264 hasNeighbors[communication_directions::PZ] = (index.at(Axis::z) < numberOfSubdomains[Axis::z] - 1);
265}
266
267void MultipleGridBuilderFacade::addFineGridsToGridBuilder()
268{
269 for (auto const& grid : fineGrids) {
270 gridBuilder->addGrid(grid.first, grid.second);
271 }
272}
273
274void MultipleGridBuilderFacade::addGeometriesToGridBuilder()
275{
276 for (auto const& geometry : geometries) {
277 gridBuilder->addGeometry(geometry);
278 }
279}
280
282{
283 this->overlapOfSubdomains = overlap;
284}
285
287{
288 if (this->createGridsHasBeenCalled)
289 throw std::runtime_error("MultipleGridBuilderFacade::addSplit() should be called before createGrids().");
290
291 switch (direction) {
292 case x:
293 this->xSplits.push_back(coordinate);
294 break;
295 case y:
296 this->ySplits.push_back(coordinate);
297 break;
298 case z:
299 this->zSplits.push_back(coordinate);
300 break;
301 }
302}
303
305{
306 if (this->createGridsHasBeenCalled)
307 throw std::runtime_error("MultipleGridBuilderFacade::addFineGrid() should be called before createGrids().");
308
309 this->fineGrids.emplace_back(gridShape, levelFine);
310}
311
313{
314 if (this->createGridsHasBeenCalled)
315 throw std::runtime_error("MultipleGridBuilderFacade::addGeometry() should be called before createGrids().");
316
317 this->geometries.emplace_back(gridShape);
318}
319
321 uint numberOfLayersBetweenLevels) const
322{
323 gridBuilder->setNumberOfLayers(numberOfLayersFine, numberOfLayersBetweenLevels);
324}
325
330
335
340
342{
343 const uint xPos = getX3D(index1D);
344 const uint yPos = getY3D(index1D);
345 const uint zPos = getZ3D(index1D);
346 return { xPos, yPos, zPos };
347}
348
353
354uint MultipleGridBuilderFacade::getIndex1D(const std::array<uint, 3>& index3D) const
355{
357}
358
360{
361 setBoundaryCondition(sideType, [&]() { gridBuilder->setSlipBoundaryCondition(sideType, normalX, normalY, normalZ); });
362}
363
365 uint samplingOffset, real vonKarmanConstant, real roughnessLength, real deltaX, std::shared_ptr<GbSpatialData3D<real>> roughnessMap) const
366{
367 setBoundaryCondition(sideType, [&]() {
368 gridBuilder->setStressBoundaryCondition(sideType, normalX, normalY, normalZ, samplingOffset, vonKarmanConstant, roughnessLength, deltaX, std::move(roughnessMap));
369 });
370}
372 uint samplingOffset, real vonKarmanConstant, real roughnessLength,
373 real roughnessLengthTemperature, real surfaceHeatFlux, real surfaceTemperature, real heatingRate,
374 real deltaX, real deltaT, std::shared_ptr<GbSpatialData3D<real>> roughnessMap) const
375{
376 setBoundaryCondition(sideType, [&]() {
377 gridBuilder->setSurfaceLayerBoundaryCondition(sideType, normalX, normalY, normalZ, samplingOffset, vonKarmanConstant, roughnessLength,
378 roughnessLengthTemperature, surfaceHeatFlux, surfaceTemperature, heatingRate, deltaX, deltaT, roughnessMap);
379 });
380}
382 bool cycleFiles, real velocityX, real velocityY,
383 real velocityZ, real shiftY, real shiftZ,
384 std::vector<uint> fileLevelToGridLevelMap) const
385{
386 setBoundaryCondition(sideType, [&]() {
387 gridBuilder->setPrecursorBoundaryCondition(sideType, fileCollection, cycleFiles, velocityX, velocityY,
388 velocityZ, shiftY, shiftZ, fileLevelToGridLevelMap);
389 });
390}
391
392void MultipleGridBuilderFacade::setVelocityBoundaryCondition(SideType sideType, real vx, real vy, real vz, std::optional<std::function<void(real x,real y,real z, real& vx, real& vy, real& vz)>> velocityProfile) const
393{
394 setBoundaryCondition(sideType, [&]() { gridBuilder->setVelocityBoundaryCondition(sideType, vx, vy, vz, velocityProfile); });
395}
396
398{
399 setBoundaryCondition(sideType, [&]() { gridBuilder->setPressureBoundaryCondition(sideType, rho); });
400}
401
403{
404 setBoundaryCondition(sideType, [&]() { gridBuilder->setNoSlipBoundaryCondition(sideType); });
405}
406
408 setBoundaryCondition(sideType, [&]{gridBuilder->setADNoFluxBoundaryCondition(sideType);});
409}
410
412 setBoundaryCondition(sideType, [&]{gridBuilder->setADFluxBoundaryCondition(sideType, normalX, normalY, normalZ, gradient, deltaX);});
413}
414
416 setBoundaryCondition(sideType, [&]{gridBuilder->setADDirichletBoundaryCondition(sideType, value, vx, vy, vz); });
417}
418
420 setBoundaryCondition(sideType, [&]{gridBuilder->setADNeumannBoundaryCondition(sideType, gradient, vx, vy, vz, dx); });
421}
422
424 setBoundaryCondition(sideType, [&]{gridBuilder->setADOutflowBoundaryCondition(sideType); });
425}
426
427bool MultipleGridBuilderFacade::isFinalSubdomainInDirection(CommunicationDirection direction) const
428{
429 return !hasNeighbors.at(direction);
430}
431
432uint MultipleGridBuilderFacade::getIndexOfFinalSubdomainInDirection(CommunicationDirection direction) const
433{
434 std::array<uint, 3> resultIndex3D = index;
435 const Axis axis = communicationDirectionToAxes.at(direction);
436
437 if (isNegative(direction)) {
438 resultIndex3D[axis] = 0; // first subdomain index in direction
440 }
441 if (isPositive(direction)) {
442 resultIndex3D[axis] = numberOfSubdomains[axis] - 1; // last subdomain index in direction
444 }
445 return UINT_MAX;
446}
447
452
453void MultipleGridBuilderFacade::setPeriodicBoundaryCondition(const std::array<bool, 3>& periodicity)
454{
455 if(createGridsHasBeenCalled)
456 throw std::runtime_error("MultipleGridBuilderFacade::setPeriodicBoundaryCondition() should be called before createGrids().");
457 this->periodicity = periodicity;
458}
459
461{
462 if (createGridsHasBeenCalled)
463 throw std::runtime_error("Periodic shift has to be set before createGrids() is called");
464 shiftOnXInY = shift;
465}
467{
468 if (createGridsHasBeenCalled)
469 throw std::runtime_error("Periodic shift has to be set before createGrids() is called");
470 shiftOnXInZ = shift;
471}
473{
474 if (createGridsHasBeenCalled)
475 throw std::runtime_error("Periodic shift has to be set before createGrids() is called");
476 shiftOnYInX = shift;
477}
479{
480 if (createGridsHasBeenCalled)
481 throw std::runtime_error("Periodic shift has to be set before createGrids() is called");
482 shiftOnYInZ = shift;
483}
485{
486 if (createGridsHasBeenCalled)
487 throw std::runtime_error("Periodic shift has to be set before createGrids() is called");
488 shiftOnZInX = shift;
489}
491{
492 if (createGridsHasBeenCalled)
493 throw std::runtime_error("Periodic shift has to be set before createGrids() is called");
494 shiftOnZInY = shift;
495}
496
497void MultipleGridBuilderFacade::setLocalPeriodicity(bool periodicX, bool periodicY, bool periodicZ)
498{
499 gridBuilder->setPeriodicBoundaryCondition(periodicX, periodicY, periodicZ);
500 if(shiftOnXInY != c0o1)
501 gridBuilder->setPeriodicShiftOnXBoundaryInYDirection(shiftOnXInY);
502 if(shiftOnXInZ != c0o1)
503 gridBuilder->setPeriodicShiftOnXBoundaryInZDirection(shiftOnXInZ);
504 if(shiftOnYInX != c0o1)
505 gridBuilder->setPeriodicShiftOnYBoundaryInXDirection(shiftOnYInX);
506 if(shiftOnYInZ != c0o1)
507 gridBuilder->setPeriodicShiftOnYBoundaryInZDirection(shiftOnYInZ);
508 if(shiftOnZInX != c0o1)
509 gridBuilder->setPeriodicShiftOnZBoundaryInXDirection(shiftOnZInX);
510 if(shiftOnZInY != c0o1)
511 gridBuilder->setPeriodicShiftOnZBoundaryInYDirection(shiftOnZInY);
512}
513
514void MultipleGridBuilderFacade::setGlobalPeriodicity()
515{
516 for (const auto coordDirection : axis::allAxes) {
517 if (!periodicity[coordDirection] || numberOfSubdomains[coordDirection] == 1)
518 continue;
519
520 // non-local periodicity --> set communication neighbors
523
524 if (isFinalSubdomainInDirection(negativeDirection)) {
525 // set final grid in positive direction as communication neighbor
526 gridBuilder->findCommunicationIndices(negativeDirection);
527 gridBuilder->setCommunicationProcess(negativeDirection, getIndexOfFinalSubdomainInDirection(positiveDirection));
528 } else if (isFinalSubdomainInDirection(positiveDirection)) {
529 // set final grid in negative direction as communication neighbor
530 gridBuilder->findCommunicationIndices(positiveDirection, true);
531 gridBuilder->setCommunicationProcess(positiveDirection, getIndexOfFinalSubdomainInDirection(negativeDirection));
532 }
533 }
534}
535
540
542 return gridBuilder->getSubDomainBox();
543}
544
545}
546
Simplifies the creation of the grids for a multi-gpu simulation.
uint getIndex1D(uint xIndex, uint yIndex, uint zIndex) const
void setNumberOfLayersForRefinement(uint numberOfLayersFine, uint numberOfLayersBetweenLevels) const
add number of layers for refinements
void addDomainSplit(real coordinate, Axis direction)
split the domain in the passed direction at the passed coordinate
void setADFluxBoundaryCondition(SideType sideType, real normalX, real normalY, real normalZ, real gradient, real deltaX)
void addFineGrid(std::shared_ptr< Object > gridShape, uint levelFine)
adds a fine grid
void setOverlapOfSubdomains(real overlap)
set the overlap of the subdomains
void setPressureBoundaryCondition(SideType sideType, real rho) const
void setADDirichletBoundaryCondition(SideType sideType, real value, real vx, real vy, real vz)
MultipleGridBuilderFacade(SPtr< MultipleGridBuilder > gridBuilder, SPtr< GridDimensions > gridDimensions, std::optional< real > overlapOfSubdomains=std::nullopt)
std::array< uint, 3 > convertToIndices3D(uint index1D) const
void setSlipBoundaryCondition(SideType sideType, real normalX, real normalY, real normalZ) const
void setSurfaceLayerBoundaryCondition(SideType sideType, real normalX, real normalY, real normalZ, uint samplingOffset, real vonKarmanConstant, real roughnessLength, real roughnessLengthTemperature, real surfaceHeatFlux, real surfaceTemperature, real heatingRate, real deltaX, real deltaT, std::shared_ptr< GbSpatialData3D< real > > roughnessMap=nullptr) const
void setStressBoundaryCondition(SideType sideType, real normalX, real normalY, real normalZ, uint samplingOffset, real vonKarmanConstant, real roughnessLength, real deltaX, std::shared_ptr< GbSpatialData3D< real > > roughnessMap=nullptr) const
SPtr< MultipleGridBuilder > getGridBuilder() const
void setPeriodicBoundaryCondition(bool periodic_X, bool periodic_Y, bool periodic_Z)
void setVelocityBoundaryCondition(SideType sideType, real vx, real vy, real vz, std::optional< std::function< void(real x, real y, real z, real &vx, real &vy, real &vz)> > velocityProfile=std::nullopt) const
void createGrids(uint generatePart)
generate the subdomain which is specified by generatePart
std::array< uint, 3 > numberOfSubdomains
total number of subdomains in each coordinate direction (computed)
void setPrecursorBoundaryCondition(SideType sideType, SPtr< FileCollection > fileCollection, bool cycleFiles=false, real velocityX=vf::basics::constant::c0o1, real velocityY=vf::basics::constant::c0o1, real velocityZ=vf::basics::constant::c0o1, real shiftY=vf::basics::constant::c0o1, real shiftZ=vf::basics::constant::c0o1, std::vector< uint > fileLevelToGridLevelMap={}) const
void setADNeumannBoundaryCondition(SideType sideType, real gradient, real vx, real vy, real vz, real dx)
void setNoSlipBoundaryCondition(SideType sideType) const
void addGeometry(SPtr< Object > gridShape)
adds a geometry to the fluid domain
std::shared_ptr< T > SPtr
float real
Definition DataTypes.h:42
unsigned int uint
Definition DataTypes.h:47
Axis
Definition Axis.h:41
@ z
Definition Axis.h:44
@ x
Definition Axis.h:42
@ y
Definition Axis.h:43
const real dx
Definition Axis.h:48
const std::array< Axis, 3 > allAxes
Definition Axis.h:56
bool isPositive(CommunicationDirection direction)
bool isNegative(CommunicationDirection direction)
CommunicationDirection getNegativeDirectionAlongAxis(Axis axis)
const std::map< CommunicationDirection, Axis > communicationDirectionToAxes
CommunicationDirection getPositiveDirectionAlongAxis(Axis axis)
SideType
Definition Side.h:63