17 #ifndef QMCPLUSPLUS_BAREKINETICENERGY_H 18 #define QMCPLUSPLUS_BAREKINETICENERGY_H 60 #if !defined(REMOVE_TRACEMANAGER) 129 std::vector<std::vector<ValueMatrix>>& Bforce)
override;
131 #if !defined(REMOVE_TRACEMANAGER) 141 bool put(xmlNodePtr)
override;
143 bool get(std::ostream& os)
const override;
171 #if !defined(REMOVE_TRACEMANAGER) ~BareKineticEnergy() override
destructor
HamiltonianRef::FullPrecRealType FullPrecRealType
helper functions for EinsplineSetBuilder
bool dependsOnWaveFunction() const override
return true if this operator depends on a wavefunction
void resetTargetParticleSet(ParticleSet &p) override
Reset the data with the target ParticleSet.
Return_t evaluate_orig(ParticleSet &P)
FullPrecRealType particle_mass_
mass of the particle
void acquireResource(ResourceCollection &collection, const RefVectorWithLeader< OperatorBase > &o_list) const override
acquire a shared resource from a collection
std::unique_ptr< OperatorBase > makeClone(ParticleSet &qp, TrialWaveFunction &psi) final
ResourceHandle manages the temporary resource referenced from a collection.
void releaseResource(ResourceCollection &collection, const RefVectorWithLeader< OperatorBase > &o_list) const override
return a shared resource to a collection
Declaration of OperatorBase.
std::string getClassName() const override
return class name
An object of this type is a listener expecting a callback to the report function with a vector of val...
void evaluateOneBodyOpMatrixForceDeriv(ParticleSet &P, ParticleSet &source, const TWFFastDerivWrapper &psi, const int iat, std::vector< std::vector< ValueMatrix >> &Bforce) override
Evaluate "dB/dR" matrices for observable.
Return_t evaluateWithIonDerivs(ParticleSet &P, ParticleSet &ions, TrialWaveFunction &psi, ParticleSet::ParticlePos &hf_terms, ParticleSet::ParticlePos &pulay_terms) override
Function to compute the value, direct ionic gradient terms, and pulay terms for the local kinetic ene...
Attaches a unit to a Vector for IO.
TWFFastDerivWrapper is a wrapper class for TrialWavefunction that provides separate and low level acc...
bool same_mass_
true, if all the species have the same mass
Specialized paritlce class for atomistic simulations.
void evaluateOneBodyOpMatrix(ParticleSet &P, const TWFFastDerivWrapper &psi, std::vector< ValueMatrix > &B) override
Evaluate "B" matrix for observable.
FullPrecRealType one_over_2m_
void createResource(ResourceCollection &collection) const override
initialize a shared resource and hand it to a collection
Array< TraceComp, 1 > * t_sample_comp_
class to handle a set of variables that can be modified during optimizations
void checkoutParticleQuantities(TraceManager &tm) override
Return_t evaluateValueAndDerivatives(ParticleSet &P, const opt_variables_type &optvars, const Vector< ValueType > &dlogpsi, Vector< ValueType > &dhpsioverpsi) override
An abstract class for Local Energy operators.
FullPrecRealType Return_t
type of return value of evaluate
Array< TraceComp, 2 > * p_sample_
void mw_evaluatePerParticleWithToperator(const RefVectorWithLeader< OperatorBase > &o_list, const RefVectorWithLeader< TrialWaveFunction > &wf_list, const RefVectorWithLeader< ParticleSet > &p_list, const std::vector< ListenerVector< RealType >> &listeners, const std::vector< ListenerVector< RealType >> &ion_listeners) const override
For BareKineticEnergy since it does override any Toperator evals this needs to decay to mw_evaluatePe...
BareKineticEnergy(ParticleSet &p, TrialWaveFunction &psi)
constructor with particleset
ResourceHandle< MultiWalkerResource > mw_res_
Class to represent a many-body trial wave function.
Return_t evaluate(ParticleSet &P) override
Evaluate the local energy contribution of this component.
std::vector< FullPrecRealType > minus_over_2m_
minus_over_2m_[i] = for the ith species
bool put(xmlNodePtr) override
implements the virtual function.
void mw_evaluatePerParticle(const RefVectorWithLeader< OperatorBase > &o_list, const RefVectorWithLeader< TrialWaveFunction > &wf_list, const RefVectorWithLeader< ParticleSet > &p_list, const std::vector< ListenerVector< RealType >> &listeners, const std::vector< ListenerVector< RealType >> &ion_listeners) const override
Evaluate the contribution of this component for multiple walkers reporting to registered listeners fr...
void contributeParticleQuantities() override
double B(double x, int k, int i, const std::vector< double > &t)
void mw_evaluateWithParameterDerivatives(const RefVectorWithLeader< OperatorBase > &o_list, const RefVectorWithLeader< ParticleSet > &p_list, const opt_variables_type &optvars, const RecordArray< ValueType > &dlogpsi, RecordArray< ValueType > &dhpsioverpsi) const override
Return_t evaluate_sp(ParticleSet &P)
Evaluate the kinetic energy with a single mass.
void deleteParticleQuantities() override
Array< TraceReal, 1 > * t_sample_