PSCF v1.4.0
fts/analyzer/BinaryChiDerivative.h
1#ifndef RP_CHI_DERIVATIVE_H
2#define RP_CHI_DERIVATIVE_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <iostream>
12
13namespace Pscf {
14namespace Rp {
15
32 template <int D, class T>
33 class BinaryChiDerivative : public T::AverageAnalyzer
34 {
35
36 protected:
37
44 BinaryChiDerivative(typename T::Simulator& simulator,
45 typename T::System& system);
46
51
55 double compute() override;
56
57 // Aliases for base classes.
58 using AnalyzerT = typename T::Analyzer;
59 using AverageAnalyzerT = typename T::AverageAnalyzer;
60
61 // Inherited protected member functions (selected).
62 using AnalyzerT::simulator;
63 using AnalyzerT::system;
64
65 };
66
67}
68}
69#endif
double compute() override
Compute and return the derivative of H w/ respect to chi.
~BinaryChiDerivative()=default
Destructor.
BinaryChiDerivative(typename T::Simulator &simulator, typename T::System &system)
Constructor.
Class templates for real-valued periodic fields.
PSCF package top-level namespace.