Package esys :: Package escript :: Module pdetools :: Class TimeIntegrationManager
[show private | hide private]
[frames | no frames]

Class TimeIntegrationManager


a simple mechanism to manage time dependend values. 

typical usage is:

dt=0.1 # time increment
tm=TimeIntegrationManager(inital_value,p=1)
while t<1.
    v_guess=tm.extrapolate(dt) # extrapolate to t+dt
    v=...
    tm.checkin(dt,v)
    t+=dt

@remark: currently only p=1 is supported.

Method Summary
  __init__(self, *inital_values, **kwargs)
sets up the value manager where inital_value is the initial value and p is order used for extrapolation
  checkin(self, dt, *values)
adds new values to the manager.
  extrapolate(self, dt)
extrapolates to dt forward in time.
  getTime(self)
  getValue(self)

Method Details

__init__(self, *inital_values, **kwargs)
(Constructor)

sets up the value manager where inital_value is the initial value and p is order used for extrapolation

checkin(self, dt, *values)

adds new values to the manager. the p+1 last value get lost

extrapolate(self, dt)

extrapolates to dt forward in time.

Generated by Epydoc 2.1 on Thu Apr 27 11:16:15 2006 http://epydoc.sf.net