Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

Q3. Write a python code to do the following operations 0.03 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 = (ftro) 1, hyd and the deviatoric stress is dev = 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 = (1, 2, uz) (a unit vector) by the angle, the representation of the stress tensor will become o' = Ro, where R is the rotation matrix cose + u (1 - cosa) Ujuz(1 - cos e) - uz sin ujuz(1 - cos 6) + Uz sin e R= uzu (1 - cos 0) + Uz sin cos 0 + u(1 - cos ) uzu3(1 - cos 6) - u sin Uzu (1 - cos 6) - uz sine uzu (1 - cos 0) + un 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 1/6. (6+6+8 = 20 marks) Q3. Write a python code to do the following operations 0.03 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 = (ftro) 1, hyd and the deviatoric stress is dev = 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 = (1, 2, uz) (a unit vector) by the angle, the representation of the stress tensor will become o' = Ro, where R is the rotation matrix cose + u (1 - cosa) Ujuz(1 - cos e) - uz sin ujuz(1 - cos 6) + Uz sin e R= uzu (1 - cos 0) + Uz sin cos 0 + u(1 - cos ) uzu3(1 - cos 6) - u sin Uzu (1 - cos 6) - uz sine uzu (1 - cos 0) + un 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 1/6. (6+6+8 = 20 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago