|
AQUAgpusph 5.0.4
|
Tool to compute the energy substracted from the system by the outlet. More...
#include "resources/Scripts/types/types.h"
Functions | |
| __kernel void | entry (__global float *outlet_energy_dekindt, __global float *outlet_energy_depotdt, __global float *outlet_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 outlet_r, vec outlet_n, usize N) |
| Tool to compute the energy substracted from the system by the outlet. | |
Tool to compute the energy substracted from the system by the outlet.
| __kernel void entry | ( | __global float * | outlet_energy_dekindt, |
| __global float * | outlet_energy_depotdt, | ||
| __global float * | outlet_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 | outlet_r, | ||
| vec | outlet_n, | ||
| usize | N ) |
Tool to compute the energy substracted from the system by the outlet.
Actually, in this kernel the energy componets variation are computed per each particle.
| outlet_energy_dekindt | Variation of the kinetic energy due to the inflow. |
| outlet_energy_depotdt | Variation of the potential energy due to the inflow. |
| outlet_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} \). |
| outlet_r | Lower corner of the outlet square. |
| outlet_n | Velocity direction of the generated particles. |
| N | Number of particles. |