1#ifndef PRDC_SYSTEM_CONST_REF_TMPL_H
2#define PRDC_SYSTEM_CONST_REF_TMPL_H
40 using MixtureT =
typename SystemT::MixtureT;
41 using InteractionT =
typename SystemT::InteractionT;
42 using DomainT =
typename SystemT::DomainT;
43 using CFieldsT =
typename SystemT::CFieldsT;
44 using WFieldsT =
typename SystemT::WFieldsT;
45 using MaskT =
typename SystemT::MaskT;
46 using RFieldT =
typename SystemT::RFieldT;
72 {
return *systemPtr_; }
76 {
return *mixturePtr_; }
80 {
return *interactionPtr_; }
84 {
return *domainPtr_; }
87 CFieldsT
const &
c()
const
91 WFieldsT
const &
w()
const
95 WFieldsT
const &
h()
const
100 {
return *maskPtr_; }
104 {
return *fileMasterPtr_; }
109 SystemT
const * systemPtr_;
112 MixtureT
const * mixturePtr_;
115 InteractionT
const * interactionPtr_;
118 DomainT
const * domainPtr_;
121 CFieldsT
const * cPtr_;
124 WFieldsT
const * wPtr_;
127 WFieldsT
const * hPtr_;
130 MaskT
const * maskPtr_;
MaskT const & mask() const
Get the mask.
WFieldsT const & w() const
Get the chemical potential (w) field container.
CFieldsT const & c() const
Get the concentration (c) field container.
void associate(SystemT const &system)
Create associations with a system and its components.
SystemT const & system() const
SystemConstRefTmpl(SystemT const &system)
Constructor.
InteractionT const & interaction() const
Get the Interaction.
~SystemConstRefTmpl()
Destructor.
WFieldsT const & h() const
Get the external potential (h) field container.
MixtureT const & mixture() const
Get the Mixture.
DomainT const & domain() const
Get the Domain.
SystemConstRefTmpl()
Default constructor.
FileMaster const & fileMaster() const
Get the FileMaster.
A FileMaster manages input and output files for a simulation.
Periodic fields and crystallography.
PSCF package top-level namespace.
Utility classes for scientific computation.