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

Macros | |
| #define | __DR_FACTOR__ 1.5f |
| The boundary elements effect is restricted to a quadrangular area of \( R \times R \), where \( R = DR_FACTOR \cdot \Delta r \). | |
| #define | __MIN_BOUND_DIST__ 0.3f |
| The elastic bounce is not tolerating that a particle becomes closer than this distance (multiplied by \( \Delta r \)). | |
| #define | __ELASTIC_FACTOR__ 0.0f |
| The amount of kinetic energy conserved in the interaction. | |
Functions | |
| __kernel void | entry (const __global int *imove, const __global vec *r, const __global vec *normal, __global vec *u, __global vec *dudt, usize N, float dr, float dt, LINKLIST_LOCAL_PARAMS) |
| Performs the boundary effect on the fluid particles. | |
The simplest boundary technique to assert the non-tresspasable boundary condition.
| #define __DR_FACTOR__ 1.5f |
The boundary elements effect is restricted to a quadrangular area of \( R \times R \), where \( R = DR_FACTOR \cdot \Delta r \).
| #define __ELASTIC_FACTOR__ 0.0f |
The amount of kinetic energy conserved in the interaction.
A factor of 1 imply that the velocity of the particle will be preserved (except for the direction), while a factor of 0 imply that the particle will loss all its normal to the boundary velocity.
The tangential velocity is not affected.
| #define __MIN_BOUND_DIST__ 0.3f |
The elastic bounce is not tolerating that a particle becomes closer than this distance (multiplied by \( \Delta r \)).
| __kernel void entry | ( | const __global int * | imove, |
| const __global vec * | r, | ||
| const __global vec * | normal, | ||
| __global vec * | u, | ||
| __global vec * | dudt, | ||
| usize | N, | ||
| float | dr, | ||
| float | dt, | ||
| LINKLIST_LOCAL_PARAMS | ) |
Performs the boundary effect on the fluid particles.
| imove | Moving flags.
|
| r | Position \( \mathbf{r} \). |
| normal | Normal \( \mathbf{n} \). |
| u | Velocity \( \mathbf{u} \). |
| dudt | Velocity rate of change \( \left. \frac{d \mathbf{u}}{d t} \right\vert_{n+1} \). |
| icell | Cell where each particle is located. |
| ihoc | Head of chain for each cell (first particle found). |
| N | Number of particles. |
| n_cells | Number of cells in each direction |
| dr | Distance between particles \( \Delta r \). |
| dt | Time step \( \Delta t \). |