PSCF v1.1
|
Concise accesss to an associated System. More...
#include <SystemAccess.h>
Public Member Functions | |
SystemAccess () | |
Default constructor. More... | |
SystemAccess (System &system) | |
Constructor. More... | |
~SystemAccess () | |
Destructor. More... | |
virtual void | setSystem (System &system) |
Set the system after construction. More... | |
Accessors (get objects by reference) | |
const System & | system () const |
Get parent System by reference. More... | |
System & | system () |
Get parent System by reference. More... | |
const Mixture & | mixture () const |
Get Mixture by reference. More... | |
Mixture & | mixture () |
Get Mixture by reference. More... | |
const Domain & | domain () const |
Get spatial domain (including grid info) by reference. More... | |
Domain & | domain () |
Get spatial domain (including grid info) by reference. More... | |
const Interaction & | interaction () const |
Get interaction (i.e., excess free energy model) by reference. More... | |
Interaction & | interaction () |
Get interaction (i.e., excess free energy model) by reference. More... | |
const Homogeneous::Mixture & | homogeneous () const |
Get homogeneous mixture (for reference calculations). More... | |
Homogeneous::Mixture & | homogeneous () |
Get homogeneous mixture (for reference calculations). More... | |
FileMaster & | fileMaster () |
Get FileMaster by reference. More... | |
Fields | |
DArray< System::WField > & | wFields () |
Get array of all chemical potential fields. More... | |
System::WField & | wField (int monomerId) |
Get chemical potential field for a specific monomer type. More... | |
DArray< System::CField > & | cFields () |
Get array of all chemical potential fields. More... | |
System::CField & | cField (int monomerId) |
Get chemical potential field for a specific monomer type. More... | |
Concise accesss to an associated System.
This class is intended to be a base class for classes that maintain a pointer to an associated system, and that implement code that frequently accesses the main members of that System.
Definition at line 27 of file SystemAccess.h.
Pscf::Fd1d::SystemAccess::SystemAccess | ( | ) |
Default constructor.
Definition at line 18 of file SystemAccess.cpp.
Pscf::Fd1d::SystemAccess::SystemAccess | ( | System & | system | ) |
Constructor.
Definition at line 25 of file SystemAccess.cpp.
Pscf::Fd1d::SystemAccess::~SystemAccess | ( | ) |
Destructor.
Definition at line 32 of file SystemAccess.cpp.
|
virtual |
Set the system after construction.
Definition at line 38 of file SystemAccess.cpp.
References system().
Referenced by Pscf::Fd1d::System::readParameters().
|
inline |
Get parent System by reference.
Definition at line 158 of file SystemAccess.h.
References UTIL_ASSERT.
Referenced by Pscf::Fd1d::HomogeneousComparison::output(), Pscf::Fd1d::Sweep::outputSolution(), Pscf::Fd1d::Sweep::outputSummary(), setSystem(), Pscf::Fd1d::LinearSweep::setup(), Pscf::Fd1d::Sweep::solve(), Pscf::Fd1d::BinaryRelaxIterator::solve(), Pscf::Fd1d::NrIterator::solve(), and Pscf::Fd1d::Sweep::Sweep().
|
inline |
Get parent System by reference.
Definition at line 167 of file SystemAccess.h.
References UTIL_ASSERT.
|
inline |
Get Mixture by reference.
Definition at line 176 of file SystemAccess.h.
References Pscf::Fd1d::System::mixture(), and UTIL_ASSERT.
Referenced by Pscf::Fd1d::Sweep::checkAllocation(), Pscf::Fd1d::HomogeneousComparison::compute(), Pscf::Fd1d::Sweep::extrapolate(), Pscf::Fd1d::HomogeneousComparison::output(), and Pscf::Fd1d::BinaryRelaxIterator::solve().
|
inline |
Get Mixture by reference.
Definition at line 185 of file SystemAccess.h.
References Pscf::Fd1d::System::mixture(), and UTIL_ASSERT.
|
inline |
Get spatial domain (including grid info) by reference.
Definition at line 194 of file SystemAccess.h.
References Pscf::Fd1d::System::domain(), and UTIL_ASSERT.
Referenced by Pscf::Fd1d::Sweep::checkAllocation(), Pscf::Fd1d::HomogeneousComparison::compute(), Pscf::Fd1d::Sweep::extrapolate(), Pscf::Fd1d::HomogeneousComparison::output(), Pscf::Fd1d::Sweep::outputSummary(), Pscf::Fd1d::BinaryRelaxIterator::readParameters(), Pscf::Fd1d::BinaryRelaxIterator::solve(), and Pscf::Fd1d::NrIterator::solve().
|
inline |
Get spatial domain (including grid info) by reference.
Definition at line 203 of file SystemAccess.h.
References Pscf::Fd1d::System::domain(), and UTIL_ASSERT.
|
inline |
Get interaction (i.e., excess free energy model) by reference.
Definition at line 212 of file SystemAccess.h.
References Pscf::Fd1d::System::interaction(), and UTIL_ASSERT.
Referenced by Pscf::Fd1d::HomogeneousComparison::compute().
|
inline |
Get interaction (i.e., excess free energy model) by reference.
Definition at line 221 of file SystemAccess.h.
References Pscf::Fd1d::System::interaction(), and UTIL_ASSERT.
const Homogeneous::Mixture & Pscf::Fd1d::SystemAccess::homogeneous | ( | ) | const |
Get homogeneous mixture (for reference calculations).
Referenced by Pscf::Fd1d::HomogeneousComparison::compute(), and Pscf::Fd1d::HomogeneousComparison::output().
|
inline |
Get homogeneous mixture (for reference calculations).
Definition at line 240 of file SystemAccess.h.
References Pscf::Fd1d::System::homogeneous(), and UTIL_ASSERT.
|
inline |
Get FileMaster by reference.
Definition at line 230 of file SystemAccess.h.
References Pscf::Fd1d::System::fileMaster(), and UTIL_ASSERT.
Referenced by Pscf::Fd1d::Sweep::outputSolution(), and Pscf::Fd1d::Sweep::setup().
|
inline |
Get array of all chemical potential fields.
The array capacity is equal to the number of monomer types.
Definition at line 250 of file SystemAccess.h.
References UTIL_ASSERT, and Pscf::Fd1d::System::wFields().
Referenced by Pscf::Fd1d::Sweep::getSolution(), Pscf::Fd1d::Sweep::outputSolution(), Pscf::Fd1d::Sweep::reset(), Pscf::Fd1d::BinaryRelaxIterator::solve(), and Pscf::Fd1d::NrIterator::solve().
|
inline |
Get chemical potential field for a specific monomer type.
monomerId | integer monomer type index |
Definition at line 260 of file SystemAccess.h.
References UTIL_ASSERT, and Pscf::Fd1d::System::wField().
Referenced by Pscf::Fd1d::Sweep::extrapolate().
|
inline |
Get array of all chemical potential fields.
The array capacity is equal to the number of monomer types.
Definition at line 270 of file SystemAccess.h.
References Pscf::Fd1d::System::cFields(), and UTIL_ASSERT.
Referenced by Pscf::Fd1d::Sweep::outputSolution(), Pscf::Fd1d::BinaryRelaxIterator::solve(), and Pscf::Fd1d::NrIterator::solve().
|
inline |
Get chemical potential field for a specific monomer type.
monomerId | integer monomer type index |
Definition at line 279 of file SystemAccess.h.
References Pscf::Fd1d::System::cField(), and UTIL_ASSERT.