79#ifdef ESPRESSO_STOKESIAN_DYNAMICS
91 if (
get_system().
lb.is_solver_set() and ::comm_cart.rank() == 0 and
94 <<
"Recalculating forces, so the LB coupling forces are not "
95 "included in the particle force the first time step. This "
96 "only matters if it happens frequently during sampling.";
98 lb->couple_to_md =
false;
104 for (
auto &handle : std::views::elements<1>(bonded_ias)) {
105 if (
auto *bond = std::get_if<ThermalizedBond>(handle.get())) {
106 bond->recalc_prefactors(time_step);
Data structures for bonded interactions.
container for bonded interactions.
std::shared_ptr< BrownianThermostat > brownian
void philox_counter_increment()
Increment RNG counters.
std::shared_ptr< ThermalizedBondThermostat > thermalized_bond
std::shared_ptr< LangevinThermostat > langevin
std::shared_ptr< DPDThermostat > dpd
int thermo_switch
Bitmask of currently active thermostats.
std::shared_ptr< LBThermostat > lb
std::shared_ptr< IsotropicNptThermostat > npt_iso
void lb_coupling_deactivate()
std::shared_ptr< StokesianThermostat > stokesian
double kT
Thermal energy of the simulated heat bath.
void recalc_prefactors(double time_step)
Initialize constants of all thermostats.
This file contains the asynchronous MPI communication.
Implementation in thermostat.cpp.
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.