MCMoveStepDependentpublic 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, potentialbox, perParticleFrequencystepSize, 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, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringgetStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMinprotected 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)
MCMoveBoxpublic void setTemperature(double newTemperature)
public void setULatFunction(Function newULatFunction)
public Function getULatFunction()
public void setULatTruncFunction(Function newULatTruncFunction)
public Function getULatTruncFunction()
public boolean doTrial()
MCMovepublic double getChi(double temperature)
MCMovepublic void acceptNotify()
MCMoveacceptNotify in class MCMovepublic void rejectNotify()
MCMoverejectNotify in class MCMovepublic double energyChange()
energyChange in class MCMoveBoxpublic AtomIterator affectedAtoms()
affectedAtoms in class MCMoveBoxpublic void setPressure(double p)
public final double getPressure()
public Dimension getPressureDimension()