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

Fluid particles interactions computation. More...

#include "resources/Scripts/types/types.h"
#include "resources/Scripts/KernelFunctions/Kernel.h"
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, const __global uint *icell, const __global uint *ihoc, __constant float *refd, uint N, uivec4 n_cells)
 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,
const __global uint *  icell,
const __global uint *  ihoc,
__constant float *  refd,
uint  N,
uivec4  n_cells 
)

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: