|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.domains.ct.kernel.ODESolver
ptolemy.domains.ct.kernel.solver.DerivativeResolver
This solver finds the derivatives of the state variables of an ODE with respect to the current time. For example, if the ODE is
x' = f(x, t),the current time is t0, and
x(t0) = x0,then this method calculates
x'(t0) = f(x(t0), t0).
The derivative is obtained by firing the system for one iteration. This is used for preparing the history for other methods. Note that time does not progress under this solver. So, this class implements BreakpointODESolver and can only be used as a breakpoint solver. It assumes that state variables are continuous after the breakpoint. This may not be true if there are impulses in the system. In that case, use ImpulseBESolver as the breakpoint solver for a better result.
| Yellow (liuxj) |
| Yellow (liuj) |
| Nested Class Summary |
| Nested classes inherited from class ptolemy.kernel.util.NamedObj |
NamedObj.ContainedObjectsIterator |
| Field Summary |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
DerivativeResolver()
Construct a solver in the default workspace with the name "CT_Derivative_Resolver". |
|
DerivativeResolver(Workspace workspace)
Construct a solver in the given workspace with the name "CT_Derivative_Resolver". |
|
| Method Summary | |
int |
getHistoryCapacityRequirement()
Return 0 to indicate that no history information is needed by this solver. |
int |
getIntegratorAuxVariableCount()
Return 0 to indicate that the solver needs no auxiliary variable. |
void |
integratorFire(CTBaseIntegrator integrator)
Provides the fire() method for the given integrator. |
boolean |
integratorIsAccurate(CTBaseIntegrator integrator)
Return true, since there is no step size control. |
double |
integratorPredictedStepSize(CTBaseIntegrator integrator)
Return the initial step size of the director. |
boolean |
resolveStates()
Resolve the derivative of the integrators at the current time. |
| Methods inherited from class ptolemy.domains.ct.kernel.ODESolver |
_makeSolverOf, _prefireIfNecessary, getContainer, getRound, incrementRound, resetRound |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DerivativeResolver()
public DerivativeResolver(Workspace workspace)
workspace - Object for synchronization and version tracking| Method Detail |
public final int getHistoryCapacityRequirement()
getHistoryCapacityRequirement in class ODESolverpublic final int getIntegratorAuxVariableCount()
getIntegratorAuxVariableCount in class ODESolver
public void integratorFire(CTBaseIntegrator integrator)
throws IllegalActionException
integratorFire in class ODESolverintegrator - The integrator of that calls this method.
IllegalActionException - Not thrown in this base class.
May be needed by the derived class.public boolean integratorIsAccurate(CTBaseIntegrator integrator)
integratorIsAccurate in class ODESolverintegrator - The integrator of that calls this method.
public double integratorPredictedStepSize(CTBaseIntegrator integrator)
integratorPredictedStepSize in class ODESolverintegrator - The integrator of that calls this method.
public boolean resolveStates()
throws IllegalActionException
resolveStates in class ODESolverIllegalActionException - Not thrown in this base class
May be needed by the derived class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||