|
AQUAgpusph 5.0.4
|
Tool to compute the energy injected into the system by the inlet. More...
#include "resources/Scripts/types/types.h"
Functions | |
| __kernel void | entry (__global float *inlet_energy_dekindt, __global float *inlet_energy_depotdt, __global float *inlet_energy_decomdt, __global float *fluid_energy_dekindt, __global float *fluid_energy_depotdt, __global float *fluid_energy_decomdt, const __global int *imove, const __global vec *r, vec inlet_r, vec inlet_n, usize N) |
| Tool to compute the energy injected into the system by the inlet. | |
Tool to compute the energy injected into the system by the inlet.
| __kernel void entry | ( | __global float * | inlet_energy_dekindt, |
| __global float * | inlet_energy_depotdt, | ||
| __global float * | inlet_energy_decomdt, | ||
| __global float * | fluid_energy_dekindt, | ||
| __global float * | fluid_energy_depotdt, | ||
| __global float * | fluid_energy_decomdt, | ||
| const __global int * | imove, | ||
| const __global vec * | r, | ||
| vec | inlet_r, | ||
| vec | inlet_n, | ||
| usize | N ) |
Tool to compute the energy injected into the system by the inlet.
Actually, in this kernel the energy componets variation are computed per each particle.
| inlet_energy_dekindt | Variation of the kinetic energy due to the inflow. |
| inlet_energy_depotdt | Variation of the potential energy due to the inflow. |
| inlet_energy_decomdt | Variation of the compressibility energy due to the inflow. |
| fluid_energy_dekindt | Variation of the kinetic energy (restricted to the fluid particles interactions): \( \frac{dE^{kin}_a}{dt} = m_a \mathbf{u}_a \cdot \frac{d \mathbf{u}_a}{dt}\) |
| fluid_energy_depotdt | Variation of the potential energy (restricted to the fluid particles interactions): \( \frac{dE^{pot}_a}{dt} = - m_a \mathbf{g} \cdot \mathbf{u}_a\) |
| fluid_energy_decomdt | Variation of the compressibility energy (restricted to the fluid particles interactions): \( \frac{dE^{com}_a}{dt} = \frac{m_a}{\rho_a} \frac{p_a}{\rho_a} \frac{d \rho_a}{dt} \) |
| imove | Moving flags.
|
| r | Position \( \mathbf{r} \). |
| inlet_r | Lower corner of the inlet square. |
| inlet_n | Velocity direction of the generated particles. |
| N | Number of particles. |