PSCF v1.4.0
HomogeneousComparison.h
1#ifndef R1D_HOMOGENEOUS_COMPARISON_H
2#define R1D_HOMOGENEOUS_COMPARISON_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 <r1d/system/SystemAccess.h> // base class
12
13namespace Pscf {
14 class FhMixture;
15 class FhInteraction;
16}
17
18namespace Pscf {
19namespace R1d {
20
27 {
28
29 public:
30
35
40
45
74 void compute(int mode);
75
79 void clear();
80
87 void output(int mode, std::ostream& out) const;
88
89 private:
90
95
100
105
110
114 FhMixture* fhMixturePtr_;
115
119 FhInteraction* fhInteractionPtr_;
120
124 FhMixture& fhMixture() { return *fhMixturePtr_; }
125
129 FhMixture const & fhMixture() const
130 { return *fhMixturePtr_; }
131
135 FhInteraction& fhInteraction() { return *fhInteractionPtr_; }
136
140 FhInteraction const & fhInteraction() const
141 { return *fhInteractionPtr_; }
142
143 bool hasData_;
144
145 };
146
147} // namespace R1d
148} // namespace Pscf
149#endif
Flory-Huggins interaction model.
A spatially homogeneous mixture.
Definition FhMixture.h:35
void output(int mode, std::ostream &out) const
Output comparison to a homogeneous reference system.
void compute(int mode)
Compute properties of a homogeneous reference system.
void clear()
Compute computed properties of a homogeneous reference system.
SystemAccess()
Default constructor.
const System & system() const
Get parent System by reference.
Main class in SCFT simulation of one system.
Dynamically allocatable contiguous array template.
Definition DArray.h:32
SCFT with real 1D fields.
PSCF package top-level namespace.