QMCJastrowParameters Class Reference

This class contains all of the parameters and correlation functons from which the Jastrow function is composed. More...

#include <QMCJastrowParameters.h>

List of all members.

Public Member Functions

 QMCJastrowParameters ()
 Creates an instance of the class.
 QMCJastrowParameters (const QMCJastrowParameters &rhs)
 Creates an instance of the class that is identical to another instance of the class.
void setJWParameters (Array1D< double > &params, int shift)
 Sets the parameters describing the particle-particle interactions.
void print (ostream &strm)
 Print all the correlation functions out so we can see what they look like.
void getJWParameters (Array1D< double > &params, int shift)
 Gets the parameters describing the particle-particle interactions.
Array1D< double > getJWParameters ()
 Overloaded function to return an array of just the Jastrow parameters.
int getNumberJWParameters ()
 Returns the total number of Jastrow parameters.
int getNumberEEParameters ()
 Returns the total number of Electron-Electron Jastrow parameters.
int getNumberEupEdnParameters ()
int getNumberEupEupParameters ()
int getNumberEdnEdnParameters ()
int getNumberNEParameters ()
 Returns the total number of Nuclear-Electron Jastrow parameters.
int getNumberNEupParameters ()
 The number of parameters used for Nuclear-Electron parameters, where only alpha electrons are counted.
int getNumberNEupEdnParameters ()
 The number of parameters used for electron up electron down nuclear correlation functions.
int getNumberNEupEupParameters ()
 The number of parameters used for electron up electron up nuclear correlation functions.
int getNumberNEdnEdnParameters ()
 The number of parameters used for electron down electron down nuclear correlation functions.
Array1D< ComplexgetPoles ()
 Gets the poles of the correlation functions.
double calculate_penalty_function ()
QMCCorrelationFunctionParametersgetElectronUpElectronDownParameters ()
 Gets the QMCCorrelationFunctionParameters describing up-down electron interactions.
QMCCorrelationFunctionParametersgetElectronUpElectronUpParameters ()
 Gets the QMCCorrelationFunctionParameters describing up-up electron interactions.
QMCCorrelationFunctionParametersgetElectronDownElectronDownParameters ()
 Gets the QMCCorrelationFunctionParameters describing down-down electron interactions.
Array1D
< QMCCorrelationFunctionParameters > * 
getElectronUpNuclearParameters ()
 Gets an array of QMCCorrelationFunctionParameters describing up electron-nuclear interactions.
Array1D
< QMCCorrelationFunctionParameters > * 
getElectronDownNuclearParameters ()
 Gets an array of QMCCorrelationFunctionParameters describing down electron-nuclear interactions.
Array1D
< QMCThreeBodyCorrelationFunctionParameters > * 
getElectronUpElectronDownNuclearParameters ()
 Gets an array of QMCThreeBodyCorrelationFunctionParameters describing electron up electron down nuclear interactions.
Array1D
< QMCThreeBodyCorrelationFunctionParameters > * 
getElectronUpElectronUpNuclearParameters ()
 Gets an array of QMCThreeBodyCorrelationFunctionParameters describing electron up electron up nuclear interactions.
Array1D
< QMCThreeBodyCorrelationFunctionParameters > * 
getElectronDownElectronDownNuclearParameters ()
 Gets an array of QMCThreeBodyCorrelationFunctionParameters describing electron down electron down nuclear interactions.
Array1D< string > * getNucleiTypes ()
 Gets an array which is a list of all the different types of nuclei in the molecule being calculated.
void operator= (const QMCJastrowParameters &rhs)
 Sets two QMCJastrowParameters objects equal.
void read (Array1D< string > &nucleitypes, bool linkparams, bool nucCuspReplacement, int nelup, int neldn, string runfile)
 Loads the state of the object from a file.

Static Public Member Functions

static double calculate_penalty_function (Array1D< Complex > &poles)

Private Attributes

int NumberOfEEParameters
int NumberOfEupEdnParameters
int NumberOfEupEupParameters
int NumberOfEdnEdnParameters
int NumberOfNEParameters
int NumberOfNEupParameters
Array1D
< QMCCorrelationFunctionParameters
EupNuclear
Array1D
< QMCCorrelationFunctionParameters
EdnNuclear
QMCCorrelationFunctionParameters EupEdn
QMCCorrelationFunctionParameters EupEup
QMCCorrelationFunctionParameters EdnEdn
int NumberOfNEupEdnParameters
int NumberOfNEupEupParameters
int NumberOfNEdnEdnParameters
Array1D
< QMCThreeBodyCorrelationFunctionParameters
EupEdnNuclear
Array1D
< QMCThreeBodyCorrelationFunctionParameters
EupEupNuclear
Array1D
< QMCThreeBodyCorrelationFunctionParameters
EdnEdnNuclear
bool EquivalentElectronUpDownParams
Array1D< string > NucleiTypes
int NumberOfElectronsUp
int NumberOfElectronsDown

