1#ifndef RP_SCFT_THERMO_H
2#define RP_SCFT_THERMO_H
11#include <rp/system/SystemConstRef.h>
12#include <pscf/backend/TmplDeclare.h>
37 template <
int D,
class T>
142 void write(std::ostream& out);
208 template <
int D,
class T>
216 template <
int D,
class T>
224 template <
int D,
class T>
232 template <
int D,
class T>
240 template <
int D,
class T>
248 template <
int D,
class T>
Base class for SCFT thermodynamic property calculators.
double fInter() const
Get the interaction contribution to fHelmholtz.
ScftThermo(System< D, T > const &system)
Constructor.
bool hasData() const
Have free energies and pressure been computed?
void clear()
Clear all thermodynamic data.
void write(std::ostream &out)
SystemConstRef< D, T > SystemConstRefT
Base class type name alias.
void compute()
Compute SCFT free energy density and pressure for current fields.
System< D, T > const & system() const
Get the associated System.
double fIdeal() const
Get the ideal gas contribution to fHelmholtz.
double fHelmholtz() const
Get total Helmholtz free energy per monomer / kT.
double fExt() const
Get the external field contribution to fHelmholtz.
double pressure() const
Get the precomputed pressure times monomer volume / kT.
FileMaster const & fileMaster() const
Get the FileMaster.
System< D, T > const & system() const
Get the associated System.
Mask< D, T > const & mask() const
Get the mask (if any).
CFields< D, T > const & c() const
Get the concentration (c) field container.
WFields< D, T > const & h() const
Get the external potential (h) field container (if any).
Mixture< D, T > const & mixture() const
Get the Mixture.
SystemConstRef()
Default constructor.
Interaction const & interaction() const
Get the Interaction.
WFields< D, T > const & w() const
Get the chemical potential (w) field container.
Domain< D, T > const & domain() const
Get the Domain.
Base class template for classes that represent a complete system.
File containing preprocessor macros for error handling.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.