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

OpenCL tool to compute the fluid global force and moment. More...

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

Functions

__kernel void entry (__global vec *forces_f, __global vec4 *forces_m, __global int *imove, __global vec *r, __global vec *dudt, __global float *m, unsigned int N, vec g, vec forces_r)
 Tool to compute the force and moment of each particle.
 

Detailed Description

OpenCL tool to compute the fluid global force and moment.

Function Documentation

◆ entry()

__kernel void entry ( __global vec forces_f,
__global vec4 forces_m,
__global int *  imove,
__global vec r,
__global vec dudt,
__global float *  m,
unsigned int  N,
vec  g,
vec  forces_r 
)

Tool to compute the force and moment of each particle.

In this approach, since the global force and motion is looked for, the force is computed as: \($ f_a = - m_a \cdot \left( \frac{d \mathbf{u}}{d t} - \mathbf{g} \right) \)$ And the moment as: \($ f_a = - m_a \cdot \mathbf{r}_0 \times \left( \frac{d \mathbf{u}}{d t} - \mathbf{g} \right) \)$

Parameters
forces_fForce of each particle to be computed [N].
forces_mMoment of each particle to be computed [N \( \cdot \) m].
imoveMoving flags.
  • imove > 0 for regular fluid particles.
  • imove = 0 for sensors.
  • imove < 0 for boundary elements/particles.
rPosition \( \mathbf{r} \).
dudtVelocity rate of change \( \frac{d \mathbf{u}}{d t} \).
mMass \( m \).
NNumber of particles.
gGravity acceleration \( \mathbf{g} \).
forces_rPoint with respect the moments are computed \( \mathbf{r}_0 \).