AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Macros | Functions
Pressure.cl File Reference

Tool to compute the fluid pressure mechanical energy, and compressible energy induced by a solid boundary in the fluid particles. More...

#include "resources/Scripts/types/types.h"
#include "resources/Scripts/KernelFunctions/Kernel.h"
Include dependency graph for Pressure.cl:

Macros

#define _E_GRADP_   GP_energy_degradpdt[i]
 
#define _E_DIVU_   GP_energy_dedivudt[i]
 

Functions

__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.
 

Detailed Description

Tool to compute the fluid pressure mechanical energy, and compressible energy induced by a solid boundary in the fluid particles.

Macro Definition Documentation

◆ _E_DIVU_

#define _E_DIVU_   GP_energy_dedivudt[i]

◆ _E_GRADP_

#define _E_GRADP_   GP_energy_degradpdt[i]

Function Documentation

◆ 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_degradpdtEnergy induced by the ghost particles due to the pressure term.
GP_energy_dedivudtEnergy induced by the ghost particles due to the compressibility.
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 \).
pPressure \( p \).
mMass \( m \).
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: