hedge :: data :: TimeIntervalGivenFunction :: Class TimeIntervalGivenFunction
[hide private]
[frames] | no frames]

Class TimeIntervalGivenFunction

source code


Adapts an IGivenFunction to depend on time by "turning it on" for the time interval [on_time, off_time), and having it be zero the rest of the time.

Instance Methods [hide private]
 
__init__(self, gf, on_time=0, off_time=1)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
volume_interpolant(self, t, discr)
Return the volume interpolant of this function with respect to the discretization.Discretization discr at time {t}.
source code
 
boundary_interpolant(self, t, discr, tag)
Return the boundary interpolant of this function with respect to the discretization.Discretization discr at time t at the boundary tagged with tag.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, gf, on_time=0, off_time=1)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

volume_interpolant(self, t, discr)

source code 

Return the volume interpolant of this function with respect to the discretization.Discretization discr at time {t}.

Overrides: ITimeDependentGivenFunction.volume_interpolant
(inherited documentation)

boundary_interpolant(self, t, discr, tag)

source code 

Return the boundary interpolant of this function with respect to the discretization.Discretization discr at time t at the boundary tagged with tag.

Overrides: ITimeDependentGivenFunction.boundary_interpolant
(inherited documentation)