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

Boundary integral term computation. (See Aqua::CalcServer::Boundary::DeLeffe for details) More...

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

Functions

__kernel void entry (const __global uint *iset, const __global int *imove, const __global float *shepard, __global float *rho, __global float *p, __constant float *refd, uint N, float cs, float p0)
 Set the fields for the boundary elements using the pressure interpolated by Boundary/BI/Interpolation.cl.
 

Detailed Description

Boundary integral term computation. (See Aqua::CalcServer::Boundary::DeLeffe for details)

Function Documentation

◆ entry()

__kernel void entry ( const __global uint *  iset,
const __global int *  imove,
const __global float *  shepard,
__global float *  rho,
__global float *  p,
__constant float *  refd,
uint  N,
float  cs,
float  p0 
)

Set the fields for the boundary elements using the pressure interpolated by Boundary/BI/Interpolation.cl.

Therefore the pressure value will be renormalizaed, and the density computed using the inverse of the EOS.

Parameters
isetSet of particles index.
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
shepardShepard term \( \gamma(\mathbf{x}) = \int_{\Omega} W(\mathbf{y} - \mathbf{x}) \mathrm{d}\mathbf{x} \).
rhoDensity \( \rho \).
pPressure \( p \).
refdDensity of reference of the fluid \( \rho_0 \).
NTotal number of particles and boundary elements.
csSpeed of sound \( c_s \).
p0Background pressure \( p_0 \).
See also
Boundary/BI/Interpolation.cl
Here is the call graph for this function: