1#ifndef RPG_HAMILTONIAN_ANALYZER_H
2#define RPG_HAMILTONIAN_ANALYZER_H
11#include "AverageListAnalyzer.h"
12#include <rpg/system/System.h>
21 template <
int D>
class System;
132 #ifndef RPG_HAMILTONIAN_ANALYZER_TPP
AverageListAnalyzer(System< D > &system)
Constructor.
void setName(int i, std::string name)
Set name of variable.
void setValue(int i, double value)
Set current value, used by compute function.
Compute averages and output block averages of Hamiltonian components.
Simulator< D > & simulator()
Return reference to parent Simulator.
void compute()
Compute and store values of Hamiltonian components.
Simulator< D > * simulatorPtr_
Pointer to parent Simulator.
HamiltonianAnalyzer(Simulator< D > &simulator, System< D > &system)
Constructor.
virtual void readParameters(std::istream &in)
Read interval and output file name.
System< D > & system()
Return reference to parent system.
System< D > * systemPtr_
Pointer to the parent system.
virtual ~HamiltonianAnalyzer()
Destructor.
Field theoretic simulator (base class).
Main class, representing one complete system.
Calculates the average and variance of a sampled property.
void setClassName(const char *className)
Set class name string.
virtual void save(Serializable::OArchive &ar)
Saves all parameters to an archive.
virtual void loadParameters(Serializable::IArchive &ar)
Load state from archive, without adding Begin and End lines.
BinaryFileIArchive IArchive
Type of input archive used by load method.
BinaryFileOArchive OArchive
Type of output archive used by save method.
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.
Utility classes for scientific computation.