PSCF v1.5.0
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 - 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
13#include <pscf/backend/TmplDeclare.h>
14#include <iostream>
15
16namespace Pscf {
17namespace Rp {
18
30 template <int D, class T>
32 {
33
34 public:
35
45
50
51 protected:
52
56 double compute() override;
57
58 // Inherited protected member functions (selected).
59 using Analyzer<D,T>::simulator;
60 using Analyzer<D,T>::system;
61
62 private:
63
64 // Aliases for base classes.
65 using AnalyzerT = Analyzer<D,T>;
66 using AverageAnalyzerT = AverageAnalyzer<D,T>;
67
68 };
69
70 // Explicit instantiation declarations
71 PSCF_TMPL_DECLARE(BinaryChiDerivative)
72
73} // namespace Rp
74} // namespace Pscf
75#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 with respect to chi for binary system.
double compute() override
Compute and return the derivative of H w/ respect to chi.
BinaryChiDerivative(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
~BinaryChiDerivative()=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.