Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Feed result of equation back into itself? How?

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-09-2012
10:39 PM

02-09-2012
10:39 PM

Hello,

I've attached my mathcad document and it explains what I am trying to do.

I have two equations, A and B.

Equation A determines the length of a crack in a material specimen after the specimen has been loaded a distinct number of times. This is based on several variables, one of them being the initial length of the crack.

So after one cycle, I can determine how much this crack grew. I can then determine the residual strength of the material based on this new crack size.

What I need to do, is make a plot that has residual strength (Equation B) in the y axis, and number of cycles (Equation A) in the X axis.

The process would look like this:

1 - Equation A calculates the final crack length in the specimen after ONE cycle (given an initial crack length value).

2 - Equation B takes this final crack length and calculates the residual strength.

3 - The residual strength is plotted in the 2D plot.

4 - This final crack length is then fed back into Equation A to determine how much it grows after ONE cycle.

5 - Repeat steps 2-4 until the residual strengh reaches zero.

How can I do this? I appreciate any help!

Attached is the workbook.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
07:13 AM

02-10-2012
07:13 AM

FredKohlhepp wrote:

Alan's done the heavy lifting; I just plotted N vs stress as requested.

Thanks Fred. Perhaps, one day, I'll remember to read the whole question before jumping in!

Alan

9 REPLIES 9

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
12:48 AM

02-10-2012
12:48 AM

Re: Feed result of equation back into itself? How?

You can/must do a complet calculation one time and than repeat it n time by for example copy and paste equations.

Than you can use the while operator!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
02:28 AM

02-10-2012
02:28 AM

Re: Feed result of equation back into itself? How?

Am I getting confused or are you saying N calculates af?

Solve you do not need to solve for af?

Mike

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
04:20 AM

02-10-2012
04:20 AM

Re: Feed result of equation back into itself? How?

Do you mean something like the attached?

Alan

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
05:56 AM

02-10-2012
05:56 AM

Re: Feed result of equation back into itself? How?

Alan's done the heavy lifting; I just plotted N vs stress as requested.

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
07:13 AM

02-10-2012
07:13 AM

FredKohlhepp wrote:

Alan's done the heavy lifting; I just plotted N vs stress as requested.

Thanks Fred. Perhaps, one day, I'll remember to read the whole question before jumping in!

Alan

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
10:32 AM

02-10-2012
10:32 AM

Re: Feed result of equation back into itself? How?

Thank you for the help!!! I am going to take a look at this now and see if I can figure out how it is done. At first glance the plots look reasonable.

If I have any questions I will let you guys know.

Thanks again!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
11:37 AM

02-10-2012
11:37 AM

Re: Feed result of equation back into itself? How?

Alan,

Do you suppose you could describe what the lines in the program routine mean?

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
11:54 AM

02-10-2012
11:54 AM

Re: Feed result of equation back into itself? How?

ptc-4451268 wrote:

Alan,

Do you suppose you could describe what the lines in the program routine mean?

See attached.

Alan

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-10-2012
12:32 PM

02-10-2012
12:32 PM

Re: Feed result of equation back into itself? How?

Thanks!