GenericFunction¶
-
class
dolfin.cpp.function.
GenericFunction
(*args, **kwargs)¶ Bases:
ufc.ufc.function
,dolfin.cpp.common.Variable
This is a common base class for functions. Functions can be evaluated at a given point and they can be restricted to a given cell in a finite element mesh. This functionality is implemented by sub-classes that implement the eval() and restrict() functions.
DOLFIN provides two implementations of the GenericFunction interface in the form of the classes Function and Expression.
Sub-classes may optionally implement the update() function that will be called prior to restriction when running in parallel.
-
compute_vertex_values
()¶ Compute values at all mesh vertices
-
eval
()¶ Overloaded versions
eval(values, x, cell)
Evaluate at given point in given cell
eval(values, x)
Evaluate at given point
-
eval_cell
()¶ Overloaded versions
eval(values, x, cell)
Evaluate at given point in given cell
eval(values, x)
Evaluate at given point
-
restrict
()¶ Restrict function to local cell (compute expansion coefficients w)
-
thisown
¶ The membership flag
-
update
()¶ Update off-process ghost coefficients
-
value_dimension
()¶ Return value dimension for given axis
-
value_rank
()¶ Return value rank
-
value_size
()¶ Evaluation at given point Return value size (product of value dimensions)
-