So I want to write a UMAT in which the free energy function will have a fourth and possibly fifth invariant which has a fibre orientation tensor in it. The fibre orientation tensor for every gauss point is available from Moldflow and after some operations is available in a text file.
My free energy function could be anything like
U=C10(I1'-3)+1/D1(J-1)^2+C3(I4-1)^2+C4(I5)
where I1=trace(B')
I4=trace(B'A)
I5=trace((B'^2)(A)
where B'= Deviatoric left cauchy green tensor and A = Fibre orientation tensor which I obtain from Moldflow.
The main problem is how to input this tensor in the UMAT so that it is read on every gauss point when computations are made. Notice that A is not constant infact varies over several gauss points.