MixedFunctionSpace

class dolfin.functions.functionspace.MixedFunctionSpace(spaces)

Bases: dolfin.functions.functionspace.FunctionSpaceBase

MixedFunctionSpace represents a mixed finite element function space.

Create mixed finite element function space.

Arguments
spaces
a list (or tuple) of FunctionSpaces.
Examples of usage

The function space may be created by

V = MixedFunctionSpace(spaces)

spaces may consist of multiple occurances of the same space:

P1  = FunctionSpace(mesh, "CG", 1)
P2v = VectorFunctionSpace(mesh, "Lagrange", 2)

ME  = MixedFunctionSpace([P2v, P1, P1, P1])