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

Fluid particles interactions computation. More...

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

Macros

#define __CLEARY__   10.f
 
#define _GRADP_   grad_p[i].XYZ
 
#define _LAPU_   lap_u[i].XYZ
 
#define _DIVU_   div_u[i]
 

Functions

__kernel void entry (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 vec *lap_u, __global float *div_u, const __global uint *icell, const __global uint *ihoc, uint N, uivec4 n_cells)
 Fluid particles interactions computation.
 

Detailed Description

Fluid particles interactions computation.

Macro Definition Documentation

◆ __CLEARY__

#define __CLEARY__   10.f

◆ _DIVU_

#define _DIVU_   div_u[i]

◆ _GRADP_

#define _GRADP_   grad_p[i].XYZ

◆ _LAPU_

#define _LAPU_   lap_u[i].XYZ

Function Documentation

◆ entry()

__kernel void entry ( 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 vec lap_u,
__global float *  div_u,
const __global uint *  icell,
const __global uint *  ihoc,
uint  N,
uivec4  n_cells 
)

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} \).
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: