TensorFunctionSpace¶
-
class
dolfin.functions.functionspace.
TensorFunctionSpace
(mesh, family, degree, shape=None, symmetry=None, constrained_domain=None, restriction=None)¶ Bases:
dolfin.functions.functionspace.FunctionSpaceBase
TensorFunctionSpace represents a tensor-valued finite element function space.
Create tensor-valued finite element function space.
- Arguments
- mesh
- a
Mesh
. - family
- a string specifying the element family,
see
FunctionSpace
for alternatives. - degree
- the degree of the element.
- shape
- an optional argument specifying the shape of the tensor.
- symmetry
- optional argument specifying whether the tensor is symmetric.
If the shape argument is not provided, the dimension will be deduced from the dimension of the mesh.
Example of usage
V = TensorFunctionSpace(mesh, "CG", 1)