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