VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
MockGridGenerator Class Reference
Inheritance diagram for MockGridGenerator:
vf::gpu::GridGenerator vf::gpu::GridProvider

Public Member Functions

 MockGridGenerator (std::shared_ptr< GridBuilder > builder, std::shared_ptr< Parameter > para, std::shared_ptr< CudaMemoryManager > cudaMemoryManager, vf::parallel::Communicator &communicator)
 
void initalGridInformations () override
 
void allocArrays_CoordNeighborGeo () override
 allocates and initialized the data structures for Coordinates and node types
 
void setBoundingBox () override
 
void allocArrays_OffsetScale () override
 
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
 
- Public Member Functions inherited from vf::gpu::GridGenerator
 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_taggedFluidNodes () override
 
void tagFluidNodeIndices (const std::vector< uint > &taggedFluidNodeIndices, CollisionTemplate tag, uint level) override
 
void sortFluidNodeTags () override
 
virtual void setDimensions () override
 
virtual void initPeriodicNeigh (std::vector< std::vector< std::vector< unsigned int > > > periodV, std::vector< std::vector< unsigned int > > periodIndex, std::string way) 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
 

Additional Inherited Members

- Static Public Member Functions inherited from vf::gpu::GridProvider
static std::shared_ptr< GridProvider > makeGridGenerator (std::shared_ptr< GridBuilder > builder, std::shared_ptr< Parameter > para, std::shared_ptr< CudaMemoryManager > cudaMemoryManager, vf::parallel::Communicator &communicator)
 
static std::shared_ptr< GridProvider > makeGridReader (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< Parameter > para
 
std::shared_ptr< CudaMemoryManager > cudaMemoryManager
 

Detailed Description

Definition at line 215 of file ParameterTest.cpp.

Constructor & Destructor Documentation

◆ MockGridGenerator()

MockGridGenerator::MockGridGenerator ( std::shared_ptr< GridBuilder >  builder,
std::shared_ptr< Parameter >  para,
std::shared_ptr< CudaMemoryManager >  cudaMemoryManager,
vf::parallel::Communicator &  communicator 
)
inline

Definition at line 219 of file ParameterTest.cpp.

Member Function Documentation

◆ allocArrays_BoundaryQs()

void MockGridGenerator::allocArrays_BoundaryQs ( )
inlineoverridevirtual

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

Reimplemented from vf::gpu::GridGenerator.

Definition at line 235 of file ParameterTest.cpp.

◆ allocArrays_BoundaryValues()

void MockGridGenerator::allocArrays_BoundaryValues ( const BoundaryConditionFactory *  bcFactory)
inlineoverridevirtual

allocates and initialized the values at the boundary conditions

Reimplemented from vf::gpu::GridGenerator.

Definition at line 234 of file ParameterTest.cpp.

◆ allocArrays_CoordNeighborGeo()

void MockGridGenerator::allocArrays_CoordNeighborGeo ( )
inlineoverridevirtual

allocates and initialized the data structures for Coordinates and node types

Reimplemented from vf::gpu::GridGenerator.

Definition at line 231 of file ParameterTest.cpp.

◆ allocArrays_OffsetScale()

void MockGridGenerator::allocArrays_OffsetScale ( )
inlineoverridevirtual

Reimplemented from vf::gpu::GridGenerator.

Definition at line 233 of file ParameterTest.cpp.

◆ initalGridInformations()

void MockGridGenerator::initalGridInformations ( )
inlineoverridevirtual

Reimplemented from vf::gpu::GridGenerator.

Definition at line 225 of file ParameterTest.cpp.

◆ setBoundingBox()

void MockGridGenerator::setBoundingBox ( )
inlineoverridevirtual

Reimplemented from vf::gpu::GridGenerator.

Definition at line 232 of file ParameterTest.cpp.


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