AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
BoundaryIntegrals.cl File Reference

Boundary integral term computation. More...

Include dependency graph for BoundaryIntegrals.cl:

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, usize N, vec g, LINKLIST_LOCAL_PARAMS)
 Performs the boundary effect on the fluid particles.

Detailed Description

Boundary integral term computation.

Macro Definition Documentation

◆ _DIVU_

#define _DIVU_   div_u[i]

◆ _GRADP_

#define _GRADP_   grad_p[i].XYZ

Function Documentation

◆ entry()

__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,
usize N,
vec g,
LINKLIST_LOCAL_PARAMS  )

Performs the boundary effect on the fluid particles.

Parameters
isetSet of particles index.
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
imirrored0 if the particle has not been mirrored, 1 otherwise.
rPosition \( \mathbf{r} \).
rmirroredMirrored position of the particle, r if imirrored is false (0).
normalNormal \( \mathbf{n} \).
nmirroredMirrored normal of the particle, normal if imirrored is false (0).
uVelocity \( \mathbf{u} \).
umirroredMirrored velocity of the particle, u if imirrored is false (0).
rhoDensity \( \rho \).
pPressure \( p \).
massMass \( m \).
refdDensity of reference \( \rho_0 \) (one per set of particles)
grad_pPressure gradient \( \nabla p \).
div_uVelocity divergence \( \nabla \cdot \mathbf{u} \).
icellCell where each particle is located.
ihocHead of chain for each cell (first particle found).
NNumber of particles.
n_cellsNumber of cells in each direction
gGravity acceleration \( \mathbf{g} \).
Here is the call graph for this function: