peclet-dem
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
Loading...
Searching...
No Matches
peclet::dem::ShapeDesc Struct Reference

Portable mirror of ShapeDescriptor (analytic fields + a flat-array point shell). More...

#include <narrowphase.hpp>

Public Attributes

int type
 
F4 params
 
int shellOffset
 
int numPoints
 
int gridOffset = 0
 
int nx = 0
 
int ny = 0
 
int nz = 0
 
F3 gridOrigin {0, 0, 0}
 
F3 gridInvSpacing {0, 0, 0}
 

Detailed Description

Portable mirror of ShapeDescriptor (analytic fields + a flat-array point shell).

For an imported grid SDF (type == SHAPE_GRID_SDF) the analytic params is unused except params.x, which carries the canonical bounding radius (used by the broad-phase splat / VTI export). The signed-distance samples live in the shared Particles::sdfGrid View at [gridOffset, gridOffset + nx*ny*nz), x-fastest (idx = x + y*nx + z*nx*ny), located at the regular lattice nodes q = gridOrigin + (x,y,z) / gridInvSpacing in canonical (unrotated, unit-scale) particle space. Analytic shapes leave these zero.

Definition at line 29 of file narrowphase.hpp.

Member Data Documentation

◆ type

int peclet::dem::ShapeDesc::type

◆ params

F4 peclet::dem::ShapeDesc::params

◆ shellOffset

int peclet::dem::ShapeDesc::shellOffset

◆ numPoints

int peclet::dem::ShapeDesc::numPoints

◆ gridOffset

int peclet::dem::ShapeDesc::gridOffset = 0

Definition at line 35 of file narrowphase.hpp.

Referenced by peclet::dem::sampleGridSdf().

◆ nx

int peclet::dem::ShapeDesc::nx = 0

Definition at line 36 of file narrowphase.hpp.

Referenced by peclet::dem::sampleGridSdf().

◆ ny

int peclet::dem::ShapeDesc::ny = 0

Definition at line 36 of file narrowphase.hpp.

Referenced by peclet::dem::sampleGridSdf().

◆ nz

int peclet::dem::ShapeDesc::nz = 0

Definition at line 36 of file narrowphase.hpp.

Referenced by peclet::dem::sampleGridSdf().

◆ gridOrigin

F3 peclet::dem::ShapeDesc::gridOrigin {0, 0, 0}

Definition at line 37 of file narrowphase.hpp.

Referenced by peclet::dem::sampleGridSdf().

◆ gridInvSpacing

F3 peclet::dem::ShapeDesc::gridInvSpacing {0, 0, 0}

Definition at line 38 of file narrowphase.hpp.

Referenced by peclet::dem::sampleGridSdf().


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