Hello FEniCSx community!
I have been using TensorFunctionSpace to calculate stress values. But according to this post, I realized that it is discontinued from the dolfinx.fem module.
The way I used the TensorFunctionSpace is:
Function_space_for_sigma = TensorFunctionSpace(mesh, ("DG", 1))
expr= Expression(sigma(u_n,p_n),Function_space_for_sigma.element.interpolation_points())
sigma_values = Function(Function_space_for_sigma)
sigma_values.interpolate(expr)
This is very much similar to what they have done in: The von Mises stresses
My question is, if I only changed the first line to:
Function_space_for_sigma = FunctionSpace(mesh, ("DG", 1))
is the output exactly the same as it was in the case of:
Function_space_for_sigma = TensorFunctionSpace(mesh, ("DG", 1))
Thank you