34#include <spdlog/fmt/fmt.h>
43 printf(
"Method not implemented for this Kernel \n");
62std::string KernelImp::composeWarningForMaximumKernelParameterHardLimit(
const std::string&
kernelParameterName,
66 " but should be smaller than " + realToString(
maximumHard) +
" (hard limit).";
69std::string KernelImp::composeWarningForMaximumKernelParameterRecommendation(
const std::string&
kernelParameterName,
73 ", which is larger than the recommended value of " + realToString(
maximumRecommended) +
".";
76std::string KernelImp::composeRecommendationForMaximumKernelParameter(
const std::string&
kernelParameterName,
82std::string KernelImp::composeInfoOnHardLimitForMaximumKernelParameter(
const std::string&
kernelParameterName,
91 std::string
message =
"At level " + std::to_string(maxLevel) +
": ";
94 VF_LOG_INFO(
"There is no viscosity maximum defined for this kernel.");
151 : para(std::
move(para)), level(level), viscosityMaximumRecommended(viscosityMaximumRecommended),
152 viscosityMaximumHard(viscosityMaximumHard)
157 : para(std::
move(para)), level(level), viscosityMaximumRecommended(viscosityMaximumRecommended)
#define VF_LOG_CRITICAL(...)
#define VF_LOG_WARNING(...)
std::vector< PreProcessorType > myPreProcessorTypes
std::vector< PreProcessorType > getPreProcessorTypes() override
const real velocityMaximumRecommended
const real velocityMaximumHard
const std::optional< real > viscosityMaximumHard
bool getKernelUsesFluidNodeIndices() const
void runOnIndices(const unsigned int *indices, unsigned int sizeIndices, CollisionTemplate collisionTemplate, CudaStreamIndex streamIndex=CudaStreamIndex::Legacy) override
bool kernelUsesFluidNodeIndices
void checkKernelParameters(uint maxLevel, real velocityLB, real viscosityLBOnFinestLevel) const override
check if velocityLB and viscosityLB are not too high, as this can lead to inaccurate results or a cra...
const std::optional< real > viscosityMaximumRecommended
std::shared_ptr< T > SPtr
CollisionTemplate
An enumeration for selecting a template of the collision kernel (CumulantK17)