1#ifndef RP_BASIS_FIELD_STATE_H
2#define RP_BASIS_FIELD_STATE_H
11#include <pscf/fieldIo/FieldState.h>
12#include <pscf/backend/TmplDeclare.h>
19 template <
int D,
class T>
class FieldIo;
20 template <
int D,
class T>
class System;
39 template <
int D,
class T>
41 :
public FieldState<D, DArray<double>, System<D,T> >
71 void read(
const std::string & filename);
78 void write(
const std::string & filename);
System< D, T > & system()
const DArray< double > & field(int monomerId) const
const UnitCell< D > & unitCell() const
const DArray< FT > & fields() const
FieldState for fields in symmetry-adapted basis format.
BasisFieldState()
Default constructor.
void write(const std::string &filename)
Write state to file.
void getSystemState()
Store the current state of the associated system.
void allocate()
Allocate all fields.
void read(const std::string &filename)
Read state from file.
void setSystemState(bool newCellParams)
Set the state of the associated system to this state.
System< D, T > & system()
Get associated System by reference.
File input/output, format conversions and other utilities for fields.
Base class template for classes that represent a complete system.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.