Skip to main content
8-Gravel
July 12, 2018
Question

Program with 2 for loops and a while

  • July 12, 2018
  • 2 replies
  • 4649 views

Hi!
I'm trying to write a small program that calculates a new force for each increment. Each force will calculate the von mises stress at different angles


Edit:
My desired output is the force (for each increment), von mises stress and corresponding angle just before the yield criterion.  (see file)

Not sure how to finish off my program.


Regards 
Sigurd

 

Thank you!

ps.
Mathcad 2014

2 replies

24-Ruby IV
July 12, 2018

It is a good trick to use the return operator in programs

yj1.png

23-Emerald I
July 12, 2018
14-Alexandrite
October 16, 2020

Hi Fred,

 

Attached is a mathcad sheet that you fixed for another user nearly two years ago. I changed the units and the load values. i have few questions:

 

1. Does the sheet calculate  von Mises stress value for each load Pi applied at different angles from 5 to 45 degrees?

2. I noticed it only reports the largest angle and largest load only. Is that the intent? How do you make it report von Mises stress for each load value?

3. I put a limit on von Mises stress to be less or equal 50 ksi, but the resulting von Mises stress is much larger. i am not sure why.

 

Thanks,

Sam

 

23-Emerald I
October 17, 2020

Sam,

 

I spent the better part of yesterday working on this problem.  The solution I provided did not examine the theory, just sorted out a programming issue that had been presented.

 

So I missed a basic issue:

       Von Mises stress looks at the total stress picture of a particular loading for comparison with a material failure or yielding condition; it gets a lot of use in finite element analysis because it can show where the critical spots are regardless of what stress component made them critical.  If you think about that for a minute it means that the Von Mises stress at any particular point cannot depend on an orientation of the frame of reference.  Yet that is what you're asking the me to do, "What is the Von Mises stress at different angles?"

 

I don't believe that the problem as posed in the file is correct.  When I have a better answer I'll post it.

 

Good Luck!

Fred