BG_Flood
0.8
Documentation (Work-in-progress)
|
#include "Friction.h"
Functions | |
template<class T > | |
__global__ void | bottomfrictionGPU (Param XParam, BlockP< T > XBlock, T dt, T *cf, EvolvingP< T > XEvolv) |
template __global__ void | bottomfrictionGPU< float > (Param XParam, BlockP< float > XBlock, float dt, float *cf, EvolvingP< float > XEvolv) |
template __global__ void | bottomfrictionGPU< double > (Param XParam, BlockP< double > XBlock, double dt, double *cf, EvolvingP< double > XEvolv) |
template<class T > | |
__host__ void | bottomfrictionCPU (Param XParam, BlockP< T > XBlock, T dt, T *cf, EvolvingP< T > XEvolv) |
template __host__ void | bottomfrictionCPU< float > (Param XParam, BlockP< float > XBlock, float dt, float *cf, EvolvingP< float > XEvolv) |
template __host__ void | bottomfrictionCPU< double > (Param XParam, BlockP< double > XBlock, double dt, double *cf, EvolvingP< double > XEvolv) |
template<class T > | |
__host__ void | XiafrictionCPU (Param XParam, BlockP< T > XBlock, T dt, T *cf, EvolvingP< T > XEvolv, EvolvingP< T > XEvolv_o) |
template __host__ void | XiafrictionCPU< float > (Param XParam, BlockP< float > XBlock, float dt, float *cf, EvolvingP< float > XEvolv, EvolvingP< float > XEvolv_o) |
template __host__ void | XiafrictionCPU< double > (Param XParam, BlockP< double > XBlock, double dt, double *cf, EvolvingP< double > XEvolv, EvolvingP< double > XEvolv_o) |
template<class T > | |
__global__ void | XiafrictionGPU (Param XParam, BlockP< T > XBlock, T dt, T *cf, EvolvingP< T > XEvolv, EvolvingP< T > XEvolv_o) |
template __global__ void | XiafrictionGPU< float > (Param XParam, BlockP< float > XBlock, float dt, float *cf, EvolvingP< float > XEvolv, EvolvingP< float > XEvolv_o) |
template __global__ void | XiafrictionGPU< double > (Param XParam, BlockP< double > XBlock, double dt, double *cf, EvolvingP< double > XEvolv, EvolvingP< double > XEvolv_o) |
template<class T > | |
__host__ __device__ T | smartfriction (T hi, T zo) |
template<class T > | |
__host__ __device__ T | manningfriction (T g, T hi, T n) |
template<class T > | |
__global__ void | TheresholdVelGPU (Param XParam, BlockP< T > XBlock, EvolvingP< T > XEvolv) |
Function Used to prevent crazy velocity on the GPU. More... | |
template __global__ void | TheresholdVelGPU< float > (Param XParam, BlockP< float > XBlock, EvolvingP< float > XEvolv) |
template __global__ void | TheresholdVelGPU< double > (Param XParam, BlockP< double > XBlock, EvolvingP< double > XEvolv) |
template<class T > | |
__host__ void | TheresholdVelCPU (Param XParam, BlockP< T > XBlock, EvolvingP< T > XEvolv) |
Function Used to prevent crazy velocity on the CPU. More... | |
template __host__ void | TheresholdVelCPU< float > (Param XParam, BlockP< float > XBlock, EvolvingP< float > XEvolv) |
template __host__ void | TheresholdVelCPU< double > (Param XParam, BlockP< double > XBlock, EvolvingP< double > XEvolv) |
template<class T > | |
__host__ __device__ bool | ThresholdVelocity (T Threshold, T &u, T &v) |
Function Used to prevent crazy velocity. More... | |
__host__ void bottomfrictionCPU | ( | Param | XParam, |
BlockP< T > | XBlock, | ||
T | dt, | ||
T * | cf, | ||
EvolvingP< T > | XEvolv | ||
) |
template __host__ void bottomfrictionCPU< double > | ( | Param | XParam, |
BlockP< double > | XBlock, | ||
double | dt, | ||
double * | cf, | ||
EvolvingP< double > | XEvolv | ||
) |
template __host__ void bottomfrictionCPU< float > | ( | Param | XParam, |
BlockP< float > | XBlock, | ||
float | dt, | ||
float * | cf, | ||
EvolvingP< float > | XEvolv | ||
) |
__global__ void bottomfrictionGPU | ( | Param | XParam, |
BlockP< T > | XBlock, | ||
T | dt, | ||
T * | cf, | ||
EvolvingP< T > | XEvolv | ||
) |
template __global__ void bottomfrictionGPU< double > | ( | Param | XParam, |
BlockP< double > | XBlock, | ||
double | dt, | ||
double * | cf, | ||
EvolvingP< double > | XEvolv | ||
) |
template __global__ void bottomfrictionGPU< float > | ( | Param | XParam, |
BlockP< float > | XBlock, | ||
float | dt, | ||
float * | cf, | ||
EvolvingP< float > | XEvolv | ||
) |
__host__ __device__ T manningfriction | ( | T | g, |
T | hi, | ||
T | n | ||
) |
__host__ __device__ T smartfriction | ( | T | hi, |
T | zo | ||
) |
void TheresholdVelCPU | ( | Param | XParam, |
BlockP< T > | XBlock, | ||
EvolvingP< T > | XEvolv | ||
) |
Function Used to prevent crazy velocity on the CPU.
The function wraps teh main functio for the CPU.
template __host__ void TheresholdVelCPU< double > | ( | Param | XParam, |
BlockP< double > | XBlock, | ||
EvolvingP< double > | XEvolv | ||
) |
template __host__ void TheresholdVelCPU< float > | ( | Param | XParam, |
BlockP< float > | XBlock, | ||
EvolvingP< float > | XEvolv | ||
) |
void TheresholdVelGPU | ( | Param | XParam, |
BlockP< T > | XBlock, | ||
EvolvingP< T > | XEvolv | ||
) |
Function Used to prevent crazy velocity on the GPU.
The function wraps the main function for the GPU.
template __global__ void TheresholdVelGPU< double > | ( | Param | XParam, |
BlockP< double > | XBlock, | ||
EvolvingP< double > | XEvolv | ||
) |
template __global__ void TheresholdVelGPU< float > | ( | Param | XParam, |
BlockP< float > | XBlock, | ||
EvolvingP< float > | XEvolv | ||
) |
bool ThresholdVelocity | ( | T | Threshold, |
T & | u, | ||
T & | v | ||
) |
Function Used to prevent crazy velocity.
The function scale velocities so it doesn't exceeds a given threshold. Default threshold is/should be 16.0m/s
__host__ void XiafrictionCPU | ( | Param | XParam, |
BlockP< T > | XBlock, | ||
T | dt, | ||
T * | cf, | ||
EvolvingP< T > | XEvolv, | ||
EvolvingP< T > | XEvolv_o | ||
) |
template __host__ void XiafrictionCPU< double > | ( | Param | XParam, |
BlockP< double > | XBlock, | ||
double | dt, | ||
double * | cf, | ||
EvolvingP< double > | XEvolv, | ||
EvolvingP< double > | XEvolv_o | ||
) |
template __host__ void XiafrictionCPU< float > | ( | Param | XParam, |
BlockP< float > | XBlock, | ||
float | dt, | ||
float * | cf, | ||
EvolvingP< float > | XEvolv, | ||
EvolvingP< float > | XEvolv_o | ||
) |
__global__ void XiafrictionGPU | ( | Param | XParam, |
BlockP< T > | XBlock, | ||
T | dt, | ||
T * | cf, | ||
EvolvingP< T > | XEvolv, | ||
EvolvingP< T > | XEvolv_o | ||
) |
template __global__ void XiafrictionGPU< double > | ( | Param | XParam, |
BlockP< double > | XBlock, | ||
double | dt, | ||
double * | cf, | ||
EvolvingP< double > | XEvolv, | ||
EvolvingP< double > | XEvolv_o | ||
) |
template __global__ void XiafrictionGPU< float > | ( | Param | XParam, |
BlockP< float > | XBlock, | ||
float | dt, | ||
float * | cf, | ||
EvolvingP< float > | XEvolv, | ||
EvolvingP< float > | XEvolv_o | ||
) |