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

Fluid particles interactions computation. More...

#include "resources/Scripts/types/types.h"
#include "resources/Scripts/KernelFunctions/Kernel.h"
Include dependency graph for Sensors.cl:

Macros

#define _U_   u[i].XYZ
 
#define _RHO_   rho[i]
 
#define _P_   p[i]
 

Functions

__kernel void entry (const __global uint *iset, const __global int *imove, const __global vec *r, const __global float *m, __global vec *u, __global float *rho, __global float *p, const __global uint *icell, const __global uint *ihoc, uint N, uivec4 n_cells, vec g)
 Fields interpolation at the sensors.
 

Detailed Description

Fluid particles interactions computation.

Macro Definition Documentation

◆ _P_

#define _P_   p[i]

◆ _RHO_

#define _RHO_   rho[i]

◆ _U_

#define _U_   u[i].XYZ

Function Documentation

◆ entry()

__kernel void entry ( const __global uint *  iset,
const __global int *  imove,
const __global vec r,
const __global float *  m,
__global vec u,
__global float *  rho,
__global float *  p,
const __global uint *  icell,
const __global uint *  ihoc,
uint  N,
uivec4  n_cells,
vec  g 
)

Fields interpolation at the sensors.

The fields to be interpolated are:

  • Velocity \( \mathbf{u} \)
  • Density \( \rho \)
  • Pressure \( p \)

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

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 \).
uVelocity \( \mathbf{u} \).
rhoDensity \( \rho \).
pPressure \( p \).
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} \).
See also
SensorsRenormalization.cl
Here is the call graph for this function: