Tool to compute the fluid viscous mechanincal energy induced by a solid boundary in the fluid particles.
More...
Tool to compute the fluid viscous mechanincal energy induced by a solid boundary in the fluid particles.
__kernel void main |
( |
__global float * |
GP_energy_delapudt, |
|
|
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, |
|
|
const __global uint * |
icell, |
|
|
const __global uint * |
ihoc, |
|
|
uint |
N, |
|
|
uivec4 |
n_cells, |
|
|
uint |
GP_energy_iset |
|
) |
| |
Tool to compute the viscous energy due to the interaction with a body.
See the following paper:
M. Antuono, S. Marrone, A. Colagrossi, B. Bouscasse, "Energy balance in the
delta-SPH scheme". Computer methods in applied mechanincs and engineering, vol 289, pp 209-226, 2015.
- Parameters
-
GP_energy_delapudt | Energy induced by the ghost particles due to the viscous term. |
iset | Set of particles index. |
imove | Moving flags.
- imove > 0 for regular fluid particles.
- imove = 0 for sensors.
- imove < 0 for boundary elements/particles.
|
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 |
GP_energy_iset | Ghost particles set to be considered. |