AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Functions
EnergyKin.cl File Reference

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

#include "resources/Scripts/types/types.h"
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, unsigned int 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,
unsigned int  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.