|
||||||||||
| 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.FixedStepSolver
ptolemy.domains.ct.kernel.solver.BackwardEulerSolver
The backward Euler ODE solver. For an ODE
x' = f(x, t), x(0) = x0This solver uses the following formula to solve it:
x(t+h) = x(t) + h*x'(t+h)where x(t) is the current state, x(t+h) is the next state, h is the step size, and x'(t+h) is the derivative of x at t+h. The formula above is an algebraic equation, and this method uses fixed point iteration to solve it.
This method does not perform step size control other than reducing the step sizes when the fixed-point iteration does not converge.
| Yellow (liuxj) |
| Yellow (liuj) |
| Nested Class Summary |
| Nested classes inherited from class ptolemy.kernel.util.NamedObj |
ptolemy.kernel.util.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 | |
BackwardEulerSolver()
Construct a solver in the default workspace with the name "CT_Backward_Euler_Solver". |
|
BackwardEulerSolver(ptolemy.kernel.util.Workspace workspace)
Construct a solver in the given workspace with the name "CT_Backward_Euler_Solver". |
|
| Method Summary | |
protected boolean |
_isConverged()
Return true if all integrators agree that the fixed-point iteration has converged. |
protected void |
_setConvergence(boolean converge)
Set the convergence flag. |
protected void |
_voteForConvergence(boolean converge)
Vote on whether a fixed point has reached. |
int |
getHistoryCapacityRequirement()
Return 0 to indicate that no history information is needed by this solver. |
int |
getIntegratorAuxVariableCount()
Return 1 to indicate that an integrator under this solver needs one auxiliary variable. |
void |
integratorFire(CTBaseIntegrator integrator)
Provide the fire() method for the integrator under this solver. |
boolean |
resolveStates()
Advance time by the current step size and return true if the state of the integrators are resolved accurately at that time. |
| Methods inherited from class ptolemy.domains.ct.kernel.solver.FixedStepSolver |
integratorIsAccurate, integratorPredictedStepSize |
| Methods inherited from class ptolemy.domains.ct.kernel.ODESolver |
_makeSolverOf, _prefireIfNecessary, getContainer, getRound, incrementRound, resetRound |
| Methods inherited from class ptolemy.kernel.util.NamedObj |
_addAttribute, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getContainedObject, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateExistence, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setName, setPersistent, setSource, toplevel, toString, uniqueName, validateSettables, workspace |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BackwardEulerSolver()
public BackwardEulerSolver(ptolemy.kernel.util.Workspace workspace)
workspace - Object for synchronization and version tracking| Method Detail |
public int getHistoryCapacityRequirement()
getHistoryCapacityRequirement in class ODESolverpublic int getIntegratorAuxVariableCount()
getIntegratorAuxVariableCount in class ODESolver
public void integratorFire(CTBaseIntegrator integrator)
throws ptolemy.kernel.util.IllegalActionException
integratorFire in class ODESolverintegrator - The integrator that uses the fire() method.
ptolemy.kernel.util.IllegalActionException - If there is no director.
public boolean resolveStates()
throws ptolemy.kernel.util.IllegalActionException
resolveStates in class ODESolverptolemy.kernel.util.IllegalActionException - If there is no director or
no scheduler.protected boolean _isConverged()
protected void _setConvergence(boolean converge)
converge - The flag setting.protected void _voteForConvergence(boolean converge)
converge - True if vote for convergence.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||