dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #12766
Extracting vector field from a tensor field
Hi,
now that we can use tensor elements in dolfin through UFL,
what would be the easiest way to extract a row of a tensor
field (Function over a TensorElement) as a vector field?
I think scalar subcomponents can easily be extracted,
but is it possible to piece these together to a vector field?
Something like:
Function v(V);
Function a = A[0];
Function b = A[1];
v[0] = a;
v[0] = b;
Martin
Follow ups