1#ifndef RPC_SIM_STATE_TPP
2#define RPC_SIM_STATE_TPP
50 wc.allocate(nMonomer);
51 for (
int i = 0; i < nMonomer; ++i) {
52 w[i].allocate(dimensions);
53 wc[i].allocate(dimensions);
56 cc.allocate(nMonomer);
57 for (
int i = 0; i < nMonomer; ++i) {
58 cc[i].allocate(dimensions);
62 dc.allocate(nMonomer-1);
63 for (
int i = 0; i < nMonomer - 1; ++i) {
64 dc[i].allocate(dimensions);
An IntVec<D, T> is a D-component vector of elements of integer type T.
Fields and FFTs for periodic boundary conditions (CPU)
Real periodic fields, SCFT and PS-FTS (CPU).
PSCF package top-level namespace.
bool hasData
Does this object currently store data?
double fieldHamiltonian
Quadratic field contribution to Hamiltonian value.
bool needsHamiltonian
True iff Hamiltonian components need to be saved.
DArray< RField< D > > cc
Eigenvector components of c fields on a real space grid.
bool needsDc
True iff dc fields need to be saved.
void allocate(int nMonomer, IntVec< D > const &dimensions)
Allocate memory for fields.
DArray< RField< D > > dc
Functional derivatives of the Hamiltonian on a real space grid.
double idealHamiltonian
Ideal gas contribution to Hamiltonian.
DArray< RField< D > > wc
Chemical potential fields, r-grid format, indexed by eigenvector.
bool needsCc
True iff cc fields need to be saved.
bool isAllocated
Has memory been allocated for the fields?
DArray< RField< D > > w
Chemical potential fields, r-grid format, indexed by monomer.
double hamiltonian
Field theoretic Hamiltonian value (total).