AQUAgpusph 5.0.4
|
Fluid particles interactions computation. More...
#include "resources/Scripts/types/types.h"
#include "resources/Scripts/KernelFunctions/Kernel.h"
#include "resources/Scripts/cfd/ideal_gas/sound_speed.hcl"
Macros | |
#define | _GRADP_ grad_p[i].XYZ |
#define | _W_DEN_ work_density[i] |
#define | _DIVU_ div_u[i] |
Functions | |
__kernel void | entry (const __global unsigned int *iset, 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 float *div_u, __global float *work_density, __constant float *gamma, usize N, LINKLIST_LOCAL_PARAMS) |
Fluid particles interactions computation. |
Fluid particles interactions computation.
#define _DIVU_ div_u[i] |
#define _GRADP_ grad_p[i].XYZ |
#define _W_DEN_ work_density[i] |
__kernel void entry | ( | const __global unsigned int * | iset, |
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 float * | div_u, | ||
__global float * | work_density, | ||
__constant float * | gamma, | ||
usize | N, | ||
LINKLIST_LOCAL_PARAMS | ) |
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} \). |
N | Number of particles. |
icell | Cell where each particle is located. |
ihoc | Head of chain for each cell (first particle found). |
n_cells | Number of cells in each direction |