Bases: dolfin.cpp.function.GenericFunction, dolfin.cpp.function.HierarchicalFunction
This class represents a function \(u_h\) in a finite element function space \(V_h\), given by
where \(\{\phi_i\}_{i=1}^{n}\) is a basis for \(V_h\), and \(U\) is a vector of expansion coefficients for \(u_h\).
Overloaded versions
Function(V)
Create function on given function space
The function space.
Note
No example code available for this function.
Function(V)
Create function on given function space (shared data)
The function space.
Function(V, x)
Create function on given function space with a given vector (shared data)
Warning: This constructor is intended for internal library use only
The function space.
The vector.
Function(V, filename)
Create function from vector of dofs stored to file
The function space.
The name of the file containing the vector.
The name of the file containing the dofmap data.
Function(V, filename)
Create function from vector of dofs stored to file (shared data)
The function space.
The name of the file containing the dofmap data.
Function(v)
Copy constructor
The object to be copied.
Function(v, i)
Sub-function constructor with shallow copy of vector (used in Python interface)
The function to be copied.
Index of subfunction.
Return the child Function in the hierarchy
Overloaded versions
compute_vertex_values(vertex_values, mesh)
Compute values at all mesh vertices
The values at all vertices.
The mesh.
compute_vertex_values(vertex_values)
Compute values at all mesh vertices
The values at all vertices.
Return a copy of itself
Overloaded versions
eval(values, x)
Evaluate function at given coordinates
The values.
The coordinates.
eval(values, x, dolfin_cell, ufc_cell)
Evaluate function at given coordinates in given cell
The values.
The coordinates.
The cell.
The ufc::cell.
eval(values, x, cell)
Evaluate at given point in given cell
The values at the point.
The coordinates of the point.
The cell which contains the given point.
Extrapolate function (from a possibly lower-degree function space)
Return the FunctionSpace
Return geometric dimension
Check if extrapolation is permitted when evaluating the Function
Interpolate function (on possibly non-matching meshes)
Return the finest Function in hierarchy
Evaluate function for given data (non-matching meshes) This method is deprecated as of dolfin 1.6.0. Please use eval(values, x) instead.
Return the parent Function in the hierarchy
Return the coarsest Function in hierarchy
Allow extrapolation when evaluating the Function
Extract subfunction
The membership flag
Overloaded versions
vector()
Return vector of expansion coefficients (non-const version)
The vector of expansion coefficients.
vector()
Return vector of expansion coefficients (const version)
The vector of expansion coefficients (const).