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

The simplest boundary technique to assert the non-tresspasable boundary condition. More...

Include dependency graph for PST.cl:

Macros

#define __DR_FACTOR__   0.5f
 The boundary elements effect is restricted to a quadrangular area of \( R \times R \), where \( R = DR_FACTOR \cdot \Delta r \).
#define DIMS   2

Functions

__kernel void entry (const __global int *imove, __global vec *r, const __global vec *normal, const __global float *m, const __global float *rho, usize N, LINKLIST_LOCAL_PARAMS)
 Ensure that no particle can get closer to the boundary than its volume allows to.

Detailed Description

The simplest boundary technique to assert the non-tresspasable boundary condition.

Macro Definition Documentation

◆ __DR_FACTOR__

#define __DR_FACTOR__   0.5f

The boundary elements effect is restricted to a quadrangular area of \( R \times R \), where \( R = DR_FACTOR \cdot \Delta r \).

◆ DIMS

#define DIMS   2

Function Documentation

◆ entry()

__kernel void entry ( const __global int * imove,
__global vec * r,
const __global vec * normal,
const __global float * m,
const __global float * rho,
usize N,
LINKLIST_LOCAL_PARAMS  )

Ensure that no particle can get closer to the boundary than its volume allows to.

Parameters
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
rPosition \( \mathbf{r} \).
normalNormal \( \mathbf{n} \).
mMass \( m \) or Area \( s \) (depending on imove).
rhoDensity \( \rho \).
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