cuIBM
A GPU-based Immersed Boundary Method code
generateBC1.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include "utilities/types.h"
11 
12 
17 namespace kernels
18 {
19 
20 // compute inhomogeneous term from the discrete Laplacian operator
21 // for the u-velocity at a given boundary with a Dirichlet-type condition
22 __global__
23 void bc1DirichletU(real *bc1, int N, int nx, int offset, int stride, real *dx, real C, real *bc);
24 
25 // compute inhomogeneous term from the discrete Laplacian operator
26 // for the v-velocity at a given boundary with a Dirichlet-type condition
27 __global__
28 void bc1DirichletV(real *bc1, int N, int nx, int numU, int offset, int stride, real *dy, real C, real *bc, int numUbc);
29 
30 // compute inhomogeneous term from the discrete Laplacian operator
31 // for the u-velocity at a given boundary with a convective-type condition
32 __global__
33 void bc1ConvectiveU(real *bc1, int N, int nx, int offset, int stride, real *dx, real *dy, real C, real *bc, real *q, real alpha);
34 
35 // compute inhomogeneous term from the discrete Laplacian operator
36 // for the v-velocity at a given boundary with a convective-type condition
37 __global__
38 void bc1ConvectiveV(real *bc1, int N, int nx, int numU, int offset, int stride, real *dx, real *dy, real C, real *bc, int numUbc, real *q, real alpha);
39 
40 // compute inhomogeneous term from the discrete Laplacian operator
41 // for the u-velocity at a given boundary with a special-type condition
42 __global__
43 void bc1SpecialU(real *bc1, int N, int nx, int offset, int stride, real *dx, real C, real *bc, real time);
44 
45 } // End of namespace kernels
Definition of custom types required by the code.
__global__ void bc1DirichletV(real *bc1, int N, int nx, int numU, int offset, int stride, real *dy, real C, real *bc, int numUbc)
Computes inhomogeneous term from the discrete Laplacian operator for the v-velocity at a given bounda...
Definition: generateBC1.cu:66
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 bc1DirichletU(real *bc1, int N, int nx, int offset, int stride, real *dx, real C, real *bc)
Computes inhomogeneous term from the discrete Laplacian operator for the u-velocity at a given bounda...
Definition: generateBC1.cu:35
__global__ void bc1SpecialU(real *bc1, int N, int nx, int offset, int stride, real *dx, real C, real *bc, real time)
Computes inhomogeneous term from the discrete Laplacian operator for the u-velocity at a given bounda...
Definition: generateBC1.cu:171
__global__ void bc1ConvectiveV(real *bc1, int N, int nx, int numU, int offset, int stride, real *dx, real *dy, real C, real *bc, int numUbc, real *q, real beta)
Computes inhomogeneous term from the discrete Laplacian operator for the v-velocity at a given bounda...
Definition: generateBC1.cu:136
__global__ void bc1ConvectiveU(real *bc1, int N, int nx, int offset, int stride, real *dx, real *dy, real C, real *bc, real *q, real beta)
Computes inhomogeneous term from the discrete Laplacian operator for the u-velocity at a given bounda...
Definition: generateBC1.cu:98