AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Macros | Functions
PressureForces.cl File Reference

Tool to compute the fluid pressure force and moment. More...

#include "resources/Scripts/types/types.h"
#include "resources/Scripts/KernelFunctions/Kernel.h"
Include dependency graph for PressureForces.cl:

Macros

#define _F_   pressureForces_f[i].XYZ
 

Functions

__kernel void entry (__global vec *pressureForces_f, __global vec4 *pressureForces_m, const __global uint *iset, const __global int *imove, const __global vec *r, const __global float *rho, const __global float *p, const __global float *m, const __global uint *icell, const __global uint *ihoc, uint N, uivec4 n_cells, unsigned int pressureForces_iset, vec pressureForces_r)
 Tool to compute the pressure force and moment for an especific body, due to the Ghost particles.
 

Detailed Description

Tool to compute the fluid pressure force and moment.

Macro Definition Documentation

◆ _F_

#define _F_   pressureForces_f[i].XYZ

Function Documentation

◆ entry()

__kernel void entry ( __global vec pressureForces_f,
__global vec4 pressureForces_m,
const __global uint *  iset,
const __global int *  imove,
const __global vec r,
const __global float *  rho,
const __global float *  p,
const __global float *  m,
const __global uint *  icell,
const __global uint *  ihoc,
uint  N,
uivec4  n_cells,
unsigned int  pressureForces_iset,
vec  pressureForces_r 
)

Tool to compute the pressure force and moment for an especific body, due to the Ghost particles.

The pressure forces is computed using the same expression than in the fluid-fluid interactions.

Parameters
pressureForces_fForce of each boundary element to be computed [N].
pressureForces_mMoment of each boundary element to be computed [N \( \cdot \) m].
isetSet of particles index.
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
rPosition \( \mathbf{r} \).
rhoDensity \( \rho \).
pPressure \( p \).
mMass \( m \).
icellCell where each particle is located.
ihocHead of chain for each cell (first particle found).
NNumber of particles.
n_cellsNumber of cells in each direction
pressureForces_isetParticles set to be computed.
pressureForces_rPoint with respect the moments are computed \( \mathbf{r}_0 \).
Here is the call graph for this function: