MCMoveStepDependentMCMoveVolumeSolidNPTMolecularOrientedpublic class MCMoveVolumeSolidNPTMolecular extends MCMoveBoxStep
| Modifier and Type | Field | Description |
|---|---|---|
protected AtomIteratorLeafAtoms |
affectedAtomIterator |
|
protected Vector |
boxSize |
|
protected Vector |
comOld |
|
protected int |
D |
|
protected Vector |
dest |
|
protected MeterPotentialEnergy |
energyMeter |
|
protected BoxInflate |
inflate |
|
protected Box |
latticeBox |
|
protected double |
latticeScale |
|
protected MoleculePositionGeometricCenter |
moleculeCenter |
|
protected double |
pressure |
|
protected IRandom |
random |
|
protected double |
temperature |
|
protected MoleculeActionTranslateTo |
translateTo |
|
static Function |
uLat0 |
Nominal function for lattice energy
|
protected Function |
uLatFunction |
|
protected double |
uNew |
|
protected double |
uOld |
|
protected double |
vNew |
|
protected double |
vOld |
|
protected double |
vScale |
moveTracker, nominalFrequency, potentialbox, perParticleFrequencystepSize, stepSizeMax, stepSizeMin| Constructor | Description |
|---|---|
MCMoveVolumeSolidNPTMolecular(PotentialMaster potentialMaster,
IRandom random,
Space space,
double pressure) |
|
MCMoveVolumeSolidNPTMolecular(PotentialMaster potentialMaster,
IRandom random,
Space space,
double pressure,
int D) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
AtomIterator |
affectedAtoms() |
|
void |
doTransform(double vScaleLocal) |
|
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() |
|
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 |
setInflater(BoxInflate newInflate) |
|
void |
setLatticeBox(Box newLatticeBox) |
|
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.
|
getNominalFrequency, getTracker, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringgetStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMinprotected double pressure
protected MeterPotentialEnergy energyMeter
protected BoxInflate inflate
protected final int D
protected IRandom random
protected final AtomIteratorLeafAtoms affectedAtomIterator
protected double temperature
protected final Vector boxSize
protected final Vector dest
protected final Vector comOld
protected final MoleculePositionGeometricCenter moleculeCenter
protected final MoleculeActionTranslateTo translateTo
protected transient double uOld
protected transient double vOld
protected transient double vNew
protected transient double vScale
protected transient double uNew
protected transient double latticeScale
protected Function uLatFunction
protected Box latticeBox
public static Function uLat0
public MCMoveVolumeSolidNPTMolecular(PotentialMaster potentialMaster, IRandom random, Space space, double pressure)
potentialMaster - an appropriate PotentialMaster instance for calculating energiesspace - the governing space for the simulationpublic MCMoveVolumeSolidNPTMolecular(PotentialMaster potentialMaster, IRandom random, Space space, double pressure, int D)
public void setInflater(BoxInflate newInflate)
public void setLatticeBox(Box newLatticeBox)
public void setBox(Box p)
MCMoveBoxpublic void setTemperature(double newTemperature)
public void setULatFunction(Function newULatFunction)
public Function getULatFunction()
public boolean doTrial()
MCMovepublic void doTransform(double vScaleLocal)
public 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()