VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
KernelUtilities.h File Reference
#include "Calculation/Calculation.h"
#include <array>
#include <cassert>
#include <optional>
#include <cuda.h>
#include <cuda_runtime.h>
#include <lbm/constants/D3Q27.h>
#include <basics/constants/NumericConstants.h>

Go to the source code of this file.

Classes

struct  vf::gpu::ListIndices
 

Namespaces

namespace  vf
 
namespace  vf::gpu
 

Functions

real vf::gpu::getForceFactor (size_t level)
 
constexpr void vf::gpu::getPointersToDistributions (Distributions27 &dist, real *distributionArray, const unsigned long long numberOfLBnodes, const bool isEvenTimestep)
 
constexpr DistributionReferences27 vf::gpu::getDistributionReferences27 (real *distributions, const unsigned long long numberOfLBnodes, const bool isEvenTimestep)
 
constexpr void vf::gpu::getPointersToSubgridDistances (SubgridDistances27 &subgridD, real *subgridDistances, const unsigned int numberOfSubgridIndices)
 
constexpr real vf::gpu::getEquilibriumForBC (const real &drho, const real &velocity, const real &cu_sq, const real weight)
 
constexpr real vf::gpu::getInterpolatedDistributionForVeloBC (const real &q, const real &f, const real &fInverse, const real &feq, const real &omega, const real &velocity, const real weight)
 
constexpr real vf::gpu::getBounceBackDistributionForVeloBC (const real &f, const real &velocity, const real weight)
 
constexpr real vf::gpu::getInterpolatedDistributionForNoSlipBC (const real &q, const real &f, const real &fInverse, const real &feq, const real &omega)
 
constexpr real vf::gpu::getInterpolatedDistributionForNoSlipWithPressureBC (const real &q, const real &f, const real &fInverse, const real &feq, const real &omega, const real &drho, const real weight)
 
constexpr real vf::gpu::getInterpolatedDistributionForVeloWithPressureBC (const real &q, const real &f, const real &fInverse, const real &feq, const real &omega, const real &drho, const real &velocity, const real weight)
 
constexpr bool vf::gpu::isValidFluidNode (uint nodeType)
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d000 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dP00 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dM00 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d0P0 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d0M0 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d00P > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d00M > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dPP0 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dMM0 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dPM0 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dMP0 > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dP0P > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dM0M > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dP0M > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dM0P > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d0PP > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d0MM > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d0PM > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::d0MP > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dPPP > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dMPP > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dPMP > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dMMP > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dPPM > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dMPM > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dPMM > () const
 
template<>
constexpr uint vf::gpu::ListIndices::getIndex< vf::lbm::dir::dMMM > () const
 
template<size_t direction>
constexpr void vf::gpu::writeInInverseDirection (const real population, const ListIndices &listIndices, const Distributions27 &populationReferences)
 
template<size_t direction>
constexpr real vf::gpu::readFromInverseDirection (const ListIndices &listIndices, const Distributions27 &populationReferences)
 
template<size_t direction>
constexpr void vf::gpu::writeInSameDirection (const real population, const ListIndices &listIndices, const Distributions27 &populationReferences)
 
template<size_t direction>
constexpr real vf::gpu::readFromSameDirection (const ListIndices &listIndices, const Distributions27 &populationReferences)
 
constexpr void vf::gpu::getPreCollisionDistribution (real *local, const Distributions27 &global, const ListIndices &indices)
 
constexpr void vf::gpu::getPostCollisionDistribution (real *local, const Distributions27 &global, const ListIndices &indices)
 
constexpr void vf::gpu::setPreCollisionDistribution (Distributions27 &global, const ListIndices &indices, const real *local)
 
constexpr void vf::gpu::setPostCollisionDistribution (Distributions27 &global, const ListIndices &indices, const real *local)