|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.util.numerical.CalcGradientDifferentiable
public class CalcGradientDifferentiable
Uses finite difference methods to determine the second order differential of the potential (i.e. dF/dx). Part of a larger scheme, a user may employ this to fill a two-dimensional array of changes in molecule A's Force with respect to the movement of other molecules.
| Field Summary | |
|---|---|
IteratorDirective |
allAtoms
|
IBox |
box
|
double |
forceConstant
|
IPotentialMaster |
potentialMaster
|
| Constructor Summary | |
|---|---|
CalcGradientDifferentiable(IBox aBox,
IPotentialMaster aPotentialMaster,
IMoleculeList movableSet,
ISpace _space)
|
|
| Method Summary | |
|---|---|
double |
df(int[] d,
double[] position)
Returns the derivative indicated by the array d evaluated at the given point x. |
double[] |
df2(int[] d,
double[] position)
Uses the potential's force calculation at different displacements of a molecule in X, Y and Z to determine the second derivative of the potential. |
double |
f(double[] position)
|
Class |
getAgentClass()
Returns the Class of the agent. |
int |
getDimension()
The dimension of the space of independent variables. |
Object |
makeAgent(IAtom a)
Returns an agent for the given Atom. |
void |
releaseAgent(Object agent,
IAtom atom)
This informs the agent source that the agent is going away and that the agent source should disconnect the agent from other elements |
void |
setComponent(int aGradDcomponent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public IBox box
public IPotentialMaster potentialMaster
public double forceConstant
public IteratorDirective allAtoms
| Constructor Detail |
|---|
public CalcGradientDifferentiable(IBox aBox,
IPotentialMaster aPotentialMaster,
IMoleculeList movableSet,
ISpace _space)
| Method Detail |
|---|
public void setComponent(int aGradDcomponent)
public double f(double[] position)
f in interface FunctionMultiDimensional
public double df(int[] d,
double[] position)
FunctionMultiDimensionalDifferentiable
df in interface FunctionMultiDimensionalDifferentiable
public double[] df2(int[] d,
double[] position)
d - A one-dimensional array describing what column of our larger, global dF/dx array we are working with.position - A one dimensional array of doubles describing the molecules positions.
public int getDimension()
FunctionMultiDimensional
getDimension in interface FunctionMultiDimensionalpublic Class getAgentClass()
AtomLeafAgentManager.AgentSource
getAgentClass in interface AtomLeafAgentManager.AgentSourcepublic Object makeAgent(IAtom a)
AtomLeafAgentManager.AgentSource
makeAgent in interface AtomLeafAgentManager.AgentSource
public void releaseAgent(Object agent,
IAtom atom)
AtomLeafAgentManager.AgentSource
releaseAgent in interface AtomLeafAgentManager.AgentSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||