MultiMeshFunction

class dolfin.functions.multimeshfunction.MultiMeshFunction(*args, **kwargs)

Bases: ufl.coefficient.Coefficient, dolfin.cpp.function.MultiMeshFunction

This class represents a multimeshfunction \(u_h=(u_{h,1}\cross \dots u_{h,N}\) in a finite element multimeshfunction space \(V_h=V_{h,1}\cross \dots V_{h,N}\), given by

\[u_{h,j}= \sum_{i=1}^n U_i \phi_{i,j},\]

where \(\{\phi_{i,j}\}_{i=1}^n\) is a basis for \(V_{h,j}\), and \(U\) is a vector of expansion coefficients for \(u_h\).

Arguments

There is a maximum of two arguments. The first argument must be a :py:class:`MultiMeshFunctionSpace

<dolfin.cpp.function.MultiMeshFunctionSpace>`.

The second argument must be a GenericVector and is intended for library use only.

Examples

Create a MultiMeshFunction:

Initialize MultiMeshFunction.

assign(rhs)
function_space()