VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
vf::gpu::GridGenerator Class Reference

mapping the grid of grid generator to data structure for simulation More...

#include <GridGenerator.h>

Inheritance diagram for vf::gpu::GridGenerator:
vf::gpu::GridProvider MockGridGenerator

Public Member Functions

 GridGenerator (std::shared_ptr< GridBuilder > builder, std::shared_ptr< Parameter > para, std::shared_ptr< CudaMemoryManager > cudaMemoryManager, vf::parallel::Communicator &communicator)
 
 ~GridGenerator () override
 
void setIndexRearrangementForStreams (std::unique_ptr< IndexRearrangementForStreams > &&indexRearrangement)
 overwrites the default IndexRearrangementForStreams
 
void allocArrays_CoordNeighborGeo () override
 allocates and initialized the data structures for Coordinates and node types
 
void allocArrays_BoundaryValues (const BoundaryConditionFactory *bcFactory) override
 allocates and initialized the values at the boundary conditions
 
void allocArrays_BoundaryQs () override
 allocates and initialized the sub-grid distances at the boundary conditions
 
void allocArrays_OffsetScale () override
 
void allocArrays_taggedFluidNodes () override
 
void tagFluidNodeIndices (const std::vector< uint > &taggedFluidNodeIndices, CollisionTemplate tag, uint level) override
 
void sortFluidNodeTags () override
 
virtual void setDimensions () override
 
virtual void setBoundingBox () override
 
virtual void initPeriodicNeigh (std::vector< std::vector< std::vector< unsigned int > > > periodV, std::vector< std::vector< unsigned int > > periodIndex, std::string way) override
 
void initalGridInformations () override
 
- Public Member Functions inherited from vf::gpu::GridProvider
virtual void allocAndCopyForcing ()
 
virtual void allocAndCopyQuadricLimiters ()
 
virtual void freeMemoryOnHost ()
 
virtual void cudaCopyDataToHost (int level)
 
virtual ~GridProvider ()=default
 

Friends

class GridGeneratorTests_initalValuesDomainDecompostion
 

Additional Inherited Members

- Static Public Member Functions inherited from vf::gpu::GridProvider
static std::shared_ptr< GridProvidermakeGridGenerator (std::shared_ptr< GridBuilder > builder, std::shared_ptr< Parameter > para, std::shared_ptr< CudaMemoryManager > cudaMemoryManager, vf::parallel::Communicator &communicator)
 
static std::shared_ptr< GridProvidermakeGridReader (FILEFORMAT format, std::shared_ptr< Parameter > para, std::shared_ptr< CudaMemoryManager > cudaMemoryManager)
 
- Protected Member Functions inherited from vf::gpu::GridProvider
void setNumberOfNodes (uint numberOfNodes, int level) const
 
void setNumberOfTaggedFluidNodes (uint numberOfNodes, CollisionTemplate tag, int level) const
 
virtual void setInitialNodeValues (uint numberOfNodes, int level) const
 
void setInitialNodeValuesAD (uint numberOfNodes, int level) const
 
void setPressSizePerLevel (int level, int sizePerLevel) const
 
void setVelocitySizePerLevel (int level, int sizePerLevel) const
 
void setOutflowSizePerLevel (int level, int sizePerLevel) const
 
- Protected Attributes inherited from vf::gpu::GridProvider
std::shared_ptr< Parameterpara
 
std::shared_ptr< CudaMemoryManagercudaMemoryManager
 

Detailed Description

mapping the grid of grid generator to data structure for simulation

of GridProvider

Definition at line 60 of file GridGenerator.h.

Constructor & Destructor Documentation

◆ GridGenerator()

vf::gpu::GridGenerator::GridGenerator ( std::shared_ptr< GridBuilder builder,
std::shared_ptr< Parameter para,
std::shared_ptr< CudaMemoryManager cudaMemoryManager,
vf::parallel::Communicator communicator 
)

Definition at line 64 of file GridGenerator.cpp.

◆ ~GridGenerator()

vf::gpu::GridGenerator::~GridGenerator ( )
overridedefault

Member Function Documentation

◆ allocArrays_BoundaryQs()

void vf::gpu::GridGenerator::allocArrays_BoundaryQs ( )
overridevirtual

allocates and initialized the sub-grid distances at the boundary conditions

Implements vf::gpu::GridProvider.

Reimplemented in MockGridGenerator.

Definition at line 829 of file GridGenerator.cpp.

◆ allocArrays_BoundaryValues()

void vf::gpu::GridGenerator::allocArrays_BoundaryValues ( const BoundaryConditionFactory bcFactory)
overridevirtual

allocates and initialized the values at the boundary conditions

Implements vf::gpu::GridProvider.

Reimplemented in MockGridGenerator.

Definition at line 366 of file GridGenerator.cpp.

◆ allocArrays_CoordNeighborGeo()

void vf::gpu::GridGenerator::allocArrays_CoordNeighborGeo ( )
overridevirtual

allocates and initialized the data structures for Coordinates and node types

Implements vf::gpu::GridProvider.

Reimplemented in MockGridGenerator.

Definition at line 102 of file GridGenerator.cpp.

◆ allocArrays_OffsetScale()

void vf::gpu::GridGenerator::allocArrays_OffsetScale ( )
overridevirtual

Implements vf::gpu::GridProvider.

Reimplemented in MockGridGenerator.

Definition at line 983 of file GridGenerator.cpp.

◆ allocArrays_taggedFluidNodes()

void vf::gpu::GridGenerator::allocArrays_taggedFluidNodes ( )
overridevirtual

Implements vf::gpu::GridProvider.

Definition at line 177 of file GridGenerator.cpp.

◆ initalGridInformations()

void vf::gpu::GridGenerator::initalGridInformations ( )
overridevirtual

Implements vf::gpu::GridProvider.

Reimplemented in MockGridGenerator.

Definition at line 82 of file GridGenerator.cpp.

◆ initPeriodicNeigh()

void vf::gpu::GridGenerator::initPeriodicNeigh ( std::vector< std::vector< std::vector< unsigned int > > >  periodV,
std::vector< std::vector< unsigned int > >  periodIndex,
std::string  way 
)
overridevirtual

Implements vf::gpu::GridProvider.

Definition at line 1066 of file GridGenerator.cpp.

◆ setBoundingBox()

void vf::gpu::GridGenerator::setBoundingBox ( )
overridevirtual

Implements vf::gpu::GridProvider.

Reimplemented in MockGridGenerator.

Definition at line 1042 of file GridGenerator.cpp.

◆ setDimensions()

void vf::gpu::GridGenerator::setDimensions ( )
overridevirtual

Implements vf::gpu::GridProvider.

Definition at line 1029 of file GridGenerator.cpp.

◆ setIndexRearrangementForStreams()

void vf::gpu::GridGenerator::setIndexRearrangementForStreams ( std::unique_ptr< IndexRearrangementForStreams > &&  indexRearrangement)

overwrites the default IndexRearrangementForStreams

Definition at line 77 of file GridGenerator.cpp.

◆ sortFluidNodeTags()

void vf::gpu::GridGenerator::sortFluidNodeTags ( )
overridevirtual

Implements vf::gpu::GridProvider.

Definition at line 260 of file GridGenerator.cpp.

◆ tagFluidNodeIndices()

void vf::gpu::GridGenerator::tagFluidNodeIndices ( const std::vector< uint > &  taggedFluidNodeIndices,
CollisionTemplate  tag,
uint  level 
)
overridevirtual

Implements vf::gpu::GridProvider.

Definition at line 237 of file GridGenerator.cpp.

Friends And Related Symbol Documentation

◆ GridGeneratorTests_initalValuesDomainDecompostion


The documentation for this class was generated from the following files: