AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Viscous.cl File Reference

Tool to compute the fluid viscous mechanincal energy induced by a solid boundary in the fluid particles. More...

Include dependency graph for Viscous.cl:

Macros

#define __CLEARY__   8.f
#define _E_LAPU_   GP_energy_delapudt[i]

Functions

__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, usize N, uint GP_energy_iset, LINKLIST_LOCAL_PARAMS)
 Tool to compute the viscous energy due to the interaction with a body.

Detailed Description

Tool to compute the fluid viscous mechanincal energy induced by a solid boundary in the fluid particles.

Macro Definition Documentation

◆ __CLEARY__

#define __CLEARY__   8.f

◆ _E_LAPU_

#define _E_LAPU_   GP_energy_delapudt[i]

Function Documentation

◆ main()

__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,
usize N,
uint GP_energy_iset,
LINKLIST_LOCAL_PARAMS  )

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_delapudtEnergy induced by the ghost particles due to the viscous term.
isetSet of particles index.
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
rPosition \( \mathbf{r} \).
uVelocity \( \mathbf{u} \).
rhoDensity \( \rho \).
mMass \( m \).
visc_dynDynamic viscosity \( \mu \).
icellCell where each particle is located.
ihocHead of chain for each cell (first particle found).
NNumber of particles.
n_cellsNumber of cells in each direction
GP_energy_isetGhost particles set to be considered.
Here is the call graph for this function: