|
AQUAgpusph 5.0.4
|
Tool to compute the fluid viscous force and moment. More...

Macros | |
| #define | __CLEARY__ 8.f |
| #define | _F_ viscousForces_f[i].XYZ |
Functions | |
| __kernel void | entry (__global vec *viscousForces_f, __global vec4 *viscousForces_m, const __global uint *iset, const __global int *imove, const __global vec *r, const __global vec *u, const __global float *rho, const __global float *m, __constant float *visc_dyn, usize N, unsigned int viscousForces_iset, vec viscousForces_r, LINKLIST_LOCAL_PARAMS) |
| Tool to compute the viscous force and moment for an especific body. | |
Tool to compute the fluid viscous force and moment.
| #define __CLEARY__ 8.f |
| #define _F_ viscousForces_f[i].XYZ |
| __kernel void entry | ( | __global vec * | viscousForces_f, |
| __global vec4 * | viscousForces_m, | ||
| const __global uint * | iset, | ||
| const __global int * | imove, | ||
| const __global vec * | r, | ||
| const __global vec * | u, | ||
| const __global float * | rho, | ||
| const __global float * | m, | ||
| __constant float * | visc_dyn, | ||
| usize | N, | ||
| unsigned int | viscousForces_iset, | ||
| vec | viscousForces_r, | ||
| LINKLIST_LOCAL_PARAMS | ) |
Tool to compute the viscous force and moment for an especific body.
In this approach the following operation is performed for the boundary elements: \( \mathbf{f}_a = \mu \, \sum_b -\frac{ \left(\mathbf{u}_b - \mathbf{u}_a\right) - \left(\left(\mathbf{u}_b - \mathbf{u}_a\right) \cdot \mathbf{n}_a \right) \mathbf{n}_a}{ \left(\mathbf{r}_b - \mathbf{r}_a\right) \cdot \mathbf{n}_a}s_a \, W\left(\mathbf{u}_b - \mathbf{u}_a\right) \frac{m_b}{\rho_b}\) where \( s_a \) is the area of the element, stored in the masses array. The moment is computed therefore as: \( \mathbf{m}_a = \mathbf{f}_a \times \left(\mathbf{r}_a - \mathbf{r}_0 \right) \) becoming \( \mathbf{r}_0 \) the reference point where the moment should be computed.
| viscousForces_f | Force of each boundary element to be computed [N]. |
| viscousForces_m | Moment of each boundary element to be computed |
| iset | Set of particles index. |
| imove | Moving flags.
|
| r | Position \( \mathbf{r} \). |
| u | Velocity \( \mathbf{u} \). |
| rho | Density \( \rho \). |
| m | Mass \( m \). |
| visc_dyn | Dynamic viscosity \( \mu \). |
| 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 |
| viscousForces_iset | Particles set to be computed. |
| viscousForces_r | Point with respect the moments are computed \( \mathbf{r}_0 \). |
