cuIBM
A GPU-based Immersed Boundary Method code
updateRHS1.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include "utilities/types.h"
14 
15 
20 namespace kernels
21 {
22 
23 // update the RHS of the velocity system with zeros at forcing points
24 __global__
25 void updateRHS1(real *rhs1, int numUV, int *tags);
26 
27 // 1D linear interpolation along gridline in x-direction
28 // update the RHS of the velocity system for the x-components of the velocity
29 __global__
30 void updateRHS1X(real *rhs1, int nx, int ny, real dt, real *dx, int *tags, real *cf, real *uv);
31 
32 // 1D linear interpolation along gridline in y-direction
33 // update the RHS of the velocity system for the y-components of the velocity
34 __global__
35 void updateRHS1Y(real *rhs1, int nx, int ny, real dt, real *dy, int *tags, real *cf, real *uv);
36 
37 // quadratic interpolation along gridline in x-direction
38 // update the RHS of the velocity system for the x-components of the velocity
39 __global__
40 void updateRHS1X(real *rhs1, int nx, int ny, real dt, real *dx, int *tags, real *cf, real *cf2, real *uv);
41 
42 // quadratic interpolation along gridline in x-direction
43 // update the RHS of the velocity system for the y-components of the velocity
44 __global__
45 void updateRHS1Y(real *rhs1, int nx, int ny, real dt, real *dy, int *tags, real *cf, real *cf2, real *uv);
46 
47 } // End of namespace kernels
__global__ void updateRHS1(real *rhs1, int numUV, int *tags)
Update the RHS vector of the velocity system at forcing nodes.
Definition: updateRHS1.cu:30
Definition of custom types required by the code.
double real
Is a float or a double depending on the machine precision.
Definition: types.h:116
Contains all the custom-written CUDA kernels.
__global__ void updateRHS1Y(real *rhs1, int nx, int ny, real dt, real *dy, int *tags, real *coeffs, real *uv)
Perform 1D linear interpolation at forcing points for the y-velocity.
Definition: updateRHS1.cu:80
__global__ void updateRHS1X(real *rhs1, int nx, int ny, real dt, real *dx, int *tags, real *coeffs, real *uv)
Perform 1D linear interpolation at forcing points for the x-velocity.
Definition: updateRHS1.cu:54