34#include "system/System.hpp"
42 if (thermalized_bond) {
43 thermalized_bond->recalc_prefactors(time_step, *(get_system().bonded_ias));
46 langevin->recalc_prefactors(kT, time_step);
49 brownian->recalc_prefactors(kT);
58 npt_iso->recalc_prefactors(kT, get_system().nptiso->piston,
59 get_system().nptiso->mass_list, time_step);
66 langevin->rng_increment();
69 brownian->rng_increment();
73 npt_iso->rng_increment();
81#ifdef ESPRESSO_STOKESIAN_DYNAMICS
83 stokesian->rng_increment();
87 thermalized_bond->rng_increment();
93 if (get_system().lb.is_solver_set() and ::comm_cart.rank() == 0 and
96 <<
"Recalculating forces, so the LB coupling forces are not "
97 "included in the particle force the first time step. This "
98 "only matters if it happens frequently during sampling.";
100 lb->couple_to_md =
false;
106 for (
auto &handle : std::views::elements<1>(bonded_ias)) {
107 if (
auto *bond = std::get_if<ThermalizedBond>(handle.get())) {
108 bond->recalc_prefactors(time_step);
Data structures for bonded interactions.
container for bonded interactions.
std::shared_ptr< InteractionsNonBonded > nonbonded_ias
void philox_counter_increment()
Increment RNG counters.
void lb_coupling_deactivate()
void recalc_prefactors(double time_step)
Initialize constants of all thermostats.
Routines to use DPD as thermostat or pair force .
This file contains the errorhandling code for severe errors, like a broken bond or illegal parameter ...
#define runtimeWarningMsg()
Various procedures concerning interactions between particles.
Exports for the NpT code.
void recalc_prefactors(double time_step, BondedInteractionsMap &bonded_ias)
Routines to thermalize the center of mass and distance of a particle pair.