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

Tool to compute the energy injected into the system by the inlet. More...

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

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, unsigned int N)
 Tool to compute the energy injected into the system by the inlet.
 

Detailed Description

Tool to compute the energy injected into the system by the inlet.

Function Documentation

◆ entry()

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

Parameters
inlet_energy_dekindtVariation of the kinetic energy due to the inflow.
inlet_energy_depotdtVariation of the potential energy due to the inflow.
inlet_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} \).
inlet_rLower corner of the inlet square.
inlet_nVelocity direction of the generated particles.
NNumber of particles.