PSCF v1.5.0
PerturbationDerivative.h
1#ifndef RP_PERTURBATION_DERIVATIVE_H
2#define RP_PERTURBATION_DERIVATIVE_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/AverageAnalyzer.h> // base class template
12#include <pscf/backend/TmplDeclare.h>
13
14namespace Pscf {
15namespace Rp {
16
28 template <int D, class T>
30 {
31
32 public:
33
42
47
48 protected:
49
53 double compute() override;
54
55 // Aliases for base classes.
56 using AnalyzerT = Analyzer<D,T>;
57 using AverageAnalyzerT = AverageAnalyzer<D,T>;
58
59 // Inherited protected member functions (selected).
60 using Analyzer<D,T>::simulator;
61 using Analyzer<D,T>::system;
62
63 };
64
65 // Explicit instantiation declarations
66 PSCF_TMPL_DECLARE(PerturbationDerivative)
67
68} // namespace Rp
69} // namespace Pscf
70#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
System< D, T > & system()
Get the parent System by reference.
Definition Analyzer.h:243
AverageAnalyzer(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
Evaluate derivative of H w/ respect to perturbation parameter lambda.
PerturbationDerivative(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
double compute() override
Compute and return the derivative of H w/ respect to lambda.
~PerturbationDerivative()=default
Destructor.
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.