AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Macros | Functions
Interactions.cl File Reference

Boundary integral term computation over the fluid particles. More...

#include "resources/Scripts/types/types.h"
#include "resources/Scripts/KernelFunctions/Kernel.h"
Include dependency graph for Interactions.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 vec *r, const __global vec *normal, const __global vec *u, 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.
 

Detailed Description

Boundary integral term computation over the fluid particles.

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 vec r,
const __global vec normal,
const __global vec u,
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.

Parameters
isetSet of particles index.
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
rPosition \( \mathbf{r} \).
normalNormal \( \mathbf{n} \).
uVelocity \( \mathbf{u} \).
rhoDensity \( \rho \).
pPressure \( p \).
mArea of the boundary element \( s \).
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: