AQUAgpusph 4.1.2
|
Tool to compute the fluid pressure force and moment. More...
Functions | |
__kernel void | entry (__global vec *pressureForces_f, __global vec4 *pressureForces_m, const __global uint *iset, const __global int *imove, const __global vec *r, const __global vec *normal, const __global float *p, const __global float *rho, const __global float *m, uint N, unsigned int pressureForces_iset, vec pressureForces_r) |
Tool to compute the pressure force and moment for an especific body. | |
Tool to compute the fluid pressure force and moment.
__kernel void entry | ( | __global vec * | pressureForces_f, |
__global vec4 * | pressureForces_m, | ||
const __global uint * | iset, | ||
const __global int * | imove, | ||
const __global vec * | r, | ||
const __global vec * | normal, | ||
const __global float * | p, | ||
const __global float * | rho, | ||
const __global float * | m, | ||
uint | N, | ||
unsigned int | pressureForces_iset, | ||
vec | pressureForces_r | ||
) |
Tool to compute the pressure force and moment for an especific body.
The force at each boundary element is just \( \mathbf{f}_a = p_a \mathbf{n}_a s_a \) where \( s_a \) is the area of the element, stored in the masses array. The moment is consequently computed as: \( \mathbf{m}_a = \mathbf{f}_a \times \left(\mathbf{r}_a - \mathbf{r}_0 \right) \) with \( \mathbf{r}_0 \) the reference point where the moment should be computed.
pressureForces_f | Force of each boundary element to be computed [N]. |
pressureForces_m | Moment of each boundary element to be computed [N \( \cdot \) m]. |
iset | Set of particles index. |
imove | Moving flags.
|
r | Position \( \mathbf{r} \). |
normal | Normal \( \mathbf{n} \). |
p | Pressure \( p \). |
rho | Density \( \rho \). |
m | Mass \( m \). |
N | Number of particles. |
pressureForces_iset | Particles set to be computed. |
pressureForces_r | Point with respect the moments are computed, \( \mathbf{r}_0 \). |