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

Particles interactions computation. More...

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

Macros

#define _LAPP_   lap_p[i]
 

Functions

__kernel void lapp (const __global int *imove, const __global int *imirrored, const __global vec *r, const __global float *rho, const __global float *m, const __global float *p, const __global float *h_var, __global float *lap_p, __global uint *icell, __global uint *ihoc, uint N, uivec4 n_cells)
 Laplacian of the pressure computation.
 

Detailed Description

Particles interactions computation.

Macro Definition Documentation

◆ _LAPP_

#define _LAPP_   lap_p[i]

Function Documentation

◆ lapp()

__kernel void lapp ( const __global int *  imove,
const __global int *  imirrored,
const __global vec r,
const __global float *  rho,
const __global float *  m,
const __global float *  p,
const __global float *  h_var,
__global float *  lap_p,
__global uint *  icell,
__global uint *  ihoc,
uint  N,
uivec4  n_cells 
)

Laplacian of the pressure computation.

Parameters
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
imirrored0 if the particle has not been mirrored, 1 otherwise.
rPosition \( \mathbf{r} \).
rhoDensity \( \rho \).
mMass \( m \).
pPressure \( p \).
h_varvariable kernel lenght \( h \).
lap_pPressure laplacian \( \Delta 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
Here is the call graph for this function: