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

Tool to compute the fluid global energy components. More...

Include dependency graph for EnergyKin.cl:

Functions

__kernel void entry (__global float *energy_kin, const __global int *imove, const __global vec *u, const __global float *m, usize N)
 Tool to compute the fluid kinetic energy.

Detailed Description

Tool to compute the fluid global energy components.

Function Documentation

◆ entry()

__kernel void entry ( __global float * energy_kin,
const __global int * imove,
const __global vec * u,
const __global float * m,
usize N )

Tool to compute the fluid kinetic energy.

\( E^{kin} = \sum_{a \in Fluid} \frac{1}{2} m_a \mathbf{u}_a \cdot \mathbf{u}_a\)

Parameters
energy_kinParticle kinetic energy: \( E^{kin}_a = \frac{1}{2} m_a \mathbf{u}_a \cdot \mathbf{u}_a\)
imoveMoving flags.
  • imove = 1 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
uVelocity \( \mathbf{u} \).
mMass \( m \).
NNumber of particles.