PSCF v1.5.0
CubicLengthDerivative.h
1#ifndef RP_CUBIC_LENGTH_DERIVATIVE_H
2#define RP_CUBIC_LENGTH_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
23 template <int D, class T>
25 {
26 public:
27
33
38
39 protected:
40
44 double compute() override;
45
46 using AverageAnalyzerT = AverageAnalyzer<D,T>;
48 using AverageAnalyzer<D,T>::system;
50
51 };
52
53 // Explicit instantiation declarations
54 PSCF_TMPL_DECLARE(CubicLengthDerivative)
55
56} // namespace Rp
57} // namespace Pscf
58#endif
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.
std::ofstream outputFile_
Output file stream.
Evaluate the derivative of H with respect to cubic box length L.
CubicLengthDerivative(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
~CubicLengthDerivative()=default
Destructor.
double compute() override
Compute and return the derivative of H w/ respect to L.
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.