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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. 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