Vanish the density varaition rate of the particles crossing the outlet infinite plane, destroying (moving out the domain) the particles far away.
More...
|
__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.
|
|
Vanish the density varaition rate of the particles crossing the outlet infinite plane, destroying (moving out the domain) the particles far away.
◆ 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
-
imove | Moving flags.
- imove > 0 for regular fluid particles.
- imove = 0 for sensors.
- imove < 0 for boundary elements/particles.
|
r | Position \( \mathbf{r} \). |
N | Number of particles. |
domain_max | Maximum point of the computational domain. |
outlet_r | Lower 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
-
imove | Moving flags.
- imove > 0 for regular fluid particles.
- imove = 0 for sensors.
- imove < 0 for boundary elements/particles.
|
iset | Set of particles index. |
r | Position \( \mathbf{r} \). |
u | Velocity \( \mathbf{u} \). |
rho | Density \( \rho \). |
p | Pressure \( p \). |
dudt | Velocity rate of change \( \frac{d \mathbf{u}}{d t} \). |
dudt_in | Prev velocity rate of change \( \frac{d \mathbf{u}}{d t} \). |
drhodt | Density rate of change \( \frac{d \rho}{d t} \). |
drhodt_in | Prev density rate of change \( \frac{d \rho}{d t} \). |
refd | Density of reference of the fluid \( \rho_0 \). |
N | Number of particles. |
cs | Speed of sound \( c_s \). |
p0 | Background pressure \( p_0 \). |
g | Gravity acceleration \( \mathbf{g} \). |
outlet_r | Lower corner of the outlet square. |
outlet_n | = Velocity direction of the generated particles. |
outlet_U | = Constant outlet velocity magnitude |
outlet_rFS | The point where the pressure is the reference one (0 Pa). |