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_dekindt, __global float *energy_depotdt, __global float *energy_decomdt, const __global int *imove, const __global vec *u, const __global float *rho, const __global float *m, const __global float *p, const __global vec *dudt, const __global float *drhodt, unsigned int N, vec g) |
Tool to compute the fluid energy components. | |
Tool to compute the fluid global energy components.
__kernel void entry | ( | __global float * | energy_dekindt, |
__global float * | energy_depotdt, | ||
__global float * | energy_decomdt, | ||
const __global int * | imove, | ||
const __global vec * | u, | ||
const __global float * | rho, | ||
const __global float * | m, | ||
const __global float * | p, | ||
const __global vec * | dudt, | ||
const __global float * | drhodt, | ||
unsigned int | N, | ||
vec | g | ||
) |
Tool to compute the fluid energy components.
Actually, in this kernel the energy componets variation are computed per each particle.
energy_dekindt | Variation of the kinetic energy: \( \frac{dE^{kin}_a}{dt} = m_a \mathbf{u}_a \cdot \frac{d \mathbf{u}_a}{dt}\) |
energy_depotdt | Variation of the potential energy: \( \frac{dE^{pot}_a}{dt} = - m_a \mathbf{g} \cdot \mathbf{u}_a\) |
energy_decomdt | Variation of the compressibility energy: \( \frac{dE^{com}_a}{dt} = \frac{m_a}{\rho_a} \frac{p_a}{\rho_a} \frac{d \rho_a}{dt} \) |
imove | Moving flags.
|
u | Velocity \( \mathbf{u} \). |
rho | Density \( \rho \). |
m | Mass \( m \). |
p | Pressure \( p \). |
dudt | Velocity rate of change \( \frac{d \mathbf{u}}{d t} \). |
drhodt | Density rate of change \( \frac{d \rho}{d t} \). |
N | Number of particles. |
g | Gravity acceleration \( \mathbf{g} \). |