×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Solving Equations

Solving Equations

Solving Equations

(OP)
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?

RE: Solving Equations

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

TTFN

RE: Solving Equations

(OP)
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++.

RE: Solving Equations

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

http://www.iapws.org/release.htm

rvsvp

RE: Solving Equations

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources