PSCF v1.1
fd1d/sweep/LinearSweep.h
1#ifndef FD1D_LINEAR_SWEEP_H
2#define FD1D_LINEAR_SWEEP_H
3
4/*
5* PSCF - Polymer Self-Consistent Field Theory
6*
7* Copyright 2016 - 2022, The Regents of the University of Minnesota
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 Fd1d {
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
67 void outputSummary(std::ostream& out);
68
69 protected:
70
71 using Sweep::system;
72
73 private:
74
76 int nParameter_;
77
79 DArray< SweepParameter > parameters_;
80
81 };
82
83}
84}
85#endif
Base class for a sweep in parameter space where parameters change linearly with the sweep variable.
void setParameters(double s)
Set the state before an iteration.
void outputSummary(std::ostream &out)
Output data to a running summary.
void readParameters(std::istream &in)
Read parameters from param file.
void setup()
Setup operation at the beginning of a sweep.
Solve a sequence of problems along a line in parameter space.
const System & system() const
Get parent System by reference.
Definition: SystemAccess.h:158
Main class in SCFT simulation of one system.
Definition: fd1d/System.h:63
double s(int i) const
Get the value of s for a stored solution, with i = 0 most recent.
Definition: SweepTmpl.h:90
Dynamically allocatable contiguous array template.
Definition: DArray.h:32
File containing preprocessor macros for error handling.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.
Definition: accumulators.mod:1