MayerFunction
public class MayerHSMixture extends java.lang.Object implements MayerFunction
For the reference system, the function is positive and is divided by the volume of the integration for the pair, such that the integral of the function will be 1.
For the target system, the function is -1.
Modifier and Type | Field | Description |
---|---|---|
protected double[][] |
allVal |
|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected double[][] |
sigma2 |
Modifier | Constructor | Description |
---|---|---|
protected |
MayerHSMixture(int nPoints,
double[][] pairSigma,
double val,
boolean isRef,
Space space,
Boundary b) |
Modifier and Type | Method | Description |
---|---|---|
double |
f(IMoleculeList pair,
double r2,
double beta) |
returns Mayer function between atoms in the pair at temperature
1/beta
|
IPotential |
getPotential() |
|
static MayerHSMixture |
makeReferenceF(Space space,
int nPoints,
double[][] pairSigma,
Boundary b) |
|
static MayerHSMixture |
makeTargetF(Space space,
int nPoints,
double[][] pairSigma,
Boundary b) |
|
void |
setBox(Box newBox) |
protected final double[][] sigma2
protected final double[][] allVal
protected final Boundary boundary
protected final Vector dr
public static MayerHSMixture makeReferenceF(Space space, int nPoints, double[][] pairSigma, Boundary b)
public static MayerHSMixture makeTargetF(Space space, int nPoints, double[][] pairSigma, Boundary b)
public double f(IMoleculeList pair, double r2, double beta)
MayerFunction
f
in interface MayerFunction
r2
- TODOpublic IPotential getPotential()
getPotential
in interface MayerFunction
public void setBox(Box newBox)
setBox
in interface MayerFunction