30 data::MultiHistogram& compensationEnergyCounter,
31 data::MultiHistogram& meanCompensationEnergy,
32 const real_t runningAverageFactor = 10_r);
43 data::Molecules::force_t::atomic_access_slice moleculesForce_;
51 data::Atoms::force_t::atomic_access_slice atomsForce_;
54 static constexpr idx_t COMPENSATION_ENERGY_BINS = 200;
63 bool isDriftCompensationSamplingRun_ =
false;
67 idx_t runCounter_ = 0;
69 idx_t compensationEnergySamplingInterval = 200;
70 idx_t compensationEnergyUpdateInveral = 20000;
75 compensationEnergySamplingInterval = interval;
79 compensationEnergyUpdateInveral = interval;
99 LJ_IdealGas(
const std::vector<real_t>& cappingDistance,
100 const std::vector<real_t>& rc,
101 const std::vector<real_t>& sigma,
102 const std::vector<real_t>& epsilon,
103 const idx_t numTypes,
Definition LJ_IdealGas.hpp:35
KOKKOS_FUNCTION void operator()(const idx_t &alpha, real_t &sumEnergy) const
Loop over molecules.
Definition LJ_IdealGas.cpp:52
void setCompensationEnergySamplingInterval(const idx_t &interval)
Definition LJ_IdealGas.hpp:73
real_t run(data::Molecules &molecules, HalfVerletList &verletList, data::Atoms &atoms)
Definition LJ_IdealGas.cpp:227
void setCompensationEnergyUpdateInterval(const idx_t &interval)
Definition LJ_IdealGas.hpp:77
const auto & getMeanCompensationEnergy() const
Definition LJ_IdealGas.hpp:81
Definition LennardJones.hpp:25
Data structure for storing information about atoms on the host and the device.
Definition Atoms.hpp:35
typename AtomsT::template member_slice_type< TYPE > type_t
Definition Atoms.hpp:59
typename AtomsT::template member_slice_type< POS > pos_t
Definition Atoms.hpp:56
Definition Molecules.hpp:29
typename MoleculesT::template member_slice_type< GRAD_LAMBDA > grad_lambda_t
Definition Molecules.hpp:54
typename MoleculesT::template member_slice_type< MODULATED_LAMBDA > modulated_lambda_t
Definition Molecules.hpp:53
typename MoleculesT::template member_slice_type< LAMBDA > lambda_t
Definition Molecules.hpp:52
typename MoleculesT::template member_slice_type< NUM_ATOMS > num_atoms_t
Definition Molecules.hpp:56
typename MoleculesT::template member_slice_type< ATOMS_OFFSET > atoms_offset_t
Definition Molecules.hpp:55
typename MoleculesT::template member_slice_type< POS > pos_t
Definition Molecules.hpp:50
Definition BerendsenBarostat.cpp:20
void updateMeanCompensationEnergy(data::MultiHistogram &compensationEnergy, data::MultiHistogram &compensationEnergyCounter, data::MultiHistogram &meanCompensationEnergy, const real_t runningAverageFactor)
Definition LJ_IdealGas.cpp:21
Cabana::VerletList< Kokkos::DefaultExecutionSpace::memory_space, Cabana::HalfNeighborTag, Cabana::VerletLayout2D, Cabana::TeamOpTag > HalfVerletList
Definition datatypes.hpp:187
int64_t idx_t
Definition datatypes.hpp:91
double real_t
Definition datatypes.hpp:99
Kokkos::Experimental::ScatterView< real_t ** > MultiScatterView
Definition datatypes.hpp:162
Definition MultiHistogram.hpp:30