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

Fluid-Ghost particles interactions computation. More...

Include dependency graph for Interactions.cl:

Macros

#define __CLEARY__   8.f
#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 *u, 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)
 Fluid particles interactions with the ghost ones.

Detailed Description

Fluid-Ghost particles interactions computation.

Macro Definition Documentation

◆ __CLEARY__

#define __CLEARY__   8.f

◆ _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 * u,
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  )

Fluid particles interactions with the ghost ones.

Compute the differential operators except the Laplacian of the velocity already computed, taking into account just the fluid-ghost interactions.

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} \).
uVelocity \( \mathbf{u} \).
rhoDensity \( \rho \).
mMass \( m \).
pPressure \( p \).
refdDensity of reference \( \rho_0 \) (one per set of particles)
grad_pPressure gradient \( \frac{\nabla p}{rho} \).
div_uVelocity divergence \( \rho \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: