GLAC  1.0
Public Member Functions
LatticeActionChargeDensity Class Reference

Method for calculating and storing the topological charge and energy density at every point of the lattice. More...

#include <latticeactionchargedensity.h>

Inheritance diagram for LatticeActionChargeDensity:
[legend]
Collaboration diagram for LatticeActionChargeDensity:
[legend]

Public Member Functions

 LatticeActionChargeDensity (bool flow)
 
 ~LatticeActionChargeDensity ()
 
void calculate (Lattice< SU3 > *lattice, unsigned int iObs)
 Correlator::calculate calculates a observable. More...
 
void initializeObservableStorer (bool storeFlowObservable)
 Correlator::initializeObservableStorer initializes ObservableStorer. More...
 
void writeObservableToFile (double acceptanceRatio)
 Correlator::writeObservableToFile calls the ObservableStorer for writing observable to file. More...
 
void writeFlowObservablesToFile (unsigned int iFlow)
 Correlator::writeFlowObservablesToFile. More...
 
void reset ()
 Correlator::reset resets ObservableStorer. More...
 
void runStatistics ()
 Correlator::runStatistics. More...
 
void printHeader ()
 Correlator::printHeader prints a the observable name for output in header. More...
 
void printObservable (unsigned int iObs)
 Correlator::printObservable prints the observable for the output. More...
 
void printStatistics ()
 Correlator::printStatistics prints statistics from ObservableStorer. More...
 
std::vector< double > getObservablesVector (unsigned int iObs)
 Correlator::getObservablesVector. More...
 
void copyObservable (unsigned int iObs, std::vector< double > obs)
 Correlator::copyObservable copies the observable if has already been calculated at zero flow time. More...
 
- Public Member Functions inherited from Correlator
 Correlator (bool storeFlowObservable)
 Correlator::Correlator. More...
 
 Correlator ()
 Correlator::Correlator. More...
 
virtual ~Correlator ()
 
virtual double getObservable (unsigned int iObs)
 Correlator::getObservable. More...
 
virtual std::string getObservableName ()
 
virtual int getHeaderWidth ()
 

Additional Inherited Members

- Protected Attributes inherited from Correlator
std::vector< unsigned int > m_N
 
double m_latticeSize
 
double m_a
 
const int m_headerWidth = 20
 
const std::string m_observableName = "Correlator"
 
const std::string m_observableNameCompact = "correlator"
 
ObservableStorerm_observable = nullptr
 
bool m_storeFlowObservable = false
 

Detailed Description

Method for calculating and storing the topological charge and energy density at every point of the lattice.

The energy is given by,

\[ E(n) = -\frac{1}{64} \sum_{\mu<\nu} \big(\tilde{C}_{\mu\nu}(n)\big)^2, \]

and the topological charge is given by,

\[ q(n) = \frac{1}{32\pi^2} \epsilon_{\mu\nu\rho\sigma} \mathrm{tr}\left[F_{\mu\nu}(n)F_{\rho\sigma}(n)\right]. \]

where \(n\) is the position in the lattice. \(F_{\nu\mu}\) is the clover.

Author
Mathias M. Vege
Version
1.0
Date
2017-2019

Constructor & Destructor Documentation

◆ LatticeActionChargeDensity()

LatticeActionChargeDensity::LatticeActionChargeDensity ( bool  flow)
Here is the call graph for this function:

◆ ~LatticeActionChargeDensity()

LatticeActionChargeDensity::~LatticeActionChargeDensity ( )

Member Function Documentation

◆ calculate()

void LatticeActionChargeDensity::calculate ( Lattice< SU3 > *  lattice,
unsigned int  iObs 
)
virtual

Correlator::calculate calculates a observable.

Parameters
latticepointer to lattice of SU3 matrices
iObsnumber of the observable

Reimplemented from Correlator.

Here is the call graph for this function:

◆ copyObservable()

void LatticeActionChargeDensity::copyObservable ( unsigned int  iObs,
std::vector< double >  obs 
)
virtual

Correlator::copyObservable copies the observable if has already been calculated at zero flow time.

Parameters
iObsobservable number.
obsvector containing observable information. Is a vector in case it consists of multiple values(e.g. topc in Euclidean time).

Reimplemented from Correlator.

◆ getObservablesVector()

std::vector< double > LatticeActionChargeDensity::getObservablesVector ( unsigned int  iObs)
virtual

Correlator::getObservablesVector.

Parameters
iObs
Returns
a vector containing the observables at given iObs.

Reimplemented from Correlator.

◆ initializeObservableStorer()

void LatticeActionChargeDensity::initializeObservableStorer ( bool  storeFlowObservable)
virtual

Correlator::initializeObservableStorer initializes ObservableStorer.

Parameters
storeFlowObservable

Reimplemented from Correlator.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printHeader()

void LatticeActionChargeDensity::printHeader ( )
virtual

Correlator::printHeader prints a the observable name for output in header.

Reimplemented from Correlator.

Here is the call graph for this function:

◆ printObservable()

void LatticeActionChargeDensity::printObservable ( unsigned int  iObs)
virtual

Correlator::printObservable prints the observable for the output.

Parameters
iObs

Reimplemented from Correlator.

Here is the call graph for this function:

◆ printStatistics()

void LatticeActionChargeDensity::printStatistics ( )
virtual

Correlator::printStatistics prints statistics from ObservableStorer.

Reimplemented from Correlator.

Here is the call graph for this function:

◆ reset()

void LatticeActionChargeDensity::reset ( )
virtual

Correlator::reset resets ObservableStorer.

Reimplemented from Correlator.

Here is the call graph for this function:

◆ runStatistics()

void LatticeActionChargeDensity::runStatistics ( )
virtual

Correlator::runStatistics.

Gathers results and performs statistics in the ObservableStorer object.

Reimplemented from Correlator.

Here is the call graph for this function:

◆ writeFlowObservablesToFile()

void LatticeActionChargeDensity::writeFlowObservablesToFile ( unsigned int  iFlow)
virtual

Correlator::writeFlowObservablesToFile.

Parameters
iFlowGathers results and performs statistics in the ObservableStorer object.

Reimplemented from Correlator.

Here is the call graph for this function:

◆ writeObservableToFile()

void LatticeActionChargeDensity::writeObservableToFile ( double  acceptanceRatio)
virtual

Correlator::writeObservableToFile calls the ObservableStorer for writing observable to file.

Parameters
acceptanceRatio

Reimplemented from Correlator.

Here is the call graph for this function:

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