IDataSource
public class MeterDDP extends java.lang.Object implements IDataSource
Modifier and Type | Field | Description |
---|---|---|
protected CoordinateDefinition |
coordinateDefinition |
|
protected DataDoubleArray |
data |
|
protected DataDoubleArray.DataInfoDoubleArray |
dataInfo |
|
protected java.io.FileWriter |
fw |
|
protected boolean |
linPSpan |
|
protected MeterPotentialEnergy |
meterPotential |
|
protected int |
numP |
|
protected double[] |
otherDensities |
|
protected double[][] |
p |
|
protected P1ConstraintNbr |
p1 |
|
protected double[] |
pCenter |
|
protected PotentialMaster |
potentialMaster |
|
protected Box |
pretendBox |
|
protected double |
pSpan |
|
protected ISpecies |
species |
|
protected DataTag |
tag |
|
protected double |
temperature |
|
static Function |
uLat0 |
Nominal function for lattice energy
|
protected Function |
uLatFunction |
|
protected Vector |
work |
Constructor | Description |
---|---|
MeterDDP(PotentialMaster potentialMaster,
ISpecies species,
Space space,
Simulation sim) |
Modifier and Type | Method | Description |
---|---|---|
protected double |
constraintEnergy(Box box) |
Returns true if all atoms in the given box satisfy p1's constraint
|
CoordinateDefinition |
getCoordinateDefinition() |
|
IData |
getData() |
|
IDataInfo |
getDataInfo() |
|
double[] |
getOtherDensities() |
|
double[] |
getP(int iP) |
|
double |
getPCenter(int iTemp) |
|
DataTag |
getTag() |
|
double |
getTemperature() |
|
Function |
getULatFunction() |
|
protected void |
initP() |
|
void |
setConstraint(P1ConstraintNbr p1) |
|
void |
setCoordinateDefinition(CoordinateDefinition newCoordinateDefinition) |
|
void |
setExpPSpan(double newPSpan) |
|
void |
setLinPSpan(double newPSpan) |
|
void |
setNumP(int newNumP) |
|
void |
setOtherDensities(double[] otherDensities) |
|
void |
setPCenter(double[] newPCenter) |
|
void |
setTemperature(double temperature) |
|
void |
setULatFunction(Function newULatFunction) |
Sets a function that returns the lattice energy for a given density.
|
protected final MeterPotentialEnergy meterPotential
protected final PotentialMaster potentialMaster
protected double temperature
protected double[] otherDensities
protected DataDoubleArray.DataInfoDoubleArray dataInfo
protected DataDoubleArray data
protected final DataTag tag
protected final Box pretendBox
protected CoordinateDefinition coordinateDefinition
protected final ISpecies species
protected double[][] p
protected double[] pCenter
protected double pSpan
protected boolean linPSpan
protected int numP
protected P1ConstraintNbr p1
protected final Vector work
protected Function uLatFunction
protected java.io.FileWriter fw
public static final Function uLat0
public MeterDDP(PotentialMaster potentialMaster, ISpecies species, Space space, Simulation sim)
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public DataTag getTag()
getTag
in interface IDataSource
public void setULatFunction(Function newULatFunction)
public Function getULatFunction()
public IData getData()
getData
in interface IDataSource
protected double constraintEnergy(Box box)
public double getTemperature()
public void setTemperature(double temperature)
public double[] getOtherDensities()
public void setOtherDensities(double[] otherDensities)
protected void initP()
public double[] getP(int iP)
public double getPCenter(int iTemp)
public void setPCenter(double[] newPCenter)
public void setExpPSpan(double newPSpan)
public void setLinPSpan(double newPSpan)
public void setNumP(int newNumP)
public CoordinateDefinition getCoordinateDefinition()
public void setCoordinateDefinition(CoordinateDefinition newCoordinateDefinition)
public void setConstraint(P1ConstraintNbr p1)