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

The geometric and rise gate of shock propagation (see solveVelocity) for one persistent body-body pair with separation dx = x_A - x_B: the LOWER body may be held static (|up| > 0.3 |dx|, so near-horizontal pairs stay symmetric) ONLY when it is not moving UPWARD faster than 4 * restVelThreshold. More...

#include <solver_velocity.hpp>

Public Member Functions

 ShockGate (F3 dx, F3 gHat, float restVelThreshold)
bool lowerB (F3 vB, F3 gHat) const
 B is the lower, non-rising body (velocity vB).
bool lowerA (F3 vA, F3 gHat) const
 A is the lower, non-rising body (velocity vA).

Public Attributes

float up
float thr
float riseThr

Detailed Description

The geometric and rise gate of shock propagation (see solveVelocity) for one persistent body-body pair with separation dx = x_A - x_B: the LOWER body may be held static (|up| > 0.3 |dx|, so near-horizontal pairs stay symmetric) ONLY when it is not moving UPWARD faster than 4 * restVelThreshold.

Correcting the upper body against a static or FALLING support strictly removes momentum (monotone drainage into the ground), while one-sidedness against a RISING support copies its bounce velocity up the chain with no mass penalty and fountains the whole column; rising supports (floor bounces, bubble eruptions) keep the symmetric impulse. The caller adds the GROUNDED condition (a contact path to the floor): a gas-borne emulsion or lifted slug keeps symmetric momentum-conserving impulses, so its weight stays on the gas – only genuinely supported chains drain into the ground.

Definition at line 87 of file solver_velocity.hpp.

Constructor & Destructor Documentation

◆ ShockGate()

peclet::dem::ShockGate::ShockGate ( F3 dx,
F3 gHat,
float restVelThreshold )
inline

Definition at line 91 of file solver_velocity.hpp.

References peclet::dem::dot3(), riseThr, thr, and up.

Member Function Documentation

◆ lowerB()

bool peclet::dem::ShockGate::lowerB ( F3 vB,
F3 gHat ) const
inline

B is the lower, non-rising body (velocity vB).

Definition at line 96 of file solver_velocity.hpp.

References peclet::dem::dot3(), riseThr, thr, and up.

◆ lowerA()

bool peclet::dem::ShockGate::lowerA ( F3 vA,
F3 gHat ) const
inline

A is the lower, non-rising body (velocity vA).

Definition at line 100 of file solver_velocity.hpp.

References peclet::dem::dot3(), riseThr, thr, and up.

Member Data Documentation

◆ up

float peclet::dem::ShockGate::up

Definition at line 88 of file solver_velocity.hpp.

Referenced by lowerA(), lowerB(), and ShockGate().

◆ thr

float peclet::dem::ShockGate::thr

Definition at line 89 of file solver_velocity.hpp.

Referenced by lowerA(), lowerB(), and ShockGate().

◆ riseThr

float peclet::dem::ShockGate::riseThr

Definition at line 90 of file solver_velocity.hpp.

Referenced by lowerA(), lowerB(), and ShockGate().


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