PSCF v1.5.0
HamiltonianAnalyzer.h
1#ifndef RP_HAMILTONIAN_ANALYZER_H
2#define RP_HAMILTONIAN_ANALYZER_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2026, David Morse (morse012@um.edu) and co-authors
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <rp/fts/analyzer/AverageListAnalyzer.h> // base class template
12
13#include <pscf/backend/TmplDeclare.h>
14#include <iostream>
15
16namespace Pscf {
17namespace Rp {
18
35 template <int D, class T>
37 {
38
39 public:
40
49
54
60 void readParameters(std::istream& in) override;
61
62 protected:
63
67 void compute() override;
68
69 // Aliases for base classes.
70 using AverageListAnalyzerT = AverageListAnalyzer<D,T>;
71 using AnalyzerT = Analyzer<D,T>;
72
73 // Inherited protected member functions (selected).
74 using Analyzer<D,T>::simulator;
75 using Analyzer<D,T>::system;
76
77 private:
78
80 int idealId_;
81
83 int fieldId_;
84
86 int totalId_;
87
88 };
89
90 // Explicit instantiation declarations
91 PSCF_TMPL_DECLARE(HamiltonianAnalyzer)
92
93}
94}
95#endif
Abstract base for periodic output and/or analysis actions.
Definition Analyzer.h:49
Simulator< D, T > & simulator()
Get the parent Simulator by reference.
Definition Analyzer.h:233
AverageListAnalyzer(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
System< D, T > & system()
Get the parent System by reference.
Definition Analyzer.h:243
Compute averages and output block averages of Hamiltonian components.
HamiltonianAnalyzer(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
~HamiltonianAnalyzer()=default
Destructor.
void readParameters(std::istream &in) override
Read interval and output file name.
void compute() override
Compute and store values of Hamiltonian components.
Base class for field theoretic PS-FTS simulator.
Definition Simulator.h:93
Base class template for classes that represent a complete system.
Code for programs that simulate real-valued periodic fields.
Definition param_pc.dox:2
PSCF package top-level namespace.