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

Ghost particles Laplacian of the velocity computation. More...

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

Macros

#define __CLEARY__   10.f
 
#define _LAPU_   lap_u[i].XYZ
 

Functions

__kernel void entry (const __global int *imove, const __global vec *r, const __global vec *u, const __global float *rho, const __global float *m, __global vec *lap_u, const __global uint *icell, const __global uint *ihoc, uint N, uivec4 n_cells)
 Ghost particles Laplacian of the velocity computation.
 

Detailed Description

Ghost particles Laplacian of the velocity computation.

Macro Definition Documentation

◆ __CLEARY__

#define __CLEARY__   10.f

◆ _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,
__global vec lap_u,
const __global uint *  icell,
const __global uint *  ihoc,
uint  N,
uivec4  n_cells 
)

Ghost particles Laplacian of the velocity computation.

This method compute the Laplacian of the velocity also in the mirroring boundary elements because such information will be required to extend the pressure field.

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 \).
lap_uVelocity laplacian \( \frac{\Delta \mathbf{u}}{rho} \).
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: