|
PSCF v1.3.3
|
FieldState for fields in symmetry-adapted basis format. More...
#include <BasisFieldState.h>
Public Member Functions | |
| BasisFieldState () | |
| Default constructor. | |
| BasisFieldState (System< D > &system) | |
| Constructor, create association with a parent system. | |
| ~BasisFieldState () | |
| Destructor. | |
| void | allocate () |
| Allocate all fields. | |
| void | read (const std::string &filename) |
| Read state from file. | |
| void | write (const std::string &filename) |
| Write state to file. | |
| void | getSystemState () |
| Copy the current state of the associated system. | |
| void | setSystemState (bool isFlexible) |
| Set the state of the associated system to this state. | |
| Public Member Functions inherited from Pscf::Rpc::FieldState< D, DArray< double > > | |
| FieldState () | |
| Default constructor. | |
| ~FieldState () | |
| Destructor. | |
| void | setSystem (System< D > &system) |
| Set association with System, after default construction. | |
| const DArray< FT > & | fields () const |
| Get array of all fields by const reference. | |
| 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. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Pscf::Rpc::FieldState< D, DArray< double > > | |
| bool | hasSystem () |
| Has a system been set? | |
| System< D > & | system () |
| Get associated System by reference. | |
FieldState for fields in symmetry-adapted basis format.
Definition at line 24 of file rpc/scft/sweep/BasisFieldState.h.
| Pscf::Rpc::BasisFieldState< D >::BasisFieldState | ( | ) |
Default constructor.
Definition at line 27 of file rpc/scft/sweep/BasisFieldState.tpp.
References Pscf::Rpc::FieldState< D, DArray< double > >::FieldState().
| Pscf::Rpc::BasisFieldState< D >::BasisFieldState | ( | System< D > & | system | ) |
Constructor, create association with a parent system.
| system | associated parent system |
Definition at line 35 of file rpc/scft/sweep/BasisFieldState.tpp.
References Pscf::Rpc::FieldState< D, DArray< double > >::FieldState(), and Pscf::Rpc::FieldState< D, DArray< double > >::system().
| Pscf::Rpc::BasisFieldState< D >::~BasisFieldState | ( | ) |
Destructor.
Definition at line 43 of file rpc/scft/sweep/BasisFieldState.tpp.
| void Pscf::Rpc::BasisFieldState< D >::allocate | ( | ) |
Allocate all fields.
Precondition: hasSystem() == true
Definition at line 50 of file rpc/scft/sweep/BasisFieldState.tpp.
References Pscf::Rpc::FieldState< D, DArray< double > >::field(), Pscf::Rpc::FieldState< D, DArray< double > >::fields(), Pscf::Rpc::FieldState< D, DArray< double > >::hasSystem(), Pscf::Rpc::FieldState< D, DArray< double > >::system(), and UTIL_CHECK.
Referenced by getSystemState(), and read().
| void Pscf::Rpc::BasisFieldState< D >::read | ( | const std::string & | filename | ) |
Read state from file.
| filename | name of input w-field file in symmetry-adapted format. |
Definition at line 79 of file rpc/scft/sweep/BasisFieldState.tpp.
References allocate(), Pscf::Rpc::FieldState< D, DArray< double > >::fields(), Pscf::Rpc::FieldIo< D >::readFieldsBasis(), Pscf::Rpc::FieldState< D, DArray< double > >::system(), and Pscf::Rpc::FieldState< D, DArray< double > >::unitCell().
Referenced by pscfpp.command.Script::__init__(), pscfpp.field.Field::__init__(), pscfpp.output.Thermo::__init__(), pscfpp.param.Array::__init__(), pscfpp.param.Composite::__init__(), and pscfpp.param.Matrix::__init__().
| void Pscf::Rpc::BasisFieldState< D >::write | ( | const std::string & | filename | ) |
Write state to file.
Write fields in symmetry-adapted basis format.
| filename | name of output file, in symmetry-adapated format. |
Definition at line 92 of file rpc/scft/sweep/BasisFieldState.tpp.
References Pscf::Rpc::FieldState< D, DArray< double > >::fields(), Pscf::Rpc::FieldState< D, DArray< double > >::system(), Pscf::Rpc::FieldState< D, DArray< double > >::unitCell(), and Pscf::Rpc::FieldIo< D >::writeFieldsBasis().
| void Pscf::Rpc::BasisFieldState< D >::getSystemState | ( | ) |
Copy the current state of the associated system.
Copy the fields and the unit cell.
Definition at line 102 of file rpc/scft/sweep/BasisFieldState.tpp.
References allocate(), Pscf::Rpc::FieldState< D, DArray< double > >::field(), Pscf::Rpc::FieldState< D, DArray< double > >::system(), and Pscf::Rpc::FieldState< D, DArray< double > >::unitCell().
| void Pscf::Rpc::BasisFieldState< D >::setSystemState | ( | bool | isFlexible | ) |
Set the state of the associated system to this state.
| isFlexible | update system unit cell iff isFlexible == true. |
Definition at line 125 of file rpc/scft/sweep/BasisFieldState.tpp.
References Pscf::Rpc::FieldState< D, DArray< double > >::fields(), Pscf::Rpc::FieldState< D, DArray< double > >::system(), and Pscf::Rpc::FieldState< D, DArray< double > >::unitCell().