Hello,
I have a mixed element/space and I need to assign initially identity tensor for one of the spaces, in this case, a tensor element space:
V1 = VectorElement("CG", model.ufl_cell(), 1)
F1 = TensorElement("CG", model.ufl_cell(), 1)
MFEM = FunctionSpace(model, MixedElement((V1, F1, F1)))
fc_uFP = Function(MFEM, name='Disp-Grad-Press')
fc_u, fc_F, fc_P = split(fc_uFP)
I need to assign an identity tensor as initial conditions to fc_F.
Any idea how to do it?
Cheers,