peclet.voro 1.0.0
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
peclet::voro::SdfSpheres< Real > 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 *, peclet::core::MemSpace > cen
 
Kokkos::View< const Real *, peclet::core::MemSpace > rad
 
int n = 0
 
Real L = 0
 

Detailed Description

template<class Real>
struct peclet::voro::SdfSpheres< Real >

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.

Member Function Documentation

◆ eval()

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

◆ gradH()

template<class Real >
KOKKOS_INLINE_FUNCTION Real peclet::voro::SdfSpheres< Real >::gradH ( ) const
inline

Member Data Documentation

◆ cen

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

◆ L

template<class Real >
Real peclet::voro::SdfSpheres< Real >::L = 0

◆ n

template<class Real >
int peclet::voro::SdfSpheres< Real >::n = 0

◆ rad

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

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