|
||||||||||
| 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.ForwardEulerSolver
The Forward Euler(FE) ODE solver. For ODE
dx/dt = f(x, u, t), x(0) = x0;The FE method approximate the x(t+h) as:
x(t+h) = x(t) + h * f(x(t), u(t), t)No error control and step size control is performed. This is the simplest algorithm for solving an ODE. It is a first order method, and has stability problem for some systems.
| 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 | |
ForwardEulerSolver()
Construct a solver in the default workspace with an empty string as name. |
|
ForwardEulerSolver(ptolemy.kernel.util.Workspace workspace)
Construct a solver in the given workspace. |
|
| Method Summary | |
int |
getHistoryCapacityRequirement()
Return 0 to indicate that this solver needs no history information. |
int |
getIntegratorAuxVariableCount()
Return 1 to indicate that this solver needs one auxiliary variable from each integrator when solving the ODE. |
void |
integratorFire(CTBaseIntegrator integrator)
Perform the fire() method for the argument integrator. |
boolean |
resolveStates()
Advance the current time by the current step size and resolve the state of the system. |
| 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 ForwardEulerSolver()
public ForwardEulerSolver(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 calls this 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 the firing of some actors
throw it.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||