PSCF v1.4.0
Pscf::R1d::SystemAccess Class Reference

Concise accesss to an associated System. More...

#include <SystemAccess.h>

Inheritance diagram for Pscf::R1d::SystemAccess:
Pscf::R1d::HomogeneousComparison Pscf::R1d::Iterator Pscf::R1d::Sweep Pscf::R1d::BinaryRelaxIterator Pscf::R1d::NrIterator Pscf::R1d::LinearSweep

Public Member Functions

 SystemAccess ()
 Default constructor.
 SystemAccess (System &system)
 Constructor.
 ~SystemAccess ()
 Destructor.
virtual void setSystem (System &system)
 Set the system after construction.
Accessors (get objects by reference)
const Systemsystem () const
 Get parent System by reference.
Systemsystem ()
 Get parent System by reference.
const Mixturemixture () const
 Get Mixture by reference.
Mixturemixture ()
 Get Mixture by reference.
const Domaindomain () const
 Get spatial domain (including grid info) by reference.
Domaindomain ()
 Get spatial domain (including grid info) by reference.
const Interactioninteraction () const
 Get interaction (i.e., excess free energy model) by reference.
Interactioninteraction ()
 Get interaction (i.e., excess free energy model) by reference.
FileMasterfileMaster ()
 Get FileMaster by reference.
Fields
DArray< System::WField > & wFields ()
 Get array of all chemical potential fields.
System::WFieldwField (int monomerId)
 Get chemical potential field for a specific monomer type.
DArray< System::CField > & cFields ()
 Get array of all chemical potential fields.
System::CFieldcField (int monomerId)
 Get chemical potential field for a specific monomer type.

Detailed Description

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.

Constructor & Destructor Documentation

◆ SystemAccess() [1/2]

◆ SystemAccess() [2/2]

Pscf::R1d::SystemAccess::SystemAccess ( System & system)

Constructor.

Definition at line 25 of file SystemAccess.cpp.

References system().

◆ ~SystemAccess()

Pscf::R1d::SystemAccess::~SystemAccess ( )

Destructor.

Definition at line 32 of file SystemAccess.cpp.

Member Function Documentation

◆ setSystem()

void Pscf::R1d::SystemAccess::setSystem ( System & system)
virtual

Set the system after construction.

Definition at line 38 of file SystemAccess.cpp.

References system().

◆ system() [1/2]

◆ system() [2/2]

System & Pscf::R1d::SystemAccess::system ( )
inline

Get parent System by reference.

Definition at line 157 of file SystemAccess.h.

References UTIL_ASSERT.

◆ mixture() [1/2]

◆ mixture() [2/2]

Mixture & Pscf::R1d::SystemAccess::mixture ( )
inline

Get Mixture by reference.

Definition at line 175 of file SystemAccess.h.

References UTIL_ASSERT.

◆ domain() [1/2]

◆ domain() [2/2]

Domain & Pscf::R1d::SystemAccess::domain ( )
inline

Get spatial domain (including grid info) by reference.

Definition at line 193 of file SystemAccess.h.

References UTIL_ASSERT.

◆ interaction() [1/2]

const Interaction & Pscf::R1d::SystemAccess::interaction ( ) const
inline

Get interaction (i.e., excess free energy model) by reference.

Definition at line 202 of file SystemAccess.h.

References UTIL_ASSERT.

Referenced by Pscf::R1d::HomogeneousComparison::compute().

◆ interaction() [2/2]

Interaction & Pscf::R1d::SystemAccess::interaction ( )
inline

Get interaction (i.e., excess free energy model) by reference.

Definition at line 211 of file SystemAccess.h.

References UTIL_ASSERT.

◆ fileMaster()

FileMaster & Pscf::R1d::SystemAccess::fileMaster ( )
inline

Get FileMaster by reference.

Definition at line 220 of file SystemAccess.h.

References UTIL_ASSERT.

Referenced by Pscf::R1d::Sweep::outputSolution(), and Pscf::R1d::Sweep::setup().

◆ wFields()

DArray< System::WField > & Pscf::R1d::SystemAccess::wFields ( )
inline

Get array of all chemical potential fields.

The array capacity is equal to the number of monomer types.

Definition at line 230 of file SystemAccess.h.

References UTIL_ASSERT.

Referenced by Pscf::R1d::Sweep::getSolution(), Pscf::R1d::Sweep::outputSolution(), Pscf::R1d::Sweep::reset(), Pscf::R1d::BinaryRelaxIterator::solve(), and Pscf::R1d::NrIterator::solve().

◆ wField()

System::WField & Pscf::R1d::SystemAccess::wField ( int monomerId)
inline

Get chemical potential field for a specific monomer type.

Parameters
monomerIdinteger monomer type index

Definition at line 240 of file SystemAccess.h.

References UTIL_ASSERT.

Referenced by Pscf::R1d::Sweep::extrapolate().

◆ cFields()

DArray< System::CField > & Pscf::R1d::SystemAccess::cFields ( )
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.

Referenced by Pscf::R1d::Sweep::outputSolution(), Pscf::R1d::BinaryRelaxIterator::solve(), and Pscf::R1d::NrIterator::solve().

◆ cField()

System::CField & Pscf::R1d::SystemAccess::cField ( int monomerId)
inline

Get chemical potential field for a specific monomer type.

Parameters
monomerIdinteger monomer type index

Definition at line 259 of file SystemAccess.h.

References UTIL_ASSERT.


The documentation for this class was generated from the following files: