Feellgood
Classes | Typedefs | Functions | Variables
scal_fmm Namespace Reference

Classes

class  fmm
 

Typedefs

typedef double FReal
 
typedef FTypedRotationCell< FReal, P > CellClass
 
typedef FP2PParticleContainerIndexed< FReal > ContainerClass
 
typedef FTypedLeaf< FReal, ContainerClass > LeafClass
 
typedef FOctree< FReal, CellClass, ContainerClass, LeafClass > OctreeClass
 
typedef FRotationKernel< FReal, CellClass, ContainerClass, P > KernelClass
 
typedef FFmmAlgorithmThreadTsm< OctreeClass, CellClass, ContainerClass, KernelClass, LeafClass > FmmClass
 

Functions

const FPoint< FReal > boxCenter (0., 0., 0.)
 
uint64_t mortonKey (const Eigen::Ref< const Eigen::Vector3d > p, const double boxWidth)
 
int octreeHeight (const std::vector< Eigen::Vector3d > &pos, const double boxWidth)
 

Variables

const int P = 9
 
const int SizeSubLevels = 3
 
const double boxWidth = 2.01
 
const int MinLevels = 3
 
const int MaxLevels = 10
 
const size_t MinParticlesPerLeaf = 150
 

Detailed Description

to grab altogether the templates and functions using scalfmm for the computation of the demag field

Typedef Documentation

◆ CellClass

typedef FTypedRotationCell<FReal, P> scal_fmm::CellClass

convenient typedef for the definition of cell type in scalfmm

◆ ContainerClass

typedef FP2PParticleContainerIndexed<FReal> scal_fmm::ContainerClass

convenient typedef for the definition of container for scalfmm

◆ FmmClass

convenient typedef for handling altogether the differents scalfmm object templates used in feellgood

◆ FReal

typedef double scal_fmm::FReal

parameter of scalfmm templates, all computations are made in double precision

◆ KernelClass

typedef FRotationKernel<FReal, CellClass, ContainerClass, P> scal_fmm::KernelClass

convenient typedef for the kernel for scalfmm

◆ LeafClass

convenient typedef for the definition of leaf for scalfmm

◆ OctreeClass

convenient typedef for the definition of the octree for scalfmm

Function Documentation

◆ boxCenter()

const FPoint<FReal> scal_fmm::boxCenter ( 0.  ,
0.  ,
0.   
)

center of the bounding box

◆ mortonKey()

uint64_t scal_fmm::mortonKey ( const Eigen::Ref< const Eigen::Vector3d >  p,
const double  boxWidth 
)
inline

Morton key of point p of the cubic box of width boxWidth centered on the origin, at depth MaxLevels-1 (2^(MaxLevels-1) cells per direction). The key of the cell containing p at depth h-1 (the leaves of an octree of height h) is mortonKey(p) >> 3*(MaxLevels-h).

Parameters
[in]p
[in]boxWidth

◆ octreeHeight()

int scal_fmm::octreeHeight ( const std::vector< Eigen::Vector3d > &  pos,
const double  boxWidth 
)
inline

height of the octree for the particles of positions pos, in the cubic box of width boxWidth centered on the origin: the deepest octree whose non-empty leaves contain on average at least MinParticlesPerLeaf particles, clamped to [MinLevels, MaxLevels]

Parameters
[in]pos
[in]boxWidth

Variable Documentation

◆ boxWidth

const double scal_fmm::boxWidth = 2.01

bounding box max dimension

◆ MaxLevels

const int scal_fmm::MaxLevels = 10

maximal height of the octree

◆ MinLevels

const int scal_fmm::MinLevels = 3

minimal height of the octree

◆ MinParticlesPerLeaf

const size_t scal_fmm::MinParticlesPerLeaf = 150

minimal mean number of particles per non-empty leaf

◆ P

const int scal_fmm::P = 9

truncation of the spherical harmonics series

◆ SizeSubLevels

const int scal_fmm::SizeSubLevels = 3

maximal size of the sub levels