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

Implementation of the kernels to generate the gradient matrix and interpolation matrix. More...

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

Go to the source code of this file.

Namespaces

 kernels
 Contains all the custom-written CUDA kernels.
 

Functions

__device__ real dhRomaDeviceQT (real x, real h)
 Discrete delta function defined by Roma et al. (1999). More...
 
__device__ real deltaDeviceQT (real x, real y, real h)
 Two-dimensional discrete delta function. More...
 
__global__ void kernels::updateQ (int *QRows, int *QCols, real *QVals, int QSize, int *tags)
 Update the gradient operator at forcing nodes. More...
 
__global__ void kernels::updateQT (int *QTRows, int *QTCols, real *QTVals, int QTSize, int *tags, real *coeffs)
 Update the divergence operator at forcing nodes. More...
 
void kernels::generateQT (int *QTRows, int *QTCols, real *QTVals, int nx, int ny)
 Generates the divergence matrix (on the host). More...
 
__global__ void kernels::updateQT (int *QTRows, int *QTCols, real *QTVals, 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)
 Updates elements of the divergence matrix and the interpolation matrix. More...
 

Detailed Description

Implementation of the kernels to generate the gradient matrix and interpolation matrix.

Definition in file generateQT.cu.

Function Documentation

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

Two-dimensional 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 generateQT.cu.

References dhRomaDeviceQT().

Referenced by kernels::updateQT().

__device__ real dhRomaDeviceQT ( 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 generateQT.cu.

Referenced by deltaDeviceQT().