peclet.voro 1.0.4
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
peclet::voro::fv::detail::PeriodicVertexIds< Real > Struct Template Reference

#include <polymesh.hpp>

Public Member Functions

 PeriodicVertexIds (const Real L_[3], Real quantum_, int N)
 
int operator() (PolyMesh< Real > &m, Real x, Real y, Real z)
 The id of the vertex at (x, y, z), appended to m.points if it is new.
 

Static Public Member Functions

static long long wrapq (long long v, long long m)
 

Public Attributes

std::unordered_map< VertexKey, int, VertexKeyHash > vmap
 
long long M [3]
 
Real quantum
 
const Real * L
 

Detailed Description

template<class Real>
struct peclet::voro::fv::detail::PeriodicVertexIds< Real >

Periodic vertex numbering of a PolyMesh: vertices are shared by quantised world position, and the keys are PERIODIC (the same vertex seen from a cell across the box boundary is offset by L).

Constructor & Destructor Documentation

◆ PeriodicVertexIds()

template<class Real >
peclet::voro::fv::detail::PeriodicVertexIds< Real >::PeriodicVertexIds ( const Real  L_[3],
Real  quantum_,
int  N 
)
inline

Member Function Documentation

◆ operator()()

template<class Real >
int peclet::voro::fv::detail::PeriodicVertexIds< Real >::operator() ( PolyMesh< Real > &  m,
Real  x,
Real  y,
Real  z 
)
inline

The id of the vertex at (x, y, z), appended to m.points if it is new.

◆ wrapq()

template<class Real >
static long long peclet::voro::fv::detail::PeriodicVertexIds< Real >::wrapq ( long long  v,
long long  m 
)
inlinestatic

Member Data Documentation

◆ L

template<class Real >
const Real* peclet::voro::fv::detail::PeriodicVertexIds< Real >::L

◆ M

template<class Real >
long long peclet::voro::fv::detail::PeriodicVertexIds< Real >::M[3]

◆ quantum

template<class Real >
Real peclet::voro::fv::detail::PeriodicVertexIds< Real >::quantum

◆ vmap

template<class Real >
std::unordered_map<VertexKey, int, VertexKeyHash> peclet::voro::fv::detail::PeriodicVertexIds< Real >::vmap

The documentation for this struct was generated from the following file: