VM2D  1.12
Vortex methods for 2D flows simulation
wrapper.cpp File Reference

Barnes-Hut method (CUDA) for 2D vortex particles + Morton tree. More...

#include <algorithm>
#include <fstream>
#include <iostream>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include "omp.h"
#include "types.cuh"
#include "cuKernels.cuh"
Include dependency graph for wrapper.cpp:

Go to the source code of this file.

Classes

struct  BHcu::CudaCalcGab
 
struct  BHcu::CudaSorter
 

Namespaces

 BHcu
 

Functions

void BHcu::rebuildBaseTree (CUDApointers &ptrs, const int nbodies, const realVortex *vtxl, int nnodes, int order, double *timing)
 
double BHcu::memoryAllocate (CUDApointers &ptrs, int nnodes, int nbodies, int nbodiesOld, int blocks, int order)
 
double BHcu::wrapperInfluence (const realVortex *vtxl, realPoint *vell, real *epsastl, CUDApointers &ptrs, int nbodies, double *timing, real eps, real theta, size_t &nbodiesOld, int nbodiesUp, int order, size_t nAfls, size_t *nVtxs, double **ptrVtxs)
 
double BHcu::wrapperInfluenceToPoints (const realVortex *vtxl, const realVortex *pointsl, realPoint *vell, real *epsastl, CUDApointers &ptrs, bool rebuild, int nbodies, int npoints, double *timing, real eps, real theta, size_t &nbodiesOld, int nbodiesUp, int order, size_t nAfls, size_t *nVtxs, double **ptrVtxs)
 npoints - More...
 
double BHcu::wrapperInfluenceToRHS (const realVortex *dev_ptr_vt, const double *dev_ptr_pt, double *dev_ptr_rhs, double *dev_ptr_rhslin, CUDApointers &ptrs, bool rebuild, int nvt, int nTotPan, double *timingsToRHS, double theta, size_t &nbodiesOld, int nbodiesUp, int order, int scheme)
 
double BHcu::wrapperDiffusiveVelo (const realVortex *vtxl, real *i1l, realPoint *i2l, real *epsastl, CUDApointers &ptrs, bool rebuild, int nbodies, double *timing, real eps, real theta, size_t &nbodiesOld, int nbodiesUp, int order, size_t nAfls, size_t *nVtxs, double **ptrVtxs)
 

Variables

const real BHcu::IDPI = (real)0.15915494309189534
 

Detailed Description

Barnes-Hut method (CUDA) for 2D vortex particles + Morton tree.

Author
Марчевский Илья Константинович
Рятина Евгения Павловна
Колганова Александра Олеговна
Version
1.5
Date
29 августа 2023 г.

Definition in file wrapper.cpp.