1#ifndef PSCF_AMBD_INTERACTION_H
2#define PSCF_AMBD_INTERACTION_H
11#include <pscf/inter/Interaction.h>
12#include <util/containers/Array.h>
13#include <util/containers/Matrix.h>
74 double chi(
int i,
int j)
const;
99 double p(
int i,
int j)
const;
123 double sumChiInverse_;
136 {
return nMonomer_; }
139 {
return chi_(i, j); }
142 {
return chiInverse_(i, j); }
148 {
return sumChiInverse_; }
Modified interaction to compute residual defn.
double chiInverse(int i, int j) const
Return one element of the inverse chi matrix.
double chi(int i, int j) const
Return one element of the chi matrix.
int nMonomer() const
Get number of monomer types.
double sumChiInverse() const
Return sum of elements of the inverse chi matrix.
AmbdInteraction()
Constructor.
void setNMonomer(int nMonomer)
Set number of monomers and allocate required memory.
void update(Interaction const &interaction)
Update all computed quantities.
virtual ~AmbdInteraction()
Destructor.
double p(int i, int j) const
Return one element of the potent matrix P.
Flory-Huggins excess free energy model.
Dynamically allocated Matrix.
File containing preprocessor macros for error handling.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.