![]() |
QMCPACK
|
Jastrow Jastrow Builder with constraints. More...
Public Member Functions | |
JastrowBuilder (Communicate *comm, ParticleSet &p, const PSetMap &psets) | |
std::unique_ptr< WaveFunctionComponent > | buildComponent (xmlNodePtr cur) override |
process a xml node at cur More... | |
![]() | |
WaveFunctionComponentBuilder (Communicate *comm, ParticleSet &p) | |
constructor More... | |
virtual | ~WaveFunctionComponentBuilder ()=default |
![]() | |
MPIObjectBase (Communicate *c) | |
constructor with communicator More... | |
int | rank () const |
return the rank of the communicator More... | |
int | getGroupID () const |
return the group id of the communicator More... | |
Communicate * | getCommunicator () const |
return myComm More... | |
Communicate & | getCommRef () const |
return a TEMPORARY reference to Communicate More... | |
mpi_comm_type | getMPI () const |
return MPI communicator if one wants to use MPI directly More... | |
bool | is_manager () const |
return true if the rank == 0 More... | |
const std::string & | getName () const |
return the name More... | |
void | setName (const std::string &aname) |
Private Member Functions | |
void | resetOptions () |
reset the options More... | |
std::unique_ptr< WaveFunctionComponent > | buildOneBody (xmlNodePtr cur) |
build one-body term More... | |
std::unique_ptr< WaveFunctionComponent > | buildTwoBody (xmlNodePtr cur) |
build two-body term More... | |
std::unique_ptr< WaveFunctionComponent > | build_eeI (xmlNodePtr cur) |
build electron-electron ion term More... | |
std::unique_ptr< WaveFunctionComponent > | buildkSpace (xmlNodePtr cur) |
build k-Space term More... | |
std::unique_ptr< WaveFunctionComponent > | buildCounting (xmlNodePtr cur) |
build number-counting term More... | |
Private Attributes | |
const PSetMap & | ptclPool |
particleset pool to get ParticleSet other than the target More... | |
int | JastrowType |
index for the jastrow type: 1, 2, 3 More... | |
std::string | nameOpt |
<jastrow name="..."> More... | |
std::string | typeOpt |
<jastrow type="..."> More... | |
std::string | funcOpt |
<jastrow function="..."> More... | |
std::string | spinOpt |
<jastrow spin="..."> More... | |
std::string | transformOpt |
<jastrow transform="..."> More... | |
std::string | sourceOpt |
<jastrow source="..."> More... | |
Additional Inherited Members | |
![]() | |
using | RealType = WaveFunctionComponent::RealType |
using | ValueType = WaveFunctionComponent::ValueType |
using | PosType = WaveFunctionComponent::PosType |
using | GradType = WaveFunctionComponent::GradType |
using | PSetMap = std::map< std::string, const std::unique_ptr< ParticleSet > > |
![]() | |
using | mpi_comm_type = Communicate::mpi_comm_type |
![]() | |
static std::string | wfs_tag = "wavefunction" |
reserved tags for the elements associated with the many-body wavefunctions More... | |
static std::string | param_tag = "parameter" |
the element name for a parameter More... | |
static std::string | dtable_tag = "distancetable" |
the element name for a distancetable More... | |
static std::string | jastrow_tag = "jastrow" |
the element name for jatrow More... | |
static std::string | detset_tag = "determinantset" |
the element name for a set of Slater determinants, contains 1..* Slater determinants More... | |
static std::string | sd_tag = "slaterdeterminant" |
the element name for a Slater determinant, contains 1..* determinants More... | |
static std::string | det_tag = "determinant" |
the element name for a determinant, may contain (0..*) orbital or parameter element More... | |
static std::string | rn_tag = "determinant_rn" |
the element name for a released node determinant, may contain (0..*) orbital or parameter element More... | |
static std::string | spo_tag = "psi" |
the element name for single-particle orbital More... | |
static std::string | sposet_tag = "sposet" |
the element name for single-particle orbital set More... | |
static std::string | ionorb_tag = "ionwf" |
the element name for an ion wavefunction More... | |
static std::string | backflow_tag = "backflow" |
the element name for a backflow transformation More... | |
static std::string | multisd_tag = "multideterminant" |
the element name for a multi slater determinant wavefunction More... | |
![]() | |
ParticleSet & | targetPtcl |
reference to the particle set on which targetPsi is defined More... | |
xmlNodePtr | myNode |
xmlNode operated by this object More... | |
![]() | |
Communicate * | myComm |
pointer to Communicate More... | |
std::string | ClassName |
class Name More... | |
std::string | myName |
name of the object More... | |
Jastrow Jastrow Builder with constraints.
Definition at line 26 of file JastrowBuilder.h.
JastrowBuilder | ( | Communicate * | comm, |
ParticleSet & | p, | ||
const PSetMap & | psets | ||
) |
Definition at line 29 of file JastrowBuilder.cpp.
References MPIObjectBase::ClassName, and JastrowBuilder::resetOptions().
|
private |
build electron-electron ion term
Definition at line 133 of file JastrowBuilder.cpp.
References APP_ABORT, qmcplusplus::app_error(), eeI_JastrowBuilder::buildComponent(), MPIObjectBase::ClassName, MPIObjectBase::myComm, JastrowBuilder::ptclPool, JastrowBuilder::sourceOpt, and WaveFunctionComponentBuilder::targetPtcl.
Referenced by JastrowBuilder::buildComponent().
|
overridevirtual |
process a xml node at cur
Implements WaveFunctionComponentBuilder.
Definition at line 47 of file JastrowBuilder.cpp.
References OhmmsAttributeSet::add(), APP_ABORT, qmcplusplus::app_summary(), JastrowBuilder::build_eeI(), JastrowBuilder::buildCounting(), JastrowBuilder::buildkSpace(), JastrowBuilder::buildOneBody(), JastrowBuilder::buildTwoBody(), JastrowBuilder::funcOpt, WaveFunctionComponentBuilder::myNode, JastrowBuilder::nameOpt, OhmmsAttributeSet::put(), JastrowBuilder::resetOptions(), JastrowBuilder::sourceOpt, JastrowBuilder::spinOpt, JastrowBuilder::transformOpt, and JastrowBuilder::typeOpt.
|
private |
build number-counting term
Definition at line 87 of file JastrowBuilder.cpp.
References MPIObjectBase::ClassName, OhmmsElementBase::getName(), MPIObjectBase::myComm, JastrowBuilder::ptclPool, JastrowBuilder::sourceOpt, and WaveFunctionComponentBuilder::targetPtcl.
Referenced by JastrowBuilder::buildComponent().
|
private |
build k-Space term
Definition at line 99 of file JastrowBuilder.cpp.
References qmcplusplus::app_log(), qmcplusplus::app_warning(), kSpaceJastrowBuilder::buildComponent(), MPIObjectBase::myComm, JastrowBuilder::ptclPool, JastrowBuilder::sourceOpt, and WaveFunctionComponentBuilder::targetPtcl.
Referenced by JastrowBuilder::buildComponent().
|
private |
build one-body term
Definition at line 113 of file JastrowBuilder.cpp.
References RadialJastrowBuilder::buildComponent(), MPIObjectBase::ClassName, ReportEngine::error(), OhmmsElementBase::getName(), MPIObjectBase::myComm, JastrowBuilder::ptclPool, JastrowBuilder::sourceOpt, and WaveFunctionComponentBuilder::targetPtcl.
Referenced by JastrowBuilder::buildComponent().
|
private |
build two-body term
Definition at line 155 of file JastrowBuilder.cpp.
References RadialJastrowBuilder::buildComponent(), MPIObjectBase::ClassName, MPIObjectBase::myComm, and WaveFunctionComponentBuilder::targetPtcl.
Referenced by JastrowBuilder::buildComponent().
|
private |
reset the options
Definition at line 36 of file JastrowBuilder.cpp.
References JastrowBuilder::funcOpt, OhmmsElementBase::getName(), JastrowBuilder::JastrowType, JastrowBuilder::nameOpt, JastrowBuilder::sourceOpt, JastrowBuilder::spinOpt, WaveFunctionComponentBuilder::targetPtcl, JastrowBuilder::transformOpt, and JastrowBuilder::typeOpt.
Referenced by JastrowBuilder::buildComponent(), and JastrowBuilder::JastrowBuilder().
|
private |
<jastrow function="...">
Definition at line 43 of file JastrowBuilder.h.
Referenced by JastrowBuilder::buildComponent(), and JastrowBuilder::resetOptions().
|
private |
index for the jastrow type: 1, 2, 3
Definition at line 37 of file JastrowBuilder.h.
Referenced by JastrowBuilder::resetOptions().
|
private |
<jastrow name="...">
Definition at line 39 of file JastrowBuilder.h.
Referenced by JastrowBuilder::buildComponent(), and JastrowBuilder::resetOptions().
|
private |
particleset pool to get ParticleSet other than the target
Definition at line 35 of file JastrowBuilder.h.
Referenced by JastrowBuilder::build_eeI(), JastrowBuilder::buildCounting(), JastrowBuilder::buildkSpace(), and JastrowBuilder::buildOneBody().
|
private |
<jastrow source="...">
Definition at line 49 of file JastrowBuilder.h.
Referenced by JastrowBuilder::build_eeI(), JastrowBuilder::buildComponent(), JastrowBuilder::buildCounting(), JastrowBuilder::buildkSpace(), JastrowBuilder::buildOneBody(), and JastrowBuilder::resetOptions().
|
private |
<jastrow spin="...">
Definition at line 45 of file JastrowBuilder.h.
Referenced by JastrowBuilder::buildComponent(), and JastrowBuilder::resetOptions().
|
private |
<jastrow transform="...">
Definition at line 47 of file JastrowBuilder.h.
Referenced by JastrowBuilder::buildComponent(), and JastrowBuilder::resetOptions().
|
private |
<jastrow type="...">
Definition at line 41 of file JastrowBuilder.h.
Referenced by JastrowBuilder::buildComponent(), and JastrowBuilder::resetOptions().