18 #ifndef QMCPLUSPLUS_FORCE_BASE_HAMILTONIAN_H 19 #define QMCPLUSPLUS_FORCE_BASE_HAMILTONIAN_H 37 for (
int i = 0; i <
m_; i++)
39 for (
int k = 0; k <
ck_.size(); k++)
41 sum +=
ck_[k] * r2kplusm;
void setForcesIonIon(const ParticleSet::ParticlePos &forces_ion_ion)
void setObservablesStress(QMCTraits::PropertySetType &plist)
helper functions for EinsplineSetBuilder
void setForces(const ParticleSet::ParticlePos &forces)
QTBase::RealType RealType
SymTensor< Real, OHMMS_DIM > stress_ee_
ParticleSet::ParticlePos forces_
const SymTensor< Real, OHMMS_DIM > & getStressKin() const noexcept
void addObservablesF(QMCTraits::PropertySetType &plist)
const SymTensor< Real, OHMMS_DIM > & getStress() const noexcept
const SymTensor< Real, OHMMS_DIM > & getStressEE() const noexcept
Vectorized record engine for scalar properties.
ForceBase(ParticleSet &ions, ParticleSet &elns)
Attaches a unit to a Vector for IO.
SymTensor< Real, OHMMS_DIM > stress_kin_
void registerObservablesF(std::vector< ObservableHelper > &h5list, hdf_archive &file) const
Declaration of ObservableHelper and other helper class for observables.
void initVarReduction(Real rcut, int m, int numFuncs)
void addObservablesStress(QMCTraits::PropertySetType &plist)
Specialized paritlce class for atomistic simulations.
void setParticleSetStress(QMCTraits::PropertySetType &plist, int offset)
bool add_ion_ion_
Determines if ion-ion force will be added to electron-ion force in derived force estimators. If false, forces_ion_ion_=0.0.
const SymTensor< Real, OHMMS_DIM > & getStressIonIon() const noexcept
void setParticleSetF(QMCTraits::PropertySetType &plist, int offset)
QMCTraits::RealType Real
cheat, need to use virtual inheriance to clean up
const ParticleSet::ParticlePos & getForcesIonIon() const noexcept
void setObservablesF(QMCTraits::PropertySetType &plist)
SymTensor< Real, OHMMS_DIM > stress_ion_ion_
SymTensor< Real, OHMMS_DIM > stress_
const SymTensor< Real, OHMMS_DIM > & getStressEI() const noexcept
bool getAddIonIon() const noexcept
ParticleSet::ParticlePos forces_ion_ion_
void setAddIonIon(bool val) noexcept
SymTensor< Real, OHMMS_DIM > stress_ei_
const ParticleSet::ParticlePos & getForces() const noexcept