VTK-m  2.0
Public Types | Public Member Functions | Public Attributes | List of all members
vtkm::worklet::cosmotools::CosmoTools< T, StorageType > Class Template Reference

#include <CosmoTools.h>

Public Types

using DeviceAlgorithm = vtkm::cont::Algorithm
 
using LocationType = typename vtkm::cont::ArrayHandle< T, StorageType >
 

Public Member Functions

 CosmoTools (const vtkm::Id NParticles, const T mass, const vtkm::Id pmin, const T bb, vtkm::cont::ArrayHandle< T, StorageType > &X, vtkm::cont::ArrayHandle< T, StorageType > &Y, vtkm::cont::ArrayHandle< T, StorageType > &Z)
 
 CosmoTools (const vtkm::Id NParticles, const T mass, vtkm::cont::ArrayHandle< T, StorageType > &X, vtkm::cont::ArrayHandle< T, StorageType > &Y, vtkm::cont::ArrayHandle< T, StorageType > &Z)
 
 ~CosmoTools ()
 
void HaloFinder (vtkm::cont::ArrayHandle< vtkm::Id > &resultHaloId, vtkm::cont::ArrayHandle< vtkm::Id > &resultMBP, vtkm::cont::ArrayHandle< T > &resultPot)
 
void BinParticlesAll (vtkm::cont::ArrayHandle< vtkm::Id > &partId, vtkm::cont::ArrayHandle< vtkm::Id > &binId, vtkm::cont::ArrayHandle< vtkm::Id > &leftNeighbor, vtkm::cont::ArrayHandle< vtkm::Id > &rightNeighbor)
 
void MBPCenterFindingByHalo (vtkm::cont::ArrayHandle< vtkm::Id > &partId, vtkm::cont::ArrayHandle< vtkm::Id > &haloId, vtkm::cont::ArrayHandle< vtkm::Id > &mbpId, vtkm::cont::ArrayHandle< T > &minPotential)
 
vtkm::Id MBPCenterFinderNxN (T *nxnPotential)
 
vtkm::Id MBPCenterFinderMxN (T *mxnPotential)
 
void BinParticlesHalo (vtkm::cont::ArrayHandle< vtkm::Id > &partId, vtkm::cont::ArrayHandle< vtkm::Id > &binId, vtkm::cont::ArrayHandle< vtkm::Id > &uniqueBins, vtkm::cont::ArrayHandle< vtkm::Id > &partPerBin, vtkm::cont::ArrayHandle< vtkm::Id > &particleOffset, vtkm::cont::ArrayHandle< vtkm::Id > &binX, vtkm::cont::ArrayHandle< vtkm::Id > &binY, vtkm::cont::ArrayHandle< vtkm::Id > &binZ)
 
void MBPCenterFindingByKey (vtkm::cont::ArrayHandle< vtkm::Id > &keyId, vtkm::cont::ArrayHandle< vtkm::Id > &partId, vtkm::cont::ArrayHandle< T > &minPotential)
 

Public Attributes

const vtkm::Id NUM_NEIGHBORS = 9
 
const vtkm::Id nParticles
 
const T particleMass
 
const vtkm::Id minPartPerHalo
 
const T linkLen
 
vtkm::Id numBinsX
 
vtkm::Id numBinsY
 
vtkm::Id numBinsZ
 
LocationTypexLoc
 
LocationTypeyLoc
 
LocationTypezLoc
 

Member Typedef Documentation

◆ DeviceAlgorithm

template<typename T , typename StorageType >
using vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::DeviceAlgorithm = vtkm::cont::Algorithm

◆ LocationType

template<typename T , typename StorageType >
using vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::LocationType = typename vtkm::cont::ArrayHandle<T, StorageType>

Constructor & Destructor Documentation

◆ CosmoTools() [1/2]

template<typename T , typename StorageType >
vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::CosmoTools ( const vtkm::Id  NParticles,
const T  mass,
const vtkm::Id  pmin,
const T  bb,
vtkm::cont::ArrayHandle< T, StorageType > &  X,
vtkm::cont::ArrayHandle< T, StorageType > &  Y,
vtkm::cont::ArrayHandle< T, StorageType > &  Z 
)

◆ CosmoTools() [2/2]

