Hello,
I have a function which defines a stress tensor. I would like to print the values of sigma matrix inside the function. Here is the sample of the code.
def stress():
Fm = as_tensor([[1, 0], [0, 1]])
B_ = dot(Fm,Fm.T)
vol = c * (B_ - tr(B_)/2.*Identity(2))
sigma = vol
return sigma
Thank you.