Tool to compute the fluid pressure mechanical energy, and compressible energy induced by a solid boundary in the fluid particles.
More...
|
__kernel void | main (__global float *GP_energy_degradpdt, __global float *GP_energy_dedivudt, const __global uint *iset, const __global int *imove, const __global vec *r, const __global vec *u, const __global float *rho, const __global float *p, const __global float *m, const __global uint *icell, const __global uint *ihoc, uint N, uivec4 n_cells, uint GP_energy_iset) |
| Tool to compute the fluid pressure mechanical energy, and compressible energy induced by a solid boundary in the fluid particles.
|
|
Tool to compute the fluid pressure mechanical energy, and compressible energy induced by a solid boundary in the fluid particles.
◆ _E_DIVU_
#define _E_DIVU_ GP_energy_dedivudt[i] |
◆ _E_GRADP_
#define _E_GRADP_ GP_energy_degradpdt[i] |
◆ main()
__kernel void main |
( |
__global float * |
GP_energy_degradpdt, |
|
|
__global float * |
GP_energy_dedivudt, |
|
|
const __global uint * |
iset, |
|
|
const __global int * |
imove, |
|
|
const __global vec * |
r, |
|
|
const __global vec * |
u, |
|
|
const __global float * |
rho, |
|
|
const __global float * |
p, |
|
|
const __global float * |
m, |
|
|
const __global uint * |
icell, |
|
|
const __global uint * |
ihoc, |
|
|
uint |
N, |
|
|
uivec4 |
n_cells, |
|
|
uint |
GP_energy_iset |
|
) |
| |
Tool to compute the fluid pressure mechanical energy, and compressible energy induced by a solid boundary in the fluid particles.
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_degradpdt | Energy induced by the ghost particles due to the pressure term. |
GP_energy_dedivudt | Energy induced by the ghost particles due to the compressibility. |
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 \). |
p | Pressure \( p \). |
m | Mass \( m \). |
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. |