11#include <pscf/math/IntVec.h>
12#include <util/containers/DArray.h>
13#include <pscf/backend/TmplDeclare.h>
17 template <
int D,
class T>
class RField;
42 template <
int D,
class T>
An IntVec<D, T> is a D-component vector of elements of integer type T.
SimState stores the state used by a FTS simulation.
double perturbationHamiltonian
Perturbation to Hamiltonian value (if any).
bool needsHamiltonian
True iff Hamiltonian components need to be saved.
double hamiltonian
Field theoretic Hamiltonian value (total).
bool needsCc
True iff cc fields need to be saved.
void allocate(int nMonomer, IntVec< D > const &dimensions)
Allocate memory for stored fields.
bool needsDc
True iff dc fields need to be saved.
~SimState()=default
Destructor.
DArray< RField< D, T > > dc
Functional derivatives of the Hamiltonian on a real space grid.
double idealHamiltonian
Ideal gas contribution to Hamiltonian.
DArray< RField< D, T > > cc
Eigenvector components of c fields on a real space grid.
DArray< RField< D, T > > w
Chemical potential fields, r-grid format, indexed by monomer.
bool hasData
Does this object currently store data?
bool isAllocated
Has memory been allocated for the fields?
DArray< RField< D, T > > wc
Chemical potential fields, r-grid format, indexed by eigenvector.
double fieldHamiltonian
Quadratic field contribution to Hamiltonian value.
Dynamically allocatable contiguous array template.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.