AQUAgpusph 4.1.2
|
Fixed ghost particles fields interpolation. More...
Macros | |
#define | _RHO_ gp_rho[i] |
#define | _P_ gp_p[i] |
#define | _U_ gp_u[i].XYZ |
#define | _SHEPARD_ shepard[i] |
#define | C_I() const uint c_i = gp_icell[i] |
Functions | |
__kernel void | entry (const __global int *imove, const __global vec *r, const __global vec *normal, const __global float *m, const __global float *rho, const __global float *p, const __global vec *u, const __global float *h_var, __global float *gp_rho, __global float *gp_p, __global vec *gp_u, __global float *shepard, const __global uint *icell, const __global uint *gp_icell, const __global uint *ihoc, uint N, uivec4 n_cells) |
Fixed ghost particles fields interpolation. | |
Fixed ghost particles fields interpolation.
#define _P_ gp_p[i] |
#define _RHO_ gp_rho[i] |
#define _SHEPARD_ shepard[i] |
#define _U_ gp_u[i].XYZ |
#define C_I | ( | ) | const uint c_i = gp_icell[i] |
__kernel void entry | ( | const __global int * | imove, |
const __global vec * | r, | ||
const __global vec * | normal, | ||
const __global float * | m, | ||
const __global float * | rho, | ||
const __global float * | p, | ||
const __global vec * | u, | ||
const __global float * | h_var, | ||
__global float * | gp_rho, | ||
__global float * | gp_p, | ||
__global vec * | gp_u, | ||
__global float * | shepard, | ||
const __global uint * | icell, | ||
const __global uint * | gp_icell, | ||
const __global uint * | ihoc, | ||
uint | N, | ||
uivec4 | n_cells | ||
) |
Fixed ghost particles fields interpolation.
In order to conveniently extend the flow fields we need to know the mirrored values. Also the Shepard values should be recomputed taking into account the mirrored position.
imove | Moving flags.
|
r | Position \( \mathbf{r} \). |
normal | Normal \( \mathbf{n} \). |
m | Mass \( m \). |
rho | Density \( \rho \). |
p | Pressure \( p \). |
u | Velocity \( \mathbf{u} \). |
h_var | variable kernel lenght \( h \). |
gp_rho | Interpolated density in the mirrored position \( \rho \). |
gp_p | Interpolated pressure in the mirrored position \( p \). |
gp_u | Interpolated velocity in the mirrored position \( \mathbf{u} \). |
shepard | Shepard term \( \gamma(\mathbf{x}) = \int_{\Omega} W(\mathbf{y} - \mathbf{x}) \mathrm{d}\mathbf{x} \). |
icell | Cell where each particle is located. |
gp_icell | Cell where each mirrored ghost 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 |