Package esys :: Package escript :: Module pdetools :: Class TimeIntegrationManager
[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

Note: currently only p=1 is supported.

Instance Methods [hide private]
 
__init__(self, *inital_values, **kwargs)
Sets up the value manager where inital_values are the initial values and p is the 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 [hide private]

checkin(self, dt, *values)

 

Adds new values to the manager. The p+1 last values are lost.