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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Update Guess Value for Solve Block used by Program

rjw57
1-Visitor

Update Guess Value for Solve Block used by Program

I do not recall how to update the guess values used by a Given-Find (LM) solve block routine called by a program. I have attached a file (MC14.020) which shows the pertinent section. I cannot make the program operate since it calls a third party dll through excel to resolve some state values for gaseous species. Hopefully, you will have enough to look at to make sense of my question. Any insight will be greatly appreciated.

Bob
1 REPLY 1
RichardJ
19-Tanzanite
(To:rjw57)

You should be passing the guess values to the function as arguments, and solving for the next generation of guess values. Are you sure you have it the right way round? It looks to me like pVsl1.new and pVsl2.new are the guess values, and you should therefore be solving for pVsl1.curr and pVsl2.curr.

I just posted an example of this in another thread earlier today (the next one down in this forum!):

http://collab.mathsoft.com/~Mathcad2000/read?132571,63

Richard
Announcements

Top Tags