AQUAgpusph 5.0.4
|
Tool to compute the power energy components. More...
#include "resources/Scripts/types/types.h"
Functions | |
__kernel void | fluid (__global float *dekdt, __global float *depdt, __global float *devdt, __global float *decdt, __global float *deddt, const __global uint *iset, const __global int *imove, const __global vec *u, const __global float *rho, const __global float *m, const __global float *p, const __global vec *grad_p, const __global vec *lap_u, const __global float *div_u, const __global float *lap_p, __constant float *refd, __constant float *visc_dyn, __constant float *delta, usize N, vec g, float dt) |
Tool to compute the power components due to the interactions between fluid particles, i.e. excluding the effect of the boundaries. | |
__kernel void | bound (__global float *desdt, const __global uint *iset, 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, const __global float *dekdt, const __global float *decdt, usize N) |
Tool to compute the power due to the interactions of fluid particles with the boundaries. |
Tool to compute the power energy components.
__kernel void bound | ( | __global float * | desdt, |
const __global uint * | iset, | ||
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, | ||
const __global float * | dekdt, | ||
const __global float * | decdt, | ||
usize | N ) |
Tool to compute the power due to the interactions of fluid particles with the boundaries.
desdt | power due to the interactions of fluid particles with the boundaries. |
iset | Set of particles index. |
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} \). |
dekdt | Variation of the kinetic energy due to the interactions between fluid particles: \( \frac{dE^{kin}_a}{dt} = m_a \mathbf{u}_a \cdot \frac{d \mathbf{u}_a}{dt}\) |
decdt | Variation of the compressibility energy due to the interactions between fluid particles: \( \frac{dE^{com}_a}{dt} = \frac{m_a}{\rho_a} \frac{p_a}{\rho_a} \frac{d \rho_a}{dt} \) |
N | Number of particles. |
__kernel void fluid | ( | __global float * | dekdt, |
__global float * | depdt, | ||
__global float * | devdt, | ||
__global float * | decdt, | ||
__global float * | deddt, | ||
const __global uint * | iset, | ||
const __global int * | imove, | ||
const __global vec * | u, | ||
const __global float * | rho, | ||
const __global float * | m, | ||
const __global float * | p, | ||
const __global vec * | grad_p, | ||
const __global vec * | lap_u, | ||
const __global float * | div_u, | ||
const __global float * | lap_p, | ||
__constant float * | refd, | ||
__constant float * | visc_dyn, | ||
__constant float * | delta, | ||
usize | N, | ||
vec | g, | ||
float | dt ) |
Tool to compute the power components due to the interactions between fluid particles, i.e. excluding the effect of the boundaries.
dekdt | Variation of the kinetic energy: \( \frac{dE^{kin}_a}{dt} = m_a \mathbf{u}_a \cdot \frac{d \mathbf{u}_a}{dt}\) |
depdt | Variation of the potential energy: \( \frac{dE^{pot}_a}{dt} = - m_a \mathbf{g} \cdot \mathbf{u}_a\) |
devdt | Viscous dissipation function: \( \frac{dE^{\mu}_a}{dt} = - \mu m_a \mathbf{u}_a \cdot \frac{\Delta \mathbf{u}}{rho} \) |
decdt | 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} \) |
deddt | Energy due tot he compressibility dissipated by the \(\delta\)-SPH term: \( \frac{dE^{\delta}_a}{dt} = - \delta \Delta t \frac{m_a}{\rho_0} \frac{p_a}{\rho_a^2} \Delta p \) |
iset | Set of particles index. |
imove | Moving flags.
|
u | Velocity \( \mathbf{u} \). |
rho | Density \( \rho \). |
m | Mass \( m \). |
p | Pressure \( p \). |
grad_p | Pressure gradient \( \frac{\nabla p}{rho} \). |
lap_u | Velocity laplacian \( \frac{\Delta \mathbf{u}}{rho} \). |
div_u | Velocity divergence \( \rho \nabla \cdot \mathbf{u} \). |
lap_p | Pressure laplacian \( \Delta p \). |
refd | Density of reference of the fluid \( \rho_0 \). |
visc_dyn | Dynamic viscosity \( \mu \). |
delta | Diffusive term \( \delta \) multiplier. |
N | Number of particles. |
g | Gravity acceleration \( \mathbf{g} \). |
dt | Time step \( \Delta t \). |