Friends

ostream & operator<< (ostream &strm, QMCJastrowParameters &rhs)
 Writes the state of the object to an output stream.


Detailed Description

This class contains all of the parameters and correlation functons from which the Jastrow function is composed.

The wavefunction is assumed to be of the form

\[ \Psi_{QMC} = \Psi_{Trial}J \]

where $\Psi_{Trial}$ is a wavefunction calculated using a standard QM method and

\[ J=exp(\sum{u_{i,j}(r_{i,j})}) \]

is a Jastrow type correlation function. $u_{ij}(r_{ij})$ are QMCCorrelationFunction describing the interactions of particles $i$ and $j$. The correlation functions are parameterized to allow optimization. This class contains the functions and their specific parameterizations. The interactions are parameterized in terms of "parameters" and "constants." "parameters" are modified during optimizations, and "constants" are not.

Definition at line 49 of file QMCJastrowParameters.h.


Constructor & Destructor Documentation

QMCJastrowParameters::QMCJastrowParameters (  ) 

Creates an instance of the class.

Definition at line 1213 of file QMCJastrowParameters.cpp.

QMCJastrowParameters::QMCJastrowParameters ( const QMCJastrowParameters rhs  ) 

Creates an instance of the class that is identical to another instance of the class.

Parameters:
rhs object to copy

Definition at line 1217 of file QMCJastrowParameters.cpp.


Member Function Documentation

void QMCJastrowParameters::setJWParameters ( Array1D< double > &  params,
int  shift 
)

void QMCJastrowParameters::print ( ostream &  strm  ) 

void QMCJastrowParameters::getJWParameters ( Array1D< double > &  params,
int  shift 
)

Array1D< double > QMCJastrowParameters::getJWParameters (  ) 

Overloaded function to return an array of just the Jastrow parameters.

Definition at line 485 of file QMCJastrowParameters.cpp.

References getNumberJWParameters().

int QMCJastrowParameters::getNumberJWParameters (  ) 

int QMCJastrowParameters::getNumberEEParameters (  ) 

int QMCJastrowParameters::getNumberEupEdnParameters (  ) 

int QMCJastrowParameters::getNumberEupEupParameters (  ) 

int QMCJastrowParameters::getNumberEdnEdnParameters (  ) 

int QMCJastrowParameters::getNumberNEParameters (  ) 

int QMCJastrowParameters::getNumberNEupParameters (  ) 

The number of parameters used for Nuclear-Electron parameters, where only alpha electrons are counted.

Definition at line 457 of file QMCJastrowParameters.cpp.

References NumberOfNEupParameters.

Referenced by QMCJastrowElectronNuclear::evaluate().

int QMCJastrowParameters::getNumberNEupEdnParameters (  ) 

The number of parameters used for electron up electron down nuclear correlation functions.

Definition at line 462 of file QMCJastrowParameters.cpp.

References QMCInput::flags, globalInput, NumberOfNEupEdnParameters, and QMCFlags::optimize_NEE_Jastrows.

Referenced by getNumberJWParameters(), QMCThreeBodyJastrow::packageDerivatives(), QMCInput::printAIParameters(), and QMCInput::printAISummary().

int QMCJastrowParameters::getNumberNEupEupParameters (  ) 

The number of parameters used for electron up electron up nuclear correlation functions.

Definition at line 469 of file QMCJastrowParameters.cpp.

References QMCInput::flags, globalInput, QMCFlags::link_NEE_Jastrows, NumberOfNEupEupParameters, and QMCFlags::optimize_NEE_Jastrows.

Referenced by getNumberJWParameters(), QMCThreeBodyJastrow::packageDerivatives(), QMCInput::printAIParameters(), and QMCInput::printAISummary().

int QMCJastrowParameters::getNumberNEdnEdnParameters (  ) 

The number of parameters used for electron down electron down nuclear correlation functions.

Definition at line 477 of file QMCJastrowParameters.cpp.

References QMCInput::flags, globalInput, QMCFlags::link_NEE_Jastrows, NumberOfNEdnEdnParameters, and QMCFlags::optimize_NEE_Jastrows.

Referenced by getNumberJWParameters(), QMCThreeBodyJastrow::packageDerivatives(), QMCInput::printAIParameters(), and QMCInput::printAISummary().

