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

Tool to compute the energy substracted from the system by the outlet. More...

#include "resources/Scripts/types/types.h"
Include dependency graph for OutletEnergy.cl:

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, unsigned int N)
 Tool to compute the energy substracted from the system by the outlet.
 

Detailed Description

Tool to compute the energy substracted from the system by the outlet.

Function Documentation

◆ entry()

__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,
unsigned int  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.

Parameters
outlet_energy_dekindtVariation of the kinetic energy due to the inflow.
outlet_energy_depotdtVariation of the potential energy due to the inflow.
outlet_energy_decomdtVariation of the compressibility energy due to the inflow.
fluid_energy_dekindtVariation 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_depotdtVariation 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_decomdtVariation 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} \)
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
rPosition \( \mathbf{r} \).
outlet_rLower corner of the outlet square.
outlet_nVelocity direction of the generated particles.
NNumber of particles.