Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solving Equations

Status
Not open for further replies.

HotSteam

Computer
Jun 26, 2003
19
I know some solving methods. But so far have been unable to write a fast converging algotithm for the problem.

I am working in steam properties IAPWS-95 and 97 plugin for MathCad and Vissim. The problem is solving two equations of two unknowns. I.E. pressure = p(t,d) and entropy = s(t.d) given pressure and entropy I have to search for t and d. The function p(t,d) is a 64 term equation and quite a few terms have factors of a*e^f(t,d)

Any sugestions on a fast converging algorithm?

 
Replies continue below

Recommended for you

What's wrong with using the Given-Find solver?

TTFN
 
Sorry. The plugin is in C++ I need an algorithm I can implement in C/C++. There is the added problem that if the density temperature lies to far inside saturated water/steam mixture region the formula cause floating point exceptions. So while solving I must also keep in the vapoer or liquid regions or switch and find a saturation state including quality. With the IAPWS-95 formula you must solve for vapor and liquid densities that satisfy an equalibrum formula at the saturation temperature. I cheat on that by using the IFC-97 formulation as a close aproxamation of the saturation line unless my variables are outside by more then 0.05%.

The code can made to work with most any programe that alows plugins to be writen in C or C++.

 
Solving sets of nonlinear equations is tough, mostly. Better to see what the others have done. Try Google. Suitable search-terms are

"steam tables", "backward equations", "p(v,s)", entropy, for example.

Here is one link from a quick search


rvsvp
 
There is an article in the ChE issue of May 12, 1986 by Gonz[á]lez-Pozo, titled Formulas to estimate properties for dry, saturated steam, under the Plant Notebbok heading. The formulas contain seven coefficients, and are claimed to have very low % errors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor