MCMoveStepDependent
public class MCMoveVolumeSolid extends MCMoveBoxStep
Modifier and Type | Field | Description |
---|---|---|
protected AtomIteratorLeafAtoms |
affectedAtomIterator |
|
protected CoordinateDefinition |
coordinateDefinition |
|
protected boolean |
doCorti |
|
protected Vector |
dr |
|
protected BoxInflate |
inflate |
|
protected Vector |
nominalBoxSize |
|
protected double |
pressure |
|
protected double |
temperature |
|
static Function |
uLat0 |
Nominal function for lattice energy
|
protected Function |
uLatFunction |
|
protected Function |
uLatTruncFunction |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
stepSize, stepSizeMax, stepSizeMin
Constructor | Description |
---|---|
MCMoveVolumeSolid(PotentialMaster potentialMaster,
CoordinateDefinition coordinateDefinition,
IRandom random,
Space _space,
double pressure) |
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
AtomIterator |
affectedAtoms() |
|
boolean |
doTrial() |
Method to perform trial move.
|
double |
energyChange() |
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
double |
getPressure() |
|
Dimension |
getPressureDimension() |
|
Function |
getULatFunction() |
|
Function |
getULatTruncFunction() |
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setBox(Box p) |
Sets the box on which this move acts.
|
void |
setPressure(double p) |
|
void |
setTemperature(double newTemperature) |
Sets the temperature being sampled.
|
void |
setULatFunction(Function newULatFunction) |
Sets a function that returns the lattice energy for a given density.
|
void |
setULatTruncFunction(Function newULatTruncFunction) |
Sets a function that returns the lattice energy for a given density
using the same truncation as the potentials in the system.
|
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
getStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMin
protected double pressure
protected final BoxInflate inflate
protected final AtomIteratorLeafAtoms affectedAtomIterator
protected double temperature
protected final CoordinateDefinition coordinateDefinition
protected final Vector dr
protected final Vector nominalBoxSize
protected Function uLatFunction
protected Function uLatTruncFunction
protected final boolean doCorti
public static final Function uLat0
public MCMoveVolumeSolid(PotentialMaster potentialMaster, CoordinateDefinition coordinateDefinition, IRandom random, Space _space, double pressure)
potentialMaster
- an appropriate PotentialMaster instance for calculating energies_space
- the governing space for the simulationpublic void setBox(Box p)
MCMoveBox
public void setTemperature(double newTemperature)
public void setULatFunction(Function newULatFunction)
public Function getULatFunction()
public void setULatTruncFunction(Function newULatTruncFunction)
public Function getULatTruncFunction()
public boolean doTrial()
MCMove
public double getChi(double temperature)
MCMove
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public void rejectNotify()
MCMove
rejectNotify
in class MCMove
public double energyChange()
energyChange
in class MCMoveBox
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public void setPressure(double p)
public final double getPressure()
public Dimension getPressureDimension()