|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.energy.EnergyElement
meshi.energy.pairwiseNonBondedTerms.NonBondedEnergyElement
meshi.energy.pairwiseNonBondedTerms.CoulombElectrostatics.CoulombElectrostaticEnergyElement
public class CoulombElectrostaticEnergyElement
This object represents Electrostatic Energy between two Atoms. It updates the energy according to the change in their distance and position.
| Field Summary | |
|---|---|
static double |
ALPHA
|
protected Atom |
atom1
|
protected int |
atom1Number
|
protected Atom |
atom2
|
protected int |
atom2Number
|
protected double[] |
charges
|
protected double |
contact
|
protected double |
dCdD
|
protected double |
dCdX
|
protected double |
dCdY
|
protected double |
dCdZ
|
protected double |
dEdD
|
protected double |
dEdX
|
protected double |
dEdY
|
protected double |
dEdZ
|
protected double |
dielectricConstant
|
protected DistanceMatrix |
distanceMatrix
|
protected double |
energy
|
private int |
FIRST
|
protected boolean |
frozen
|
static double |
MAX_ENERGY
|
protected double |
q1
|
protected double |
q2
|
protected double |
rMax
|
private int |
SECOND
|
protected double |
weight
|
| Fields inherited from class meshi.energy.EnergyElement |
|---|
atoms, dFormatSrt, dFormatStd, DX, relativeDiffTolerance, VERY_SMALL, XYZ |
| Constructor Summary | |
|---|---|
CoulombElectrostaticEnergyElement()
default constructor |
|
CoulombElectrostaticEnergyElement(DistanceMatrix distanceMatrix,
double weight,
double dielectricConstant,
double[] charges)
constructor |
|
| Method Summary | |
|---|---|
double |
contact()
|
double |
contact(double weight)
|
double |
contactAtoms(double weight)
|
double |
dEdXAtom(int index)
|
double |
dEdYAtom(int index)
|
double |
dEdZAtom(int index)
|
double |
evaluate()
evaluate - 1) Invokes updateEnergy() - updates the energy, 2) Invokes updateAtoms() - updates the atoms' position. |
void |
set(java.lang.Object obj)
Sets the relevant charge values for each atom in an atom pair. |
protected void |
setAtoms()
setAtoms |
java.lang.String |
toString()
toString |
void |
updateAtoms()
Updates the atoms position |
double |
updateEnergy()
Updates the energy |
| Methods inherited from class meshi.energy.EnergyElement |
|---|
atoms, evaluateAtoms, frozen, test, updateFrozen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double MAX_ENERGY
public static final double ALPHA
protected DistanceMatrix distanceMatrix
protected Atom atom1
protected Atom atom2
protected int atom1Number
protected int atom2Number
protected double dielectricConstant
protected double q1
protected double q2
protected boolean frozen
protected double dEdD
protected double dEdX
protected double dEdY
protected double dEdZ
protected double energy
protected double weight
protected double rMax
protected double contact
protected double dCdD
protected double dCdX
protected double dCdY
protected double dCdZ
private final int FIRST
private final int SECOND
protected double[] charges
| Constructor Detail |
|---|
public CoulombElectrostaticEnergyElement()
public CoulombElectrostaticEnergyElement(DistanceMatrix distanceMatrix,
double weight,
double dielectricConstant,
double[] charges)
distanceMatrix - weight - dielectricConstant - charges - | Method Detail |
|---|
protected void setAtoms()
setAtoms in class EnergyElementpublic void set(java.lang.Object obj)
set in class NonBondedEnergyElementobj - an AtomPairpublic double evaluate()
evaluate in class EnergyElementpublic double updateEnergy()
public void updateAtoms()
public double contactAtoms(double weight)
weight -
public double dEdXAtom(int index)
index -
public double dEdYAtom(int index)
index -
public double dEdZAtom(int index)
index -
public double contact(double weight)
weight -
public double contact()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||