PotentialCalculation
public class PotentialCalculationPressureTensor extends java.lang.Object implements PotentialCalculation
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
doNonEquilibrium |
|
protected Tensor |
I |
|
protected IntegratorBox |
integrator |
|
protected IAtomList |
leafList |
|
protected Tensor |
pressureTensor |
|
protected Space |
space |
|
protected double |
temperature |
|
protected boolean |
warningPrinted |
|
protected Tensor |
workTensor |
Constructor | Description |
---|---|
PotentialCalculationPressureTensor(Space space) |
Modifier and Type | Method | Description |
---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Adds the pressure tensor contribution based on the forces acting on each
pair of atoms produced by the iterator.
|
Tensor |
getPressureTensor() |
Returns the pressure tensor based on a previous call to
PotentialMaster.calculate
|
void |
setBox(Box newBox) |
|
void |
setDoNonEquilibrium(boolean doNonEquilibrium) |
|
void |
setIntegrator(IntegratorBox newIntegrator) |
Sets an integrator to use a source for the temperature to compute the
kinetic portion of the pressure.
|
void |
setTemperature(double newTemperature) |
|
void |
zeroSum() |
protected final Tensor pressureTensor
protected final Tensor workTensor
protected final Space space
protected IAtomList leafList
protected IntegratorBox integrator
protected boolean warningPrinted
protected double temperature
protected final Tensor I
protected boolean doNonEquilibrium
public PotentialCalculationPressureTensor(Space space)
public void setDoNonEquilibrium(boolean doNonEquilibrium)
doNonEquilibrium
- If true, the kinetic contribution to the pressure tensor will be
computed from atomic velocities rather than the temperature.public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
doCalculation
in interface PotentialCalculation
atoms
- IAtomSet the atom sets for which the calculation is performed.potential
- The potential used to apply the action defined by this class.public void setBox(Box newBox)
public void zeroSum()
public void setTemperature(double newTemperature)
public void setIntegrator(IntegratorBox newIntegrator)
public Tensor getPressureTensor()