AQUAgpusph 4.1.2
|
Tool to compute the fluid global energy components. More...
#include "resources/Scripts/types/types.h"
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. | |
Tool to compute the fluid global energy components.
__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\)
energy_kin | Particle kinetic energy: \( E^{kin}_a = \frac{1}{2} m_a \mathbf{u}_a \cdot \mathbf{u}_a\) |
imove | Moving flags.
|
u | Velocity \( \mathbf{u} \). |
m | Mass \( m \). |
N | Number of particles. |