Program 3DROTATE

 

This program rotates (or “transforms”) a force, stress, or strain tensor from one coordinate system to another.  The new coordinate system is generated from the original coordinate system via three successive rotations , , and  .  The transformation is performed in accordance with the discussion presented in Section 2 of Chapter 2 (see also Homework Problem 2 of Chapter 2). 

 

The program should be downloaded and saved to a convenient folder location on your computer.  Once the program is initiated it will ask whether you wish to “READ ROTATION ANGLES FROM A FILE? (Y/N)”.   If you enter a “Y” (or “y”, meaning “yes”) the program will search for a file containing the angle of rotation.  If the file is not found you will be directed to enter rotation angles from the keyboard.  The program will then ask if you wish to “READ TENSOR DESCRIPTION FROM A FILE? (Y/N)”.  As before, if you answer “y” and a file is not found, you will be directed to enter the tensor description from the keyboard.

 

The results of all calculations are printed both to the screen and to a file named “answer.txt”.  All files created during execution of the program are stored in the folder that contains program 3DROTATE.