Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

Compare the current team to the ideal team.

Answered: 1 week ago

Question

a. Do team members trust each other?

Answered: 1 week ago