MCMoveStepDependent
public class MCMoveClusterAtomHSRing extends MCMoveAtom
Modifier and Type | Field | Description |
---|---|---|
protected Vector |
axis0 |
|
protected static double |
fac10 |
|
protected static double |
fac3 |
|
protected static double |
fac4 |
|
protected static double |
fac5 |
|
protected static double |
fac6 |
|
protected static double |
fac7 |
|
protected static double |
fac8 |
|
protected static double |
fac9 |
|
protected boolean[] |
inserted |
|
protected double[] |
maxBias |
|
protected double[] |
maxBiasR |
|
protected Vector3D |
normalVector |
|
protected double[] |
normalWidth |
|
protected long[] |
numInserts |
|
protected long[] |
numTrials |
|
protected double[] |
p0 |
|
int[] |
seq |
|
protected double |
sigma |
|
protected Vector3D |
standardLensPoint |
|
protected long |
totalCount |
moveTracker, nominalFrequency, potential
affectedAtomIterator, atom, atomSource, energyMeter, fixOverlap, random, space, translationVector, uNew, uOld
box, perParticleFrequency
stepSize, stepSizeMax, stepSizeMin
Constructor | Description |
---|---|
MCMoveClusterAtomHSRing(IRandom random,
Space _space,
double sigma) |
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
boolean |
doTrial() |
Method to perform trial move.
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
static void |
main(java.lang.String[] args) |
|
protected void |
randomLensPoint(double d,
Vector3D point) |
Returns a randomly selected point from within the lens-shaped region of
overlap of two spheres of unit radius separated by a distance d.
|
protected void |
randomLensPoint(Vector r1,
Vector r2,
Vector3D point,
Vector r12,
double rSquared) |
Sets a given vector to a point chosen uniformly at random in the lens-shaped region
formed by the overlap of two spheres of unit radius located at the given positions r1 and r2.
|
protected void |
randomLensPointInBox(Vector r0,
Vector r1,
Vector point) |
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
static double |
separationProbability(int n,
double r) |
Normalized probability for the separation of the centers of two spheres located at the
end of a chain of (n+1) overlapping spheres.
|
void |
setBox(Box box) |
Sets the box on which this move acts.
|
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getAtomSource, setAtomSource
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
getStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMin
protected final Vector3D standardLensPoint
protected final Vector3D normalVector
protected double[] maxBias
protected double[] maxBiasR
protected double[] p0
public int[] seq
protected final double sigma
protected final Vector axis0
protected final double[] normalWidth
protected boolean[] inserted
protected long[] numInserts
protected long[] numTrials
protected long totalCount
protected static final double fac3
protected static final double fac4
protected static final double fac5
protected static final double fac6
protected static final double fac7
protected static final double fac8
protected static final double fac9
protected static final double fac10
public void setBox(Box box)
MCMoveBox
setBox
in class MCMoveAtom
public boolean doTrial()
MCMove
doTrial
in class MCMoveAtom
protected void randomLensPoint(Vector r1, Vector r2, Vector3D point, Vector r12, double rSquared)
r1
- (input) position of one spherer2
- (input) position of other spherepoint
- (output) random position selected in overlap of the given spheresjava.lang.IllegalArgumentException
- if given spheres do not overlapprotected void randomLensPoint(double d, Vector3D point)
d
- the distance between the spherespoint
- (output) the randomly selected pointjava.lang.IllegalArgumentException
- if d > 2, corresponding to non-overlapping spherespublic static double separationProbability(int n, double r)
n
- number of bonds in the chain, such that number of spheres is n+1r
- end-to-end separationpublic double getChi(double temperature)
MCMove
getChi
in class MCMoveAtom
temperature
- used to compute chipublic void rejectNotify()
MCMove
rejectNotify
in class MCMoveAtom
public void acceptNotify()
MCMove
acceptNotify
in class MCMoveAtom
public static void main(java.lang.String[] args)