8#include "Interaction.h"
54 if (isCompressible_) {
57 isCompressible_ = param.isActive();
59 isInitialized_ =
true;
82 void Interaction::setChiZero()
86 for (i = 0; i < nMonomer_; ++i) {
87 for (j = 0; j < nMonomer_; ++j) {
Interaction(bool isCompressible=false)
Constructor.
virtual void readParameters(std::istream &in)
Read model parameters.
DMatrix< double > const & chi() const
Return the chi matrix by const reference.
void setChi(int i, int j, double chi)
Change one element of the chi matrix.
void setNMonomer(int nMonomer)
Set the number of monomer types.
virtual ~Interaction()
Destructor.
int nMonomer() const
Get number of monomer types.
bool isCompressible() const
Is the system compressible?
DSymmMatrixParam< Type > & readDSymmMatrix(std::istream &in, const char *label, DMatrix< Type > &matrix, int n)
Add and read a required symmetrix DMatrix.
void setClassName(const char *className)
Set class name string.
ScalarParam< Type > & readOptional(std::istream &in, const char *label, Type &value)
Add and read a new optional ScalarParam < Type > object.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
PSCF package top-level namespace.