|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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
public class 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, u, t),the current time is t0, and
x(t0) = x0,then this method calculates
x'(t0) = f(x(t0), u(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.
Green (hyzheng) |
Green (hyzheng) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary | |
---|---|
private static java.lang.String |
_DEFAULT_NAME
Name of this Solver. |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _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 | |
---|---|
void |
fireStateTransitionActors()
Fire state transition actors, set converged flag to true indicating a fixed-point states have been reached. |
int |
getAmountOfHistoryInformation()
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)
Fire 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. |
Methods inherited from class ptolemy.domains.ct.kernel.ODESolver |
---|
_advanceModelTime, _getRoundCount, _getSchedule, _incrementRoundCount, _isConverged, _makeSolverOf, _resetRoundCount, _setConverged, _voteForConverged, fireDynamicActors, getContainer, resolveStates |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String _DEFAULT_NAME
Constructor Detail |
---|
public DerivativeResolver()
public DerivativeResolver(Workspace workspace)
workspace
- Object for synchronization and version trackingMethod Detail |
---|
public void fireStateTransitionActors() throws IllegalActionException
fireStateTransitionActors
in class ODESolver
IllegalActionException
- If thrown in the super class.public final int getAmountOfHistoryInformation()
getAmountOfHistoryInformation
in class ODESolver
public final int getIntegratorAuxVariableCount()
getIntegratorAuxVariableCount
in class ODESolver
public void integratorFire(CTBaseIntegrator integrator) throws IllegalActionException
integratorFire
in class ODESolver
integrator
- The integrator of that calls this method.
IllegalActionException
- If can not read input.public boolean integratorIsAccurate(CTBaseIntegrator integrator)
integratorIsAccurate
in class ODESolver
integrator
- The integrator of that calls this method.
public double integratorPredictedStepSize(CTBaseIntegrator integrator)
integratorPredictedStepSize
in class ODESolver
integrator
- The integrator of that calls this method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |