cuIBM
A GPU-based Immersed Boundary Method code
Namespaces | Functions
generateE.cu File Reference

Implementation of the kernels to generate elements of the interpolation matrix. More...

#include "generateE.h"
Include dependency graph for generateE.cu:

Go to the source code of this file.

Namespaces

 kernels
 Contains all the custom-written CUDA kernels.
 

Functions

__device__ real dhRomaDeviceE (real x, real h)
 Discrete delta function defined by Roma et al. (1999). More...
 
__device__ real deltaDeviceE (real x, real y, real h)
 Two-dimension discrete delta function. More...
 
__global__ void kernels::generateE (int *ERows, int *ECols, real *EVals, int nx, int ny, real *x, real *y, real *dx, int totalPoints, real *xB, real *yB, int *I, int *J)
 Computes elements of the interpolation matrix. More...
 

Detailed Description

Implementation of the kernels to generate elements of the interpolation matrix.

Definition in file generateE.cu.

Function Documentation

__device__ real deltaDeviceE ( real  x,
real  y,
real  h 
)

Two-dimension discrete delta function.

Parameters
xx-component of the vector defined between two points
yy-component of the vector defined between two points
hthe grid-spacing
Returns
the value of the discrete delta function in 2D

Definition at line 42 of file generateE.cu.

References dhRomaDeviceE().

Referenced by kernels::generateE().

__device__ real dhRomaDeviceE ( real  x,
real  h 
)

Discrete delta function defined by Roma et al. (1999).

Parameters
xx- or y- component of the vector defined between two points
hthe grid-spacing
Returns
the value of the discrete delta function

Definition at line 19 of file generateE.cu.

Referenced by deltaDeviceE().