Array1D< Complex > QMCJastrowParameters::getPoles (  ) 

double QMCJastrowParameters::calculate_penalty_function (  ) 

double QMCJastrowParameters::calculate_penalty_function ( Array1D< Complex > &  poles  )  [static]

Definition at line 774 of file QMCJastrowParameters.cpp.

References Array1D< T >::dim1().

QMCCorrelationFunctionParameters * QMCJastrowParameters::getElectronUpElectronDownParameters (  ) 

Gets the QMCCorrelationFunctionParameters describing up-down electron interactions.

Returns:
up-down electron interaction parameters

Definition at line 1161 of file QMCJastrowParameters.cpp.

References EupEdn.

Referenced by QMCJastrowElectronElectron::jastrowOnGrid(), QMCJastrowElectronElectron::updateAll(), and QMCJastrowElectronElectron::updateOne().

QMCCorrelationFunctionParameters * QMCJastrowParameters::getElectronUpElectronUpParameters (  ) 

Gets the QMCCorrelationFunctionParameters describing up-up electron interactions.

Returns:
up-up electron interaction parameters

Definition at line 1167 of file QMCJastrowParameters.cpp.

References EupEup.

Referenced by QMCJastrowElectronElectron::jastrowOnGrid(), QMCJastrowElectronElectron::updateAll(), and QMCJastrowElectronElectron::updateOne().

QMCCorrelationFunctionParameters * QMCJastrowParameters::getElectronDownElectronDownParameters (  ) 

Gets the QMCCorrelationFunctionParameters describing down-down electron interactions.

Returns:
down-down electron interaction parameters

Definition at line 1173 of file QMCJastrowParameters.cpp.

References EdnEdn.

Referenced by QMCJastrowElectronElectron::jastrowOnGrid(), QMCJastrowElectronElectron::updateAll(), and QMCJastrowElectronElectron::updateOne().

Array1D< QMCCorrelationFunctionParameters > * QMCJastrowParameters::getElectronUpNuclearParameters (  ) 

Gets an array of QMCCorrelationFunctionParameters describing up electron-nuclear interactions.

Returns:
up electron-nuclear interaction parameters

Definition at line 1179 of file QMCJastrowParameters.cpp.

References EupNuclear.

Referenced by QMCJastrowElectronNuclear::evaluate(), and QMCJastrowElectronNuclear::jastrowOnGrid().

Array1D< QMCCorrelationFunctionParameters > * QMCJastrowParameters::getElectronDownNuclearParameters (  ) 

Gets an array of QMCCorrelationFunctionParameters describing down electron-nuclear interactions.

Returns:
down electron-nuclear interaction parameters

Definition at line 1185 of file QMCJastrowParameters.cpp.

References EdnNuclear.

Referenced by QMCJastrowElectronNuclear::evaluate(), and QMCJastrowElectronNuclear::jastrowOnGrid().

Array1D< QMCThreeBodyCorrelationFunctionParameters > * QMCJastrowParameters::getElectronUpElectronDownNuclearParameters (  ) 

Gets an array of QMCThreeBodyCorrelationFunctionParameters describing electron up electron down nuclear interactions.

Definition at line 1191 of file QMCJastrowParameters.cpp.

References EupEdnNuclear.

Referenced by QMCThreeBodyJastrow::jastrowOnGrid(), QMCThreeBodyJastrow::updateAll(), and QMCThreeBodyJastrow::updateOne().

Array1D< QMCThreeBodyCorrelationFunctionParameters > * QMCJastrowParameters::getElectronUpElectronUpNuclearParameters (  ) 

Gets an array of QMCThreeBodyCorrelationFunctionParameters describing electron up electron up nuclear interactions.

Definition at line 1197 of file QMCJastrowParameters.cpp.

References EupEupNuclear.

Referenced by QMCThreeBodyJastrow::jastrowOnGrid(), QMCThreeBodyJastrow::updateAll(), and QMCThreeBodyJastrow::updateOne().

Array1D< QMCThreeBodyCorrelationFunctionParameters > * QMCJastrowParameters::getElectronDownElectronDownNuclearParameters (  ) 

Gets an array of QMCThreeBodyCorrelationFunctionParameters describing electron down electron down nuclear interactions.

Definition at line 1203 of file QMCJastrowParameters.cpp.

References EdnEdnNuclear.

Referenced by QMCThreeBodyJastrow::jastrowOnGrid(), QMCThreeBodyJastrow::updateAll(), and QMCThreeBodyJastrow::updateOne().

Array1D< string > * QMCJastrowParameters::getNucleiTypes (  ) 

Gets an array which is a list of all the different types of nuclei in the molecule being calculated.

Definition at line 1208 of file QMCJastrowParameters.cpp.

References NucleiTypes.

Referenced by QMCJastrowElectronNuclear::evaluate(), QMCThreeBodyJastrow::jastrowOnGrid(), QMCJastrowElectronNuclear::jastrowOnGrid(), QMCThreeBodyJastrow::updateAll(), and QMCThreeBodyJastrow::updateOne().

void QMCJastrowParameters::operator= ( const QMCJastrowParameters rhs  ) 

void QMCJastrowParameters::read ( Array1D< string > &  nucleitypes,
bool  linkparams,
bool  nucCuspReplacement,
int  nelup,
int  neldn,
string  runfile 
)

Loads the state of the object from a file.

Parameters:
nucleitypes list of the different kinds of nuclei
linkparams true if nuclear-electron interactions are strictly the same and false otherwise
nucCuspReplacement indicates whether we need to shut off any electron-nucleus Jastrow functions in the input file
nelup number of up spin electrons
neldn numer of down spin electrons
runfile name of the file to be loaded

Definition at line 814 of file QMCJastrowParameters.cpp.

References Array1D< T >::allocate(), Array1D< T >::dim1(), EdnEdn, EdnEdnNuclear, EdnNuclear, EquivalentElectronUpDownParams, EupEdn, EupEdnNuclear, EupEup, EupEupNuclear, EupNuclear, QMCInput::flags, QMCCorrelationFunctionParameters::getCorrelationFunction(), QMCThreeBodyCorrelationFunctionParameters::getParticle1Type(), QMCCorrelationFunctionParameters::getParticle1Type(), QMCThreeBodyCorrelationFunctionParameters::getParticle2Type(), QMCCorrelationFunctionParameters::getParticle2Type(), QMCThreeBodyCorrelationFunctionParameters::getParticle3Type(), QMCThreeBodyCorrelationFunctionParameters::getThreeBodyCorrelationFunction(), QMCCorrelationFunctionParameters::getTotalNumberOfParameters(), globalInput, QMCFlags::link_Jastrow_parameters, QMCFlags::link_NEE_Jastrows, NucleiTypes, NumberOfEdnEdnParameters, NumberOfEEParameters, NumberOfElectronsDown, NumberOfElectronsUp, NumberOfEupEdnParameters, NumberOfEupEupParameters, NumberOfNEdnEdnParameters, NumberOfNEParameters, NumberOfNEupEdnParameters, NumberOfNEupEupParameters, NumberOfNEupParameters, print(), QMCThreeBodyCorrelationFunction::print(), QMCCorrelationFunction::print(), QMCThreeBodyCorrelationFunctionParameters::read(), QMCCorrelationFunctionParameters::read(), QMCCorrelationFunctionParameters::setParticle1Type(), QMCCorrelationFunctionParameters::setParticle2Type(), and QMCFlags::use_three_body_jastrow.

Referenced by QMCInput::read().


Friends And Related Function Documentation

ostream& operator<< ( ostream &  strm,
QMCJastrowParameters rhs 
) [friend]

Writes the state of the object to an output stream.

Definition at line 1222 of file QMCJastrowParameters.cpp.


Member Data Documentation

Definition at line 250 of file QMCJastrowParameters.h.

Referenced by getNumberEEParameters(), operator=(), and read().

Definition at line 251 of file QMCJastrowParameters.h.

Referenced by getNumberEupEdnParameters(), operator=(), and read().

Definition at line 252 of file QMCJastrowParameters.h.

Referenced by getNumberEupEupParameters(), operator=(), and read().

Definition at line 253 of file QMCJastrowParameters.h.

Referenced by getNumberEdnEdnParameters(), operator=(), and read().

Definition at line 255 of file QMCJastrowParameters.h.

Referenced by getNumberNEParameters(), operator=(), and read().

Definition at line 256 of file QMCJastrowParameters.h.

Referenced by getNumberNEupParameters(), operator=(), and read().

Definition at line 264 of file QMCJastrowParameters.h.

Referenced by getNumberNEupEdnParameters(), operator=(), and read().

Definition at line 265 of file QMCJastrowParameters.h.

Referenced by getNumberNEupEupParameters(), operator=(), and read().

Definition at line 266 of file QMCJastrowParameters.h.

Referenced by getNumberNEdnEdnParameters(), operator=(), and read().

Definition at line 273 of file QMCJastrowParameters.h.

Referenced by getNucleiTypes(), operator=(), print(), and read().


The documentation for this class was generated from the following files:

Generated on Sat Jul 5 16:14:04 2008 for QMcBeaver by  doxygen 1.5.6