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

Class GivenFunction

source code


Adapter for a function f(x) into an IGivenFunction.

Instance Methods [hide private]
 
__init__(self, f)
Initialize the caches and store the function f.
source code
 
volume_interpolant(self, discr)
Return the volume interpolant of this function with respect to the discretization.Discretization discr.
source code
 
boundary_interpolant(self, discr, tag)
Return the boundary interpolant of this function with respect to the discretization.Discretization discr 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, f)
(Constructor)

source code 

Initialize the caches and store the function f.

Parameters:
  • f - a function mapping space to a scalar value. If f.target_dimensions exists and equals n, then f maps into an n-dimensional vector space instead.
Overrides: object.__init__

volume_interpolant(self, discr)

source code 

Return the volume interpolant of this function with respect to the discretization.Discretization discr.

Overrides: IGivenFunction.volume_interpolant
(inherited documentation)

boundary_interpolant(self, discr, tag)

source code 

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

Overrides: IGivenFunction.boundary_interpolant
(inherited documentation)