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

Boundary integral term for constant fields. More...

Include dependency graph for Interactions.cl:

Macros

#define _GRADW_   grad_w_bi[i].XYZ
#define _DIVU_   div_u_bi[i]
#define _P_   p[i]

Functions

__kernel void entry (const __global int *imove, const __global vec *r, const __global vec *normal, const __global vec *u, const __global float *m, __global vec *grad_w_bi, __global float *div_u_bi, usize N, LINKLIST_LOCAL_PARAMS)
 Compute the boundary integrals.
__kernel void p_boundary (const __global int *imove, const __global vec *r, const __global float *m, const __global float *rho, __global float *p, usize N, LINKLIST_LOCAL_PARAMS)
 Compute the pressure on each boundary element.

Detailed Description

Boundary integral term for constant fields.

Macro Definition Documentation

◆ _DIVU_

#define _DIVU_   div_u_bi[i]

◆ _GRADW_

#define _GRADW_   grad_w_bi[i].XYZ

◆ _P_

#define _P_   p[i]

Function Documentation

◆ entry()

__kernel void entry ( const __global int * imove,
const __global vec * r,
const __global vec * normal,
const __global vec * u,
const __global float * m,
__global vec * grad_w_bi,
__global float * div_u_bi,
usize N,
LINKLIST_LOCAL_PARAMS  )

Compute the boundary integrals.

Parameters
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} \).
mArea of the boundary element \( s \).
grad_w_biGradient of constant fields due to the boundary integral \( \langle \nabla 1 \rangle^{\partial \Omega} \).
div_uVelocity divergence \( \nabla \cdot \mathbf{u} \). Actually this is just the part that has to do with the boundary element velocity
NNumber of particles.
icellCell where each particle is located.
ihocHead of chain for each cell (first particle found).
n_cellsNumber of cells in each direction
Here is the call graph for this function:

◆ p_boundary()

__kernel void p_boundary ( const __global int * imove,
const __global vec * r,
const __global float * m,
const __global float * rho,
__global float * p,
usize N,
LINKLIST_LOCAL_PARAMS  )

Compute the pressure on each boundary element.

Parameters
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
rPosition \( \mathbf{r} \).
mParticle mass \( m \).
rhoParticle density \( \rho \).
pParticle pressure \( p \).
NNumber of particles.
icellCell where each particle is located.
ihocHead of chain for each cell (first particle found).
n_cellsNumber of cells in each direction
Here is the call graph for this function: