AQUAgpusph 4.1.2
|
Splitting particles methods. More...
#include "resources/Scripts/types/types.h"
Macros | |
#define | N_DAUGHTER 8 |
#define | M_ITERS 10 |
Functions | |
__kernel void | check_split (__global const int *imove, __global const float *m, __global const int *miter, __global const unsigned int *ilevel, __global const unsigned int *level, __global unsigned int *isplit, unsigned int N) |
Check and store wether a particle should become split or not. | |
__kernel void | set_isplit_in (__global const unsigned int *isplit, __global unsigned int *isplit_in, unsigned int N) |
Create a copy of isplit, where everything is 0 except the seeds, which take the value 1. Such array can be used to count the number of new particles to become generated. | |
__kernel void | generate (__global int *imove, __global int *iset, __global unsigned int *isplit, __global unsigned int *split_invperm, __global unsigned int *ilevel, __global unsigned int *level, __global float *m0, __global int *miter, __global float *m, __global vec *r, __global vec *u, __global vec *dudt, __global float *rho, __global float *drhodt, unsigned int N, unsigned int nbuffer) |
Split a particle in a set of daughter particles. | |
Splitting particles methods.