peclet.voro 1.0.4
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
peclet::voro::SdfSpheres< Real, Mem > Struct Template Reference

#include <sdf.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION Real eval (Real x, Real y, Real z) const
 
KOKKOS_INLINE_FUNCTION Real gradH () const
 

Public Attributes

Kokkos::View< const Real *, Mem > cen
 
Kokkos::View< const Real *, Mem > rad
 
int n = 0
 
Real L = 0
 

Detailed Description

template<class Real, class Mem = peclet::core::MemSpace>
struct peclet::voro::SdfSpheres< Real, Mem >

Periodic UNION of solid balls: sdf(x) = min_i(|x−c_i|_minimage − r_i) (<0 inside a ball, >0 in the fluid). Device-callable; holds Views of the centres (3M, x-fastest c_{ix},c_{iy},c_{iz}) and radii (M). L > 0 ⇒ periodic min-image (L = box edge); L ≤ 0 ⇒ non-periodic. The packed-bed / pore-space wall geometry for the volume mesh optimiser. Mem is the memory space the centre / radius views live in: the device space (default) for the tessellator's kernels, Kokkos::HostSpace for a host-side caller (the pore-cell oracle).

Member Function Documentation

◆ eval()

template<class Real , class Mem = peclet::core::MemSpace>
KOKKOS_INLINE_FUNCTION Real peclet::voro::SdfSpheres< Real, Mem >::eval ( Real  x,
Real  y,
Real  z 
) const
inline

◆ gradH()

template<class Real , class Mem = peclet::core::MemSpace>
KOKKOS_INLINE_FUNCTION Real peclet::voro::SdfSpheres< Real, Mem >::gradH ( ) const
inline

Member Data Documentation

◆ cen

template<class Real , class Mem = peclet::core::MemSpace>
Kokkos::View<const Real*, Mem> peclet::voro::SdfSpheres< Real, Mem >::cen

◆ L

template<class Real , class Mem = peclet::core::MemSpace>
Real peclet::voro::SdfSpheres< Real, Mem >::L = 0

◆ n

template<class Real , class Mem = peclet::core::MemSpace>
int peclet::voro::SdfSpheres< Real, Mem >::n = 0

◆ rad

template<class Real , class Mem = peclet::core::MemSpace>
Kokkos::View<const Real*, Mem> peclet::voro::SdfSpheres< Real, Mem >::rad

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