AQUAgpusph 4.1.2
|
Boundary integral term computation. More...
Macros | |
#define | _GRADP_ grad_p[i].XYZ |
#define | _DIVU_ div_u[i] |
Functions | |
__kernel void | entry (const __global uint *iset, const __global int *imove, const __global int *imirrored, const __global vec *r, const __global vec *rmirrored, const __global vec *normal, const __global vec *nmirrored, const __global vec *u, const __global vec *umirrored, const __global float *rho, const __global float *m, const __global float *p, __constant float *refd, __global vec *grad_p, __global float *div_u, __global uint *icell, __global uint *ihoc, uint N, uivec4 n_cells, vec g) |
Performs the boundary effect on the fluid particles. | |
Boundary integral term computation.
#define _DIVU_ div_u[i] |
#define _GRADP_ grad_p[i].XYZ |
__kernel void entry | ( | const __global uint * | iset, |
const __global int * | imove, | ||
const __global int * | imirrored, | ||
const __global vec * | r, | ||
const __global vec * | rmirrored, | ||
const __global vec * | normal, | ||
const __global vec * | nmirrored, | ||
const __global vec * | u, | ||
const __global vec * | umirrored, | ||
const __global float * | rho, | ||
const __global float * | m, | ||
const __global float * | p, | ||
__constant float * | refd, | ||
__global vec * | grad_p, | ||
__global float * | div_u, | ||
__global uint * | icell, | ||
__global uint * | ihoc, | ||
uint | N, | ||
uivec4 | n_cells, | ||
vec | g | ||
) |
Performs the boundary effect on the fluid particles.
iset | Set of particles index. |
imove | Moving flags.
|
imirrored | 0 if the particle has not been mirrored, 1 otherwise. |
r | Position \( \mathbf{r} \). |
rmirrored | Mirrored position of the particle, r if imirrored is false (0). |
normal | Normal \( \mathbf{n} \). |
nmirrored | Mirrored normal of the particle, normal if imirrored is false (0). |
u | Velocity \( \mathbf{u} \). |
umirrored | Mirrored velocity of the particle, u if imirrored is false (0). |
rho | Density \( \rho \). |
p | Pressure \( p \). |
mass | Mass \( m \). |
refd | Density of reference \( \rho_0 \) (one per set of particles) |
grad_p | Pressure gradient \( \nabla p \). |
div_u | Velocity divergence \( \nabla \cdot \mathbf{u} \). |
icell | Cell where each particle is located. |
ihoc | Head of chain for each cell (first particle found). |
N | Number of particles. |
n_cells | Number of cells in each direction |
g | Gravity acceleration \( \mathbf{g} \). |