|
PSCF v1.4.0
|
Record of a state of a periodic system (fields + unit cell). More...
#include <FieldState.h>
Public Member Functions | |
Construction and Destruction | |
| FieldState () | |
| Default constructor. | |
| FieldState (ST &system) | |
| Constructor, creates association with a System. | |
| ~FieldState () | |
| Destructor. | |
| void | setSystem (ST &system) |
| Set association with System, after default construction. | |
Accessors | |
| const DArray< FT > & | fields () const |
| Get array of all fields by const reference. | |
| DArray< FT > & | fields () |
| Get array of all chemical potential fields (non-const reference). | |
| const FT & | field (int monomerId) const |
| Get a field for a single monomer type by const reference. | |
| FT & | field (int monomerId) |
| Get field for a specific monomer type (non-const reference). | |
| const UnitCell< D > & | unitCell () const |
| Get UnitCell (i.e., lattice type and parameters) by const reference. | |
| UnitCell< D > & | unitCell () |
| Get the UnitCell by non-const reference. | |
Protected Member Functions | |
| bool | hasSystem () |
| Has a system been set? | |
| ST & | system () |
| Get associated System by reference. | |
Record of a state of a periodic system (fields + unit cell).
Template parameters:
A FieldState<D, FT, ST> has:
Specializations of FieldState can be used to store either chemical potential or concentration fields, along with an associated unit cell. Different choices for class FT can be used to store fields in symmetry-adapted basis function, r-grid or k-grid format.
FieldState is a standard class template, in which all member function definitions are located in this header file.
Definition at line 46 of file FieldState.h.
| Pscf::Prdc::FieldState< D, FT, ST >::FieldState | ( | ) |
Default constructor.
Definition at line 208 of file FieldState.h.
| Pscf::Prdc::FieldState< D, FT, ST >::FieldState | ( | ST & | system | ) |
Constructor, creates association with a System.
Equivalent to default construction followed by setSystem(system).
| system | associated parent ST object. |
Definition at line 218 of file FieldState.h.
References setSystem(), and system().
| Pscf::Prdc::FieldState< D, FT, ST >::~FieldState | ( | ) |
Destructor.
Definition at line 228 of file FieldState.h.
| void Pscf::Prdc::FieldState< D, FT, ST >::setSystem | ( | ST & | system | ) |
Set association with System, after default construction.
| system | associated parent ST object. |
Definition at line 235 of file FieldState.h.
References hasSystem(), system(), and UTIL_CHECK.
Referenced by FieldState().
|
inline |
Get array of all fields by const reference.
The array capacity is equal to the number of monomer types.
Definition at line 159 of file FieldState.h.
|
inline |
Get array of all chemical potential fields (non-const reference).
The array capacity is equal to the number of monomer types.
Definition at line 164 of file FieldState.h.
|
inline |
Get a field for a single monomer type by const reference.
| monomerId | integer monomer type index |
Definition at line 169 of file FieldState.h.
|
inline |
Get field for a specific monomer type (non-const reference).
| monomerId | integer monomer type index |
Definition at line 174 of file FieldState.h.
|
inline |
Get UnitCell (i.e., lattice type and parameters) by const reference.
Definition at line 179 of file FieldState.h.
|
inline |
Get the UnitCell by non-const reference.
Definition at line 184 of file FieldState.h.
|
inlineprotected |
|
inlineprotected |
Get associated System by reference.
Definition at line 196 of file FieldState.h.
Referenced by FieldState(), and setSystem().