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

Fluid particles interactions computation. More...

Include dependency graph for Interactions.cl:

Macros

#define _GRADP_   grad_p[i].XYZ
#define _W_DEN_   work_density[i]
#define _DIVU_   div_u[i]

Functions

__kernel void entry (const __global unsigned int *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, __global vec *grad_p, __global float *div_u, __global float *work_density, __constant float *gamma, usize N, LINKLIST_LOCAL_PARAMS)
 Fluid particles interactions computation.

Detailed Description

Fluid particles interactions computation.

Macro Definition Documentation

◆ _DIVU_

#define _DIVU_   div_u[i]

◆ _GRADP_

#define _GRADP_   grad_p[i].XYZ

◆ _W_DEN_

#define _W_DEN_   work_density[i]

Function Documentation

◆ entry()

__kernel void entry ( const __global unsigned int * 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,
__global vec * grad_p,
__global float * div_u,
__global float * work_density,
__constant float * gamma,
usize N,
LINKLIST_LOCAL_PARAMS  )

Fluid particles interactions computation.

Compute the differential operators involved in the numerical scheme, taking into account just the fluid-fluid interactions.

Parameters
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 \).
grad_pPressure gradient \( \frac{\nabla p}{rho} \).
lap_uVelocity laplacian \( \frac{\Delta \mathbf{u}}{rho} \).
div_uVelocity divergence \( \rho \nabla \cdot \mathbf{u} \).
NNumber of particles.
icellCell where each particle is located.
ihocHead of chain for each cell (first particle found).
n_cellsNumber of cells in each direction
Here is the call graph for this function: