AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Functions
Mirror.cl File Reference

Fixed ghost particles mirroring process. More...

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

Functions

__kernel void entry (const __global int *imove, const __global uint *associations, const __global vec *normal, __global vec *r, __global uint *gp_icell, uint N, vec r_min, uivec4 n_cells)
 Fixed ghost particles mirroring.
 

Detailed Description

Fixed ghost particles mirroring process.

Function Documentation

◆ entry()

__kernel void entry ( const __global int *  imove,
const __global uint *  associations,
const __global vec normal,
__global vec r,
__global uint *  gp_icell,
uint  N,
vec  r_min,
uivec4  n_cells 
)

Fixed ghost particles mirroring.

The fixed ghost particles require to mirror the particles in order to can interpolate the field values, mirroring back later to can compute the interactions with the fluid particles.

In the mirroring process, both the particle and its cell information should be changed.

Parameters
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
associationsMirroring particles.
normalNormal \( \mathbf{n} \).
rPosition \( \mathbf{r} \).
gp_icellCell where each particle is located.
NNumber of particles.
r_minMinimum position of a particle
n_cellsNumber of cells in each direction
Here is the call graph for this function: