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

Berendsen thermostat: reduce translational + rotational KE over real particles, compute the two scaling factors, and rescale linear/angular velocities. More...

#include <integration.hpp>

Public Member Functions

KE2operator+= (const KE2 &o)
 

Public Attributes

double t = 0.0
 
double r = 0.0
 

Detailed Description

Berendsen thermostat: reduce translational + rotational KE over real particles, compute the two scaling factors, and rescale linear/angular velocities.

Port of compute_energy_reduction_kernel

  • apply_berendsen_thermostat_kernel (the scaling factors are computed on the host from the reduced energies rather than in a shared-memory kernel — same result, simpler/portable).

Definition at line 221 of file integration.hpp.

Member Function Documentation

◆ operator+=()

KE2 & peclet::dem::KE2::operator+= ( const KE2 o)
inline

Definition at line 223 of file integration.hpp.

References r, and t.

Member Data Documentation

◆ t

double peclet::dem::KE2::t = 0.0

Definition at line 222 of file integration.hpp.

Referenced by peclet::dem::applyThermostatKokkos(), and operator+=().

◆ r

double peclet::dem::KE2::r = 0.0

Definition at line 222 of file integration.hpp.

Referenced by peclet::dem::applyThermostatKokkos(), and operator+=().


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