PSCF v1.5.0
r1/sweep/LinearSweep.h
1#ifndef R1_LINEAR_SWEEP_H
2#define R1_LINEAR_SWEEP_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 "Sweep.h" // base class
12#include "SweepParameter.h" // member
13#include <util/containers/DArray.h>
14#include <util/global.h>
15#include <iostream>
16
17namespace Pscf {
18namespace R1 {
19
20 class System;
21
22 using namespace Util;
23
31 class LinearSweep : public Sweep
32 {
33 public:
34
40
46 void readParameters(std::istream& in);
47
52 void setup();
53
60 void setParameters(double s);
61
62 protected:
63
64 using Sweep::system;
66
67 private:
68
70 int nParameter_;
71
73 DArray< SweepParameter > parameters_;
74
75 };
76
77}
78}
79#endif
LinearSweep(System &system)
Constructor.
void setup()
Setup operation at the beginning of a sweep.
void readParameters(std::istream &in)
Read parameters from param file.
void setParameters(double s)
Set the state before an iteration.
Sweep(System &system)
Constructor.
const System & system() const
Get parent System by reference.
Main class in SCFT simulation of one system.
GArray< ParameterType > parameterTypes_
Definition SweepTmpl.h:311
Dynamically allocatable contiguous array template.
Definition DArray.h:32
File containing preprocessor macros for error handling.
SCFT with real 1D fields.
PSCF package top-level namespace.