Question: 0.03 3. Write a python code to do the following operations. 1. Create a stress tensor and a strain tensor in form of Numpy arrays:

 0.03 3. Write a python code to do the following operations.

0.03 3. Write a python code to do the following operations. 1. Create a stress tensor and a strain tensor in form of Numpy arrays: 1.0 -0.2 0.5 = -0.2 4.3 0.0 0.5 0.0 5.2 2. The hydrostatic stress is E 0.02 -0.01 0.03 -0.01 0.2 -0.05 -0.05 0.4 hyd = (37) I, o and the deviatoric stress is odev hyd Define a function stress_hyd_dev () which takes in a stress tensor and returns the hydrostatic stress and the deviatoric stress. Then, apply this function to calculate the hydrostatic stress and the deviatoric stress of the stress defined in Question 1. 3. If we rotate the material, the representation of the stress tensor will change. Suppose that the coordinate system is (e1,e2, ez). If we rotate the material about an axis u = (U1, U2, U3) (a unit vector) by the angle 0, the representation of the stress tensor will become o Ro, where R is the rotation matrix R cos 0+ u (1 - cos ) uu (1 - cos ) - uz sin uu3(1 - cos 0) + uz sin Uzu1(1 - cos 0) + Uz sin cos 0 + u(1 cos ) uzu3(1 - cos 0) u sin Uzu11 cos ) - uz sin uzu2(1 - cos ) +uj sin cos 0 + u(1 - cos ) Define a function stress_rot() which takes in a stress tensor, rotation axis and rotation angle and returns the stress tensor after rotation. Then, apply this function to calculate the stress tensor after rotating the material about u (1,1,1) by the angle /6. 0.03 3. Write a python code to do the following operations. 1. Create a stress tensor and a strain tensor in form of Numpy arrays: 1.0 -0.2 0.5 = -0.2 4.3 0.0 0.5 0.0 5.2 2. The hydrostatic stress is E 0.02 -0.01 0.03 -0.01 0.2 -0.05 -0.05 0.4 hyd = (37) I, o and the deviatoric stress is odev hyd Define a function stress_hyd_dev () which takes in a stress tensor and returns the hydrostatic stress and the deviatoric stress. Then, apply this function to calculate the hydrostatic stress and the deviatoric stress of the stress defined in Question 1. 3. If we rotate the material, the representation of the stress tensor will change. Suppose that the coordinate system is (e1,e2, ez). If we rotate the material about an axis u = (U1, U2, U3) (a unit vector) by the angle 0, the representation of the stress tensor will become o Ro, where R is the rotation matrix R cos 0+ u (1 - cos ) uu (1 - cos ) - uz sin uu3(1 - cos 0) + uz sin Uzu1(1 - cos 0) + Uz sin cos 0 + u(1 cos ) uzu3(1 - cos 0) u sin Uzu11 cos ) - uz sin uzu2(1 - cos ) +uj sin cos 0 + u(1 - cos ) Define a function stress_rot() which takes in a stress tensor, rotation axis and rotation angle and returns the stress tensor after rotation. Then, apply this function to calculate the stress tensor after rotating the material about u (1,1,1) by the angle /6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!