|
PSCF v1.3.3
|
Record of a state of a System (fields + unit cell). More...
#include <FieldState.h>
Public Member Functions | |
Construction and Destruction | |
| FieldState () | |
| Default constructor. | |
| FieldState (System< D > &system) | |
| Constructor, creates association with a System. | |
| ~FieldState () | |
| Destructor. | |
| void | setSystem (System< D > &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. | |
| bool | hasSystem () |
| Has a system been set? | |
| System< D > & | system () |
| Get associated System by reference. | |
Record of a state of a System (fields + unit cell).
The template parameter D is the dimension of space, while parameter FT is a field type.
A FieldState can be used to store either chemical potential or concentration fields, along with an associated UnitCell<D>. Different choices for class FT can be used to store fields in symmetry-adapted basis function, r-grid or k-grid format.
Definition at line 42 of file rpg/scft/sweep/FieldState.h.
| Pscf::Rpg::FieldState< D, FT >::FieldState | ( | ) |
Default constructor.
Definition at line 29 of file rpg/scft/sweep/FieldState.tpp.
| Pscf::Rpg::FieldState< D, FT >::FieldState | ( | System< D > & | system | ) |
Constructor, creates association with a System.
Equivalent to default construction followed by setSystem(system).
| system | associated parent System<D> object. |
Definition at line 39 of file rpg/scft/sweep/FieldState.tpp.
References setSystem(), and system().
| Pscf::Rpg::FieldState< D, FT >::~FieldState | ( | ) |
Destructor.
Definition at line 49 of file rpg/scft/sweep/FieldState.tpp.
| void Pscf::Rpg::FieldState< D, FT >::setSystem | ( | System< D > & | system | ) |
Set association with System, after default construction.
| system | associated parent System<D> object. |
Definition at line 56 of file rpg/scft/sweep/FieldState.tpp.
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 156 of file rpg/scft/sweep/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 162 of file rpg/scft/sweep/FieldState.h.
|
inline |
Get a field for a single monomer type by const reference.
| monomerId | integer monomer type index |
Definition at line 168 of file rpg/scft/sweep/FieldState.h.
|
inline |
Get field for a specific monomer type (non-const reference).
| monomerId | integer monomer type index |
Definition at line 173 of file rpg/scft/sweep/FieldState.h.
|
inline |
Get UnitCell (i.e., lattice type and parameters) by const reference.
Definition at line 179 of file rpg/scft/sweep/FieldState.h.
|
inline |
Get the UnitCell by non-const reference.
Definition at line 185 of file rpg/scft/sweep/FieldState.h.
|
inlineprotected |
Has a system been set?
Definition at line 193 of file rpg/scft/sweep/FieldState.h.
Referenced by setSystem().
|
inlineprotected |
Get associated System by reference.
Definition at line 199 of file rpg/scft/sweep/FieldState.h.
Referenced by FieldState(), and setSystem().