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

Vanish the density varaition rate of the particles crossing the outlet infinite plane, destroying (moving out the domain) the particles far away. More...

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

Functions

__kernel void rates (__global int *imove, __global unsigned int *iset, __global vec *r, __global vec *u, __global float *rho, __global float *p, __global vec *dudt, __global vec *dudt_in, __global float *drhodt, __global float *drhodt_in, __constant float *refd, unsigned int N, float cs, float p0, vec g, vec outlet_r, vec outlet_n, float outlet_U, vec outlet_rFS)
 Outlet boundary condition, which is consisting into vanishing the density variation rate of the particles tresspassing the outlet plane.
 
__kernel void feed (__global int *imove, __global vec *r, unsigned int N, vec domain_max, vec outlet_r, vec outlet_n)
 Buffer particles generation from the particles far away to the outlet plane, which can not therefore interact with the fluid.
 

Detailed Description

Vanish the density varaition rate of the particles crossing the outlet infinite plane, destroying (moving out the domain) the particles far away.

Function Documentation

◆ feed()

__kernel void feed ( __global int *  imove,
__global vec r,
unsigned int  N,
vec  domain_max,
vec  outlet_r,
vec  outlet_n 
)

Buffer particles generation from the particles far away to the outlet plane, which can not therefore interact with the fluid.

Parameters
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
rPosition \( \mathbf{r} \).
NNumber of particles.
domain_maxMaximum point of the computational domain.
outlet_rLower corner of the outlet square.
outlet_n= Velocity direction of the generated particles.

◆ rates()

__kernel void rates ( __global int *  imove,
__global unsigned int *  iset,
__global vec r,
__global vec u,
__global float *  rho,
__global float *  p,
__global vec dudt,
__global vec dudt_in,
__global float *  drhodt,
__global float *  drhodt_in,
__constant float *  refd,
unsigned int  N,
float  cs,
float  p0,
vec  g,
vec  outlet_r,
vec  outlet_n,
float  outlet_U,
vec  outlet_rFS 
)

Outlet boundary condition, which is consisting into vanishing the density variation rate of the particles tresspassing the outlet plane.

Parameters
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
isetSet of particles index.
rPosition \( \mathbf{r} \).
uVelocity \( \mathbf{u} \).
rhoDensity \( \rho \).
pPressure \( p \).
dudtVelocity rate of change \( \frac{d \mathbf{u}}{d t} \).
dudt_inPrev velocity rate of change \( \frac{d \mathbf{u}}{d t} \).
drhodtDensity rate of change \( \frac{d \rho}{d t} \).
drhodt_inPrev density rate of change \( \frac{d \rho}{d t} \).
refdDensity of reference of the fluid \( \rho_0 \).
NNumber of particles.
csSpeed of sound \( c_s \).
p0Background pressure \( p_0 \).
gGravity acceleration \( \mathbf{g} \).
outlet_rLower corner of the outlet square.
outlet_n= Velocity direction of the generated particles.
outlet_U= Constant outlet velocity magnitude
outlet_rFSThe point where the pressure is the reference one (0 Pa).