peclet.voro 1.0.4
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
peclet::voro::pybind Namespace Reference

Namespaces

namespace  defaults
 

Classes

class  Flow
 
struct  FlowDiagnostics
 
struct  InterfaceResult
 
struct  OptimizeResult
 
struct  PoreReconstructor
 
struct  SceneHolder
 
class  Sim
 
struct  SimDiagnostics
 
class  Tess
 
struct  TessDiagnostics
 

Typedefs

using NoSdfT = peclet::voro::NoSdf
 
using SceneT = peclet::voro::SdfScene< real_t >
 
using Mem = peclet::core::MemSpace
 
template<bool W, class S >
using MT = peclet::voro::MovingTessellation< real_t, defaults::kMaxPlanes, defaults::kMaxTriangles, W, S >
 
using MtVariant = std::variant< MT< false, NoSdfT >, MT< true, NoSdfT >, MT< false, SceneT >, MT< true, SceneT > >
 
using PoreCell = peclet::voro::ConvexCell< real_t, defaults::kPoreMaxPlanes, defaults::kPoreMaxTriangles >
 
using HView = Kokkos::View< real_t *, Kokkos::HostSpace >
 
using HostSpheresSdf = peclet::voro::SdfSpheres< real_t, Kokkos::HostSpace >
 

Functions

const char * doc (std::string s)
 
std::string fmt (double v)
 
std::string fmt (int v)
 
std::vector< real_t > flatten3 (nb::ndarray< real_t, nb::c_contig > a)
 
std::vector< real_t > flatten1 (nb::ndarray< real_t, nb::c_contig > a)
 
real_t cubicExtent (std::array< real_t, 3 > e, const char *fn)
 
SceneHolder makeSceneHolder (nb::ndarray< int, nb::c_contig > node_ints, nb::ndarray< real_t, nb::c_contig > node_reals, int root, real_t grad_h)
 
void checkDomain (const char *cls, std::array< real_t, 3 > extent, std::array< real_t, 3 > origin, std::array< bool, 3 > periodic)
 
bool parseWallMode (const std::string &mode)
 
nb::ndarray< nb::numpy, real_t > toNumpy3 (std::vector< real_t > v)
 
nb::ndarray< nb::numpy, real_t > toNumpy1 (std::vector< real_t > v)
 
void bindOptimizers (nb::module_ &m)
 
void bindPore (nb::module_ &m)
 
void bindTessellation (nb::module_ &m)
 
void bindFlow (nb::module_ &m)
 
void bindSimulation (nb::module_ &m)
 
peclet::voro::Precond parseMethod (const std::string &m, const char *fn)
 
OptimizeResult makeOptimizeResult (std::vector< real_t > pos, std::optional< std::vector< real_t > > w, const peclet::voro::OtResult &R)
 
nb::dict repairStatsDict (const peclet::voro::RepairStats &st)
 
peclet::voro::SdfSpheres< real_t > makeSpheresSdf (nb::ndarray< real_t, nb::c_contig > centers, nb::ndarray< real_t, nb::c_contig > radii, real_t L, DView &cenHold, DView &radHold)
 
HostSpheresSdf makeSpheresSdfHost (nb::ndarray< real_t, nb::c_contig > centers, nb::ndarray< real_t, nb::c_contig > radii, real_t L, HView &cenHold, HView &radHold)
 

Variables

constexpr const char * kWallModeList = "'exact', 'skin'"
 
constexpr const char * kMethodList = "'jacobi', 'colored_gs', 'graphamg', 'steepest'"
 
constexpr const char * kLayoutList = "'collocated', 'covolume'"
 

Typedef Documentation

◆ HostSpheresSdf

◆ HView

using peclet::voro::pybind::HView = typedef Kokkos::View<real_t*, Kokkos::HostSpace>

◆ Mem

using peclet::voro::pybind::Mem = typedef peclet::core::MemSpace

◆ MT

template<bool W, class S >
using peclet::voro::pybind::MT = typedef peclet::voro::MovingTessellation<real_t, defaults::kMaxPlanes, defaults::kMaxTriangles, W, S>

◆ MtVariant

using peclet::voro::pybind::MtVariant = typedef std::variant<MT<false, NoSdfT>, MT<true, NoSdfT>, MT<false, SceneT>, MT<true, SceneT> >

◆ NoSdfT

◆ PoreCell

using peclet::voro::pybind::PoreCell = typedef peclet::voro::ConvexCell<real_t, defaults::kPoreMaxPlanes, defaults::kPoreMaxTriangles>

◆ SceneT

Function Documentation

◆ bindFlow()

void peclet::voro::pybind::bindFlow ( nb::module_ &  m)

◆ bindOptimizers()

void peclet::voro::pybind::bindOptimizers ( nb::module_ &  m)

◆ bindPore()

void peclet::voro::pybind::bindPore ( nb::module_ &  m)

◆ bindSimulation()

void peclet::voro::pybind::bindSimulation ( nb::module_ &  m)

◆ bindTessellation()

void peclet::voro::pybind::bindTessellation ( nb::module_ &  m)

◆ checkDomain()

void peclet::voro::pybind::checkDomain ( const char *  cls,
std::array< real_t, 3 >  extent,
std::array< real_t, 3 >  origin,
std::array< bool, 3 >  periodic 
)
inline

◆ cubicExtent()

real_t peclet::voro::pybind::cubicExtent ( std::array< real_t, 3 >  e,
const char *  fn 
)
inline

◆ doc()

const char * peclet::voro::pybind::doc ( std::string  s)
inline

◆ flatten1()

std::vector< real_t > peclet::voro::pybind::flatten1 ( nb::ndarray< real_t, nb::c_contig >  a)
inline

◆ flatten3()

std::vector< real_t > peclet::voro::pybind::flatten3 ( nb::ndarray< real_t, nb::c_contig >  a)
inline

◆ fmt() [1/2]

std::string peclet::voro::pybind::fmt ( double  v)
inline

◆ fmt() [2/2]

std::string peclet::voro::pybind::fmt ( int  v)
inline

◆ makeOptimizeResult()

OptimizeResult peclet::voro::pybind::makeOptimizeResult ( std::vector< real_t >  pos,
std::optional< std::vector< real_t > >  w,
const peclet::voro::OtResult &  R 
)
inline

◆ makeSceneHolder()

SceneHolder peclet::voro::pybind::makeSceneHolder ( nb::ndarray< int, nb::c_contig >  node_ints,
nb::ndarray< real_t, nb::c_contig >  node_reals,
int  root,
real_t  grad_h 
)
inline

◆ makeSpheresSdf()

peclet::voro::SdfSpheres< real_t > peclet::voro::pybind::makeSpheresSdf ( nb::ndarray< real_t, nb::c_contig >  centers,
nb::ndarray< real_t, nb::c_contig >  radii,
real_t  L,
DView &  cenHold,
DView &  radHold 
)
inline

◆ makeSpheresSdfHost()

HostSpheresSdf peclet::voro::pybind::makeSpheresSdfHost ( nb::ndarray< real_t, nb::c_contig >  centers,
nb::ndarray< real_t, nb::c_contig >  radii,
real_t  L,
HView &  cenHold,
HView &  radHold 
)
inline

◆ parseMethod()

peclet::voro::Precond peclet::voro::pybind::parseMethod ( const std::string &  m,
const char *  fn 
)
inline

◆ parseWallMode()

bool peclet::voro::pybind::parseWallMode ( const std::string &  mode)
inline

◆ repairStatsDict()

nb::dict peclet::voro::pybind::repairStatsDict ( const peclet::voro::RepairStats &  st)
inline

◆ toNumpy1()

nb::ndarray< nb::numpy, real_t > peclet::voro::pybind::toNumpy1 ( std::vector< real_t >  v)
inline

◆ toNumpy3()

nb::ndarray< nb::numpy, real_t > peclet::voro::pybind::toNumpy3 ( std::vector< real_t >  v)
inline

Variable Documentation

◆ kLayoutList

constexpr const char* peclet::voro::pybind::kLayoutList = "'collocated', 'covolume'"
constexpr

◆ kMethodList

constexpr const char* peclet::voro::pybind::kMethodList = "'jacobi', 'colored_gs', 'graphamg', 'steepest'"
constexpr

◆ kWallModeList

constexpr const char* peclet::voro::pybind::kWallModeList = "'exact', 'skin'"
constexpr