|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectintegrators.Integrator
Base class for objects that implement numerical integration routines. Does nothing but provide generic methods for all such classes. Subclass and override at least the methods Integrator.init() and Integrator.IntegrateOneStep(), and probably Integrator.reset() as well.
Nested Class Summary | |
protected class |
Integrator.NVmatrix
This class was intended for storing a Jacobian matrix, or something like that. |
class |
Integrator.NVvector
This utility class may be more convenient for some purposes than an array of NodeValues objects would be. |
Constructor Summary | |
Integrator()
|
Method Summary | |
void |
copyNVarray(NodeValues[] from,
NodeValues[] to)
|
protected void |
getCurrentValues(NodeValues[] node_values)
|
protected void |
getDerivatives(NodeValues[] deriv_values)
|
float |
getErrorEstimate()
Returns an estimate of the error introduced per timestep. |
void |
init(Model model)
Any object planning to use an Integrator of any kind MUST call its init(Model) method, which (among other things) is generally used to allocate storage arrays for the intermediates in an integration method. |
float |
IntegrateOneStep()
Integrates across a single time step. |
boolean |
isType(java.lang.String t)
|
void |
reset()
Should be called after the Integrator has crossed an entire interval. |
void |
setDefaultStepSize(float ts)
Set the default step size; this is usually only used by Integrator.reset() to return the Integrator to it's defualt state after an entire integration. |
void |
setErrorTolerance(float err_tol)
Set the per-step error tolerance; different methods make different use of this value, so see documentation of each Integrator subclass to determine how best to set this, or whether the default value is appropriate. |
protected void |
setFinalValues(NodeValues[] node_values)
|
protected void |
setIntegrationValues(NodeValues[] node_values)
|
void |
setStepSize(float ts)
Set the size of the timestep used by the integrator for the next (and subsequent) calls to IntegrateOneStep. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Integrator()
Method Detail |
public void init(Model model)
public void reset()
public float IntegrateOneStep()
protected void getCurrentValues(NodeValues[] node_values)
protected void getDerivatives(NodeValues[] deriv_values)
protected void setIntegrationValues(NodeValues[] node_values)
protected void setFinalValues(NodeValues[] node_values)
public void setStepSize(float ts)
public void setDefaultStepSize(float ts)
public void setErrorTolerance(float err_tol)
public float getErrorEstimate()
public boolean isType(java.lang.String t)
public void copyNVarray(NodeValues[] from, NodeValues[] to)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |