peclet.voro 1.0.4
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
peclet::voro::SdfBox< 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

Real cx = 0
 
Real cy = 0
 
Real cz = 0
 
Real hx = Real(0.5)
 
Real hy = Real(0.5)
 
Real hz = Real(0.5)
 

Detailed Description

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

Axis-aligned solid box of half-extents (hx,hy,hz). DELEGATES to peclet::core::geom::prim::Box. The leaf uses fmax/fmin where this body used ternaries; those agree on every input including NaN and -0.0 (fmax(-0,0) and (-0 > 0 ? -0 : 0) both give +0), and the rung-4 bit-capture confirms the values are unchanged on host and CUDA.

Member Function Documentation

◆ eval()

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

◆ gradH()

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

Member Data Documentation

◆ cx

template<class Real >
Real peclet::voro::SdfBox< Real >::cx = 0

◆ cy

template<class Real >
Real peclet::voro::SdfBox< Real >::cy = 0

◆ cz

template<class Real >
Real peclet::voro::SdfBox< Real >::cz = 0

◆ hx

template<class Real >
Real peclet::voro::SdfBox< Real >::hx = Real(0.5)

◆ hy

template<class Real >
Real peclet::voro::SdfBox< Real >::hy = Real(0.5)

◆ hz

template<class Real >
Real peclet::voro::SdfBox< Real >::hz = Real(0.5)

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