1#ifndef PSPC_BASIS_FIELD_STATE_H
2#define PSPC_BASIS_FIELD_STATE_H
11#include "FieldState.h"
57 void read(
const std::string & filename);
64 void write(
const std::string & filename);
90 #ifndef PSPC_BASIS_FIELD_STATE_TPP
FieldState for fields in symmetry-adapted basis format.
void read(const std::string &filename)
Read state from file.
void getSystemState()
Copy the current state of the associated system.
BasisFieldState()
Default constructor.
void allocate()
Allocate all fields.
~BasisFieldState()
Destructor.
void write(const std::string &filename)
Write state to file.
void setSystemState(bool isFlexible)
Set the state of the associated system to this state.
Record of a state of a System (fields + unit cell).
const DArray< double > & field(int monomerId) const
Get a field for a single monomer type by const reference.
const UnitCell< D > & unitCell() const
Get UnitCell (i.e., lattice type and parameters) by const reference.
const DArray< DArray< double > > & fields() const
Get array of all fields by const reference.
bool hasSystem()
Has a system been set?
System< D > & system()
Get associated System by reference.
void setSystem(System< D > &system)
Set association with System, after default construction.
Main class for SCFT simulation of one system.
Dynamically allocatable contiguous array template.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.