cuIBM
A GPU-based Immersed Boundary Method code
Functions
helpers.h File Reference

Declaration of the discrete delta function. More...

#include "types.h"
Include dependency graph for helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

real dhRoma (real x, real h)
 Discrete delta function from Roma et al. (1999). More...
 
real delta (real x, real y, real h)
 Two-dimensional discrete delta function. More...
 

Detailed Description

Declaration of the discrete delta function.

Definition in file helpers.h.

Function Documentation

real delta ( real  x,
real  y,
real  h 
)

Two-dimensional discrete delta function.

Parameters
xx-coordinate of the grid point
yy-coordinate of the grid point
hgrid-spacing in the uniform region
Returns
the value of the discrete Delta function in 2D

Definition at line 44 of file helpers.cu.

References dhRoma().

real dhRoma ( real  x,
real  h 
)

Discrete delta function from Roma et al. (1999).

A.M. Roma, C.S. Peskin, M.J. Berger. An adaptative version of the immersed boundary method. J. Comput. Phys. 153, 509-534 (1999).

Parameters
xcoordinate of the grid point
hgrid-spacing in the uniform region
Returns
the value of the discrete delta function

Definition at line 22 of file helpers.cu.

Referenced by delta().