Initialization.cpp File Reference

Detailed Description

#include "BlockNeighborhoodSection.h"
#include "Initialization.h"
#include "SetupBlockForest.h"
#include "loadbalancing/Cartesian.h"
#include "loadbalancing/StaticCurve.h"
#include "core/Abort.h"
#include "core/cell/CellInterval.h"
#include "core/math/IntegerFactorization.h"
#include "core/mpi/MPIManager.h"
#include "stencil/D3Q19.h"
#include <functional>
#include <memory>

Classes

class  walberla::blockforest::FixedRefinementLevelSelector
 

Namespaces

 walberla
 \file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de
 
 walberla::blockforest
 

Functions

shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGridFromConfig (const shared_ptr< Config > &config, CellInterval *requestedDomainSize, const bool keepGlobalBlockInformation)
 Parses config block called 'DomainSetup' and creates a StructuredBlockForest. More...
 
shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGridFromConfig (const Config::BlockHandle &configBlock, CellInterval *requestedDomainSize, const bool keepGlobalBlockInformation)
 Parses config block and creates a StructuredBlockForest. More...
 
shared_ptr< BlockForest > walberla::blockforest::createBlockForest (const AABB &domainAABB, const uint_t numberOfXBlocks, const uint_t numberOfYBlocks, const uint_t numberOfZBlocks, const uint_t numberOfXProcesses, const uint_t numberOfYProcesses, const uint_t numberOfZProcesses, const bool xPeriodic, const bool yPeriodic, const bool zPeriodic, const bool keepGlobalBlockInformation)
 Function for creating a block forest that represents a uniform block grid. More...
 
std::unique_ptr< SetupBlockForest > walberla::blockforest::createSetupBlockForest (const math::AABB &simulationDomain, Vector3< uint_t > blocks, const Vector3< bool > &isPeriodic, const uint_t numberOfProcesses, const uint_t initialRefinementLevel)
 
shared_ptr< BlockForest > walberla::blockforest::createBlockForest (const math::AABB &simulationDomain, const Vector3< uint_t > &blocks, const Vector3< bool > &isPeriodic, const uint_t numberOfProcesses, const uint_t initialRefinementLevel, const bool keepGlobalBlockInformation)
 
shared_ptr< BlockForest > walberla::blockforest::createBlockForest (const math::AABB &simulationDomain, const Vector3< uint_t > &blocks, const Vector3< bool > &isPeriodic, const bool setupRun, const std::string &sbffile, const uint_t numberOfProcesses, const uint_t initialRefinementLevel, const bool keepGlobalBlockInformation)
 
shared_ptr< BlockForest > walberla::blockforest::createBlockForestFromConfig (const Config::BlockHandle &mainConf, const bool keepGlobalBlockInformation)
 
shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGrid (const AABB &domainAABB, const uint_t numberOfXBlocks, const uint_t numberOfYBlocks, const uint_t numberOfZBlocks, const uint_t numberOfXCellsPerBlock, const uint_t numberOfYCellsPerBlock, const uint_t numberOfZCellsPerBlock, const uint_t numberOfXProcesses, const uint_t numberOfYProcesses, const uint_t numberOfZProcesses, const bool xPeriodic, const bool yPeriodic, const bool zPeriodic, const bool keepGlobalBlockInformation)
 Function for creating a structured block forest that represents a uniform block grid. More...
 
shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGrid (const uint_t numberOfXBlocks, const uint_t numberOfYBlocks, const uint_t numberOfZBlocks, const uint_t numberOfXCellsPerBlock, const uint_t numberOfYCellsPerBlock, const uint_t numberOfZCellsPerBlock, const real_t dx, const uint_t numberOfXProcesses, const uint_t numberOfYProcesses, const uint_t numberOfZProcesses, const bool xPeriodic, const bool yPeriodic, const bool zPeriodic, const bool keepGlobalBlockInformation)
 Function for creating a structured block forest that represents a uniform block grid. More...
 
shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGrid (const AABB &domainAABB, const uint_t numberOfXBlocks, const uint_t numberOfYBlocks, const uint_t numberOfZBlocks, const uint_t numberOfXCellsPerBlock, const uint_t numberOfYCellsPerBlock, const uint_t numberOfZCellsPerBlock, const bool oneBlockPerProcess, const bool xPeriodic, const bool yPeriodic, const bool zPeriodic, const bool keepGlobalBlockInformation)
 Function for creating a structured block forest that represents a uniform block grid. More...
 
shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGrid (const uint_t numberOfXBlocks, const uint_t numberOfYBlocks, const uint_t numberOfZBlocks, const uint_t numberOfXCellsPerBlock, const uint_t numberOfYCellsPerBlock, const uint_t numberOfZCellsPerBlock, const real_t dx, const bool oneBlockPerProcess, const bool xPeriodic, const bool yPeriodic, const bool zPeriodic, const bool keepGlobalBlockInformation)
 Function for creating a structured block forest that represents a uniform block grid. More...
 
shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGrid (const AABB &domainAABB, const uint_t numberOfXBlocks, const uint_t numberOfYBlocks, const uint_t numberOfZBlocks, const uint_t numberOfXCellsPerBlock, const uint_t numberOfYCellsPerBlock, const uint_t numberOfZCellsPerBlock, const uint_t maxBlocksPerProcess, const bool includeMetis, const bool forceMetis, const bool xPeriodic, const bool yPeriodic, const bool zPeriodic, const bool keepGlobalBlockInformation)
 Function for creating a structured block forest that represents a uniform block grid. More...
 
shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGrid (const uint_t numberOfXBlocks, const uint_t numberOfYBlocks, const uint_t numberOfZBlocks, const uint_t numberOfXCellsPerBlock, const uint_t numberOfYCellsPerBlock, const uint_t numberOfZCellsPerBlock, const real_t dx, const uint_t maxBlocksPerProcess, const bool includeMetis, const bool forceMetis, const bool xPeriodic, const bool yPeriodic, const bool zPeriodic, const bool keepGlobalBlockInformation)
 Function for creating a structured block forest that represents a uniform block grid. More...
 
shared_ptr< StructuredBlockForest > walberla::blockforest::createUniformBlockGrid (const std::string &filename, const uint_t numberOfXCellsPerBlock, const uint_t numberOfYCellsPerBlock, const uint_t numberOfZCellsPerBlock, const bool keepGlobalBlockInformation)
 Function for creating a structured block forest that represents a uniform block grid. More...
 
void walberla::blockforest::calculateCellDistribution (const Vector3< uint_t > &cells, uint_t nrOfBlocks, Vector3< uint_t > &blocksOut, Vector3< uint_t > &cellsPerBlock)
 Tries to distribute a given amount of total cells to a given amount of blocks. More...
 
void walberla::blockforest::uniformWorkloadAndMemoryAssignment (SetupBlockForest &forest)
 
memory_t walberla::blockforest::cellWeightedCommunicationCost (const SetupBlock *const a, const SetupBlock *const b, uint_t xCellsPerBlock, uint_t yCellsPerBlock, uint_t zCellsPerBlock)
 
memory_t walberla::blockforest::uniformFacesDominantCommunication (const SetupBlock *const a, const SetupBlock *const b)