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

Fluid particles interactions computation. More...

Include dependency graph for Interpolation.cl:

Macros

#define _P_   p[i]

Functions

__kernel void entry (const __global uint *iset, const __global int *imove, const __global vec *r, const __global float *m, const __global float *rho, const __global vec *grad_p, __global float *p, __constant float *refd, usize N, LINKLIST_LOCAL_PARAMS)
 Pressure interpolation at the boundary elements.

Detailed Description

Fluid particles interactions computation.

Macro Definition Documentation

◆ _P_

#define _P_   p[i]

Function Documentation

◆ entry()

__kernel void entry ( const __global uint * iset,
const __global int * imove,
const __global vec * r,
const __global float * m,
const __global float * rho,
const __global vec * grad_p,
__global float * p,
__constant float * refd,
usize N,
LINKLIST_LOCAL_PARAMS  )

Pressure interpolation at the boundary elements.

The values are computed using just the fluid information. The resulting interpolated values are not renormalized yet.

Just the elements with the flag imove = -3 are considered boundary elements.

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} \).
mMass \( m \).
rhoDensity \( \rho \).
grad_pPressure gradient \( \frac{\nabla p}{rho} \).
pPressure \( p \).
icellCell where each particle is located.
ihocHead of chain for each cell (first particle found).
refdDensity of reference of the fluid \( \rho_0 \).
NNumber of particles.
n_cellsNumber of cells in each direction
See also
SensorsRenormalization.cl
Here is the call graph for this function: