|
peclet-dem 1.1.0
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
|
dem — portable (Kokkos) time integration kernels (integration.cu). More...
Go to the source code of this file.
Classes | |
| struct | peclet::dem::Domain |
| struct | peclet::dem::KE2 |
| Berendsen thermostat: reduce translational + rotational KE over real particles, compute the two scaling factors, and rescale linear/angular velocities. More... | |
Namespaces | |
| namespace | peclet |
| namespace | peclet::dem |
| namespace | peclet::dem::detail |
Typedefs | |
| using | peclet::dem::V3 = Kokkos::View<float* [3], CpMem> |
| using | peclet::dem::V4 = Kokkos::View<float* [4], CpMem> |
| using | peclet::dem::Vf = Kokkos::View<float*, CpMem> |
| using | peclet::dem::Vi = Kokkos::View<int*, CpMem> |
Functions | |
| void | peclet::dem::detail::st3 (const V3 &v, int i, F3 a) |
| void | peclet::dem::detail::st4 (const V4 &v, int i, F4 a) |
| void | peclet::dem::predictVelocity (int n, const BodyState &bodies, const BodyPred &pred, const BodyDelta &delta, F3 gravity, float dt, V3 extForce, V3 extTorque) |
| Predict velocity (gravity + gyroscopic precession), speculative position, and clear all deltas. | |
| void | peclet::dem::applyVelocityDeltas (int n, V3 velPred, V3 angVelPred, V3 deltaVel, V3 deltaAngVel) |
| Add accumulated velocity/angular deltas onto the predicted velocity, then clear the delta buffers. | |
| void | peclet::dem::applyVelocityAndPredictPosition (int n, const BodyState &bodies, const BodyPred &pred, float dt) |
| Re-integration: persist solved velocity, trapezoidal position predict, quaternion integrate. | |
| void | peclet::dem::computeContactCounts (Kokkos::View< const ContactC *, CpMem > contacts, int numContacts, Vi constraintCounts) |
| Per-contact constraint-count pre-pass (active contacts, dist <= 0). | |
| void | peclet::dem::applyUpdates (int n, const BodyPred &pred, const BodyDelta &delta, bool averaged=true) |
| Jacobi count-averaged apply of position/velocity deltas, then clear deltas + counts. | |
| void | peclet::dem::finalCommit (int n, const BodyState &bodies, const BodyPred &pred, Domain dom) |
| Final commit: periodic wrap of the predicted position into the domain, commit position + quat. | |
| void | peclet::dem::applyThermostat (int numReal, const BodyState &bodies, double kB, double tau, double Ttarget, float dt) |
| Reads bodies (vel, invMass, angVel, invInertia, quat); rescales vel and angVel in place. | |
| void | peclet::dem::updateGrowthScales (int n, Vf scale, Vf targetScale, float factor) |
| Growth mode: scale = target * factor (when active). | |
dem — portable (Kokkos) time integration kernels (integration.cu).
The per-particle element-wise steps of the XPBD step over the particle SoA Views: velocity predict (gravity + gyroscopic Euler term), re-integration (apply velocity deltas, trapezoidal position predict, quaternion integrate+normalize), iterative delta apply, Jacobi count-averaged update, final commit with periodic wrap, contact-count pre-pass, and growth-scale update. Faithful copies of the CUDA kernels. Ghost generation and the thermostat are separate units.
Definition in file integration.hpp.