AQUAgpusph 4.1.2
|
Fluid particles interactions computation. More...
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. | |
Fluid particles interactions computation.
#define __CLEARY__ 10.f |
#define _DIVU_ div_u[i] |
#define _GRADP_ grad_p[i].XYZ |
#define _LAPU_ lap_u[i].XYZ |
__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.
imove | Moving flags.
|
r | Position \( \mathbf{r} \). |
u | Velocity \( \mathbf{u} \). |
rho | Density \( \rho \). |
m | Mass \( m \). |
p | Pressure \( p \). |
grad_p | Pressure gradient \( \frac{\nabla p}{rho} \). |
lap_u | Velocity laplacian \( \frac{\Delta \mathbf{u}}{rho} \). |
div_u | Velocity divergence \( \rho \nabla \cdot \mathbf{u} \). |
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 |