SOFA plugin: SofaOpenCL  master
Open source framework for multi-physics simuation
sofa::component::forcefield::SPHFluidForceFieldInternalData< gpu::opencl::OpenCLVectorTypes< TCoord, TDeriv, TReal > > Class Template Reference

#include <OpenCLSPHFluidForceField.h>

Public Attributes

gpu::opencl::GPUSPHFluid< Realparams
 
gpu::opencl::OpenCLVector< type::Vec4fpos4
 

Public Member Functions

void fillParams (Main *m, int kernelType, double kFactor=1.0, double bFactor=1.0)
 
void Kernels_computeDensity (int gsize, const gpu::opencl::_device_pointer cells, const gpu::opencl::_device_pointer cellGhost, gpu::opencl::_device_pointer pos4, const gpu::opencl::_device_pointer x)
 
void Kernels_addForce (int gsize, const gpu::opencl::_device_pointer cells, const gpu::opencl::_device_pointer cellGhost, gpu::opencl::_device_pointer f, const gpu::opencl::_device_pointer pos4, const gpu::opencl::_device_pointer vel)
 
void Kernels_addDForce (int gsize, const gpu::opencl::_device_pointer cells, const gpu::opencl::_device_pointer cellGhost, gpu::opencl::_device_pointer f, const gpu::opencl::_device_pointer pos4, const gpu::opencl::_device_pointer dx, const gpu::opencl::_device_pointer vel)
 

Attribute details

◆ params

template<class TCoord , class TDeriv , class TReal >
gpu::opencl::GPUSPHFluid<Real> sofa::component::forcefield::SPHFluidForceFieldInternalData< gpu::opencl::OpenCLVectorTypes< TCoord, TDeriv, TReal > >::params

◆ pos4

template<class TCoord , class TDeriv , class TReal >
gpu::opencl::OpenCLVector<type::Vec4f> sofa::component::forcefield::SPHFluidForceFieldInternalData< gpu::opencl::OpenCLVectorTypes< TCoord, TDeriv, TReal > >::pos4

Function details

◆ fillParams()

template<class TCoord , class TDeriv , class TReal >
void sofa::component::forcefield::SPHFluidForceFieldInternalData< gpu::opencl::OpenCLVectorTypes< TCoord, TDeriv, TReal > >::fillParams ( Main m,
int  kernelType,
double  kFactor = 1.0,
double  bFactor = 1.0 
)
inline

◆ Kernels_addDForce()

template<class TCoord , class TDeriv , class TReal >
void sofa::component::forcefield::SPHFluidForceFieldInternalData< gpu::opencl::OpenCLVectorTypes< TCoord, TDeriv, TReal > >::Kernels_addDForce ( int  gsize,
const gpu::opencl::_device_pointer  cells,
const gpu::opencl::_device_pointer  cellGhost,
gpu::opencl::_device_pointer  f,
const gpu::opencl::_device_pointer  pos4,
const gpu::opencl::_device_pointer  dx,
const gpu::opencl::_device_pointer  vel 
)

◆ Kernels_addForce()

template<class TCoord , class TDeriv , class TReal >
void sofa::component::forcefield::SPHFluidForceFieldInternalData< gpu::opencl::OpenCLVectorTypes< TCoord, TDeriv, TReal > >::Kernels_addForce ( int  gsize,
const gpu::opencl::_device_pointer  cells,
const gpu::opencl::_device_pointer  cellGhost,
gpu::opencl::_device_pointer  f,
const gpu::opencl::_device_pointer  pos4,
const gpu::opencl::_device_pointer  vel 
)

◆ Kernels_computeDensity()

template<class TCoord , class TDeriv , class TReal >
void sofa::component::forcefield::SPHFluidForceFieldInternalData< gpu::opencl::OpenCLVectorTypes< TCoord, TDeriv, TReal > >::Kernels_computeDensity ( int  gsize,
const gpu::opencl::_device_pointer  cells,
const gpu::opencl::_device_pointer  cellGhost,
gpu::opencl::_device_pointer  pos4,
const gpu::opencl::_device_pointer  x 
)