cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Use end result as input for next calculation

FDS
13-Aquamarine
13-Aquamarine

Use end result as input for next calculation

This is most likely a very stupid question but I do not succeed in this simple program. Attached is a MC 15 file I would like to automate in a small program the process mentioned in the highlighted comment. Would anyone be so kind to help me out as I do not "see" it right now.

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:FDS)

OK, here is the all in one version

Werner_E_0-1597596671566.png

Or a bit shorter:

Werner_E_0-1597611444273.png

 

And in case that you also need the intermediate results, here's a way to get them:

Werner_E_0-1597596805964.png

 

MC15 worksheet attached

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:FDS)

Hct.cyclestart should be replaced in eq. 6 and 7 but not in eq 5, which you wrote after eq. 6 and before eq. 7? Are you sure?

Obviously you'll need to use a "while" loop to do the iterations.

Why don't you make k and V.blood an argument of function CS, too?

Werner_E
25-Diamond I
(To:Werner_E)

Here is an approach using your function CS, assuming that the value in eq.5 has to be replaced, too:

Werner_E_0-1597595557076.png

Of course its not mandatory to split the calculation into two functions. I was simply lazy 😉

 

 

Werner_E
25-Diamond I
(To:FDS)

OK, here is the all in one version

Werner_E_0-1597596671566.png

Or a bit shorter:

Werner_E_0-1597611444273.png

 

And in case that you also need the intermediate results, here's a way to get them:

Werner_E_0-1597596805964.png

 

MC15 worksheet attached

FDS
13-Aquamarine
13-Aquamarine
(To:Werner_E)

Werner I must have had a complete blackout... but you made my morning. Thank you for your assistance.

Announcements

Top Tags