template<typename T , typename StorageType >
vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::CosmoTools ( const vtkm::Id  NParticles,
const T  mass,
vtkm::cont::ArrayHandle< T, StorageType > &  X,
vtkm::cont::ArrayHandle< T, StorageType > &  Y,
vtkm::cont::ArrayHandle< T, StorageType > &  Z 
)

◆ ~CosmoTools()

template<typename T , typename StorageType >
vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::~CosmoTools ( )
inline

Member Function Documentation

◆ BinParticlesAll()

template<typename T , typename StorageType >
void vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::BinParticlesAll ( vtkm::cont::ArrayHandle< vtkm::Id > &  partId,
vtkm::cont::ArrayHandle< vtkm::Id > &  binId,
vtkm::cont::ArrayHandle< vtkm::Id > &  leftNeighbor,
vtkm::cont::ArrayHandle< vtkm::Id > &  rightNeighbor 
)

◆ BinParticlesHalo()

template<typename T , typename StorageType >
void vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::BinParticlesHalo ( vtkm::cont::ArrayHandle< vtkm::Id > &  partId,
vtkm::cont::ArrayHandle< vtkm::Id > &  binId,
vtkm::cont::ArrayHandle< vtkm::Id > &  uniqueBins,
vtkm::cont::ArrayHandle< vtkm::Id > &  partPerBin,
vtkm::cont::ArrayHandle< vtkm::Id > &  particleOffset,
vtkm::cont::ArrayHandle< vtkm::Id > &  binX,
vtkm::cont::ArrayHandle< vtkm::Id > &  binY,
vtkm::cont::ArrayHandle< vtkm::Id > &  binZ 
)

◆ HaloFinder()

template<typename T , typename StorageType >
void vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::HaloFinder ( vtkm::cont::ArrayHandle< vtkm::Id > &  resultHaloId,
vtkm::cont::ArrayHandle< vtkm::Id > &  resultMBP,
vtkm::cont::ArrayHandle< T > &  resultPot 
)

◆ MBPCenterFinderMxN()

template<typename T , typename StorageType >
vtkm::Id vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::MBPCenterFinderMxN ( T *  mxnPotential)

◆ MBPCenterFinderNxN()

template<typename T , typename StorageType >
vtkm::Id vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::MBPCenterFinderNxN ( T *  nxnPotential)

◆ MBPCenterFindingByHalo()

template<typename T , typename StorageType >
void vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::MBPCenterFindingByHalo ( vtkm::cont::ArrayHandle< vtkm::Id > &  partId,
vtkm::cont::ArrayHandle< vtkm::Id > &  haloId,
vtkm::cont::ArrayHandle< vtkm::Id > &  mbpId,
vtkm::cont::ArrayHandle< T > &  minPotential 
)

◆ MBPCenterFindingByKey()

template<typename T , typename StorageType >
void vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::MBPCenterFindingByKey ( vtkm::cont::ArrayHandle< vtkm::Id > &  keyId,
vtkm::cont::ArrayHandle< vtkm::Id > &  partId,
vtkm::cont::ArrayHandle< T > &  minPotential 
)

Member Data Documentation

◆ linkLen

template<typename T , typename StorageType >
const T vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::linkLen

◆ minPartPerHalo

template<typename T , typename StorageType >
const vtkm::Id vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::minPartPerHalo

◆ nParticles

template<typename T , typename StorageType >
const vtkm::Id vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::nParticles

◆ NUM_NEIGHBORS

template<typename T , typename StorageType >
const vtkm::Id vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::NUM_NEIGHBORS = 9

◆ numBinsX

template<typename T , typename StorageType >
vtkm::Id vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::numBinsX

◆ numBinsY

template<typename T , typename StorageType >
vtkm::Id vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::numBinsY

◆ numBinsZ

template<typename T , typename StorageType >
vtkm::Id vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::numBinsZ

◆ particleMass

template<typename T , typename StorageType >
const T vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::particleMass

◆ xLoc

template<typename T , typename StorageType >
LocationType& vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::xLoc

◆ yLoc

template<typename T , typename StorageType >
LocationType& vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::yLoc

◆ zLoc

template<typename T , typename StorageType >
LocationType& vtkm::worklet::cosmotools::CosmoTools< T, StorageType >::zLoc

The documentation for this class was generated from the following files: