Software engineer needs help from Electrical Engineers!!

Thread Starter

bilalk

Joined Oct 12, 2010
5
I need to find the value of T i.e. Temperature:

log10 Psat = A – (B/T) – C log10T + DT + (E (F-T))/FT – log10 (F-T)

Where

- P = Pressure

- Sat = Saturation

- T = Temperature

- A,B,C and D are Constants




PLZZZ HELP.......Thanks.
 

someonesdad

Joined Jul 7, 2009
1,583
You can't solve for T in terms of the other variables, as this is a non-algebraic equation. It would be like trying to solve sin(x) + 3*x = 4 for x algebraically.

However, if you know the numerical values of the constants and other parameters, then it should be straightforward to solve for the roots numerically. The first task is to plot the function so you can get an idea of its behavior; this is easy with tools like python and matplotlib. Once you know about where the root you want is, you can solve for it with numerous techniques. Bisection and Newton-Raphson are always taught in elementary calculus courses, so consult any basic calculus book for those. Here's a technique that works well. Also consult any numerical techniques book, such as "Numerical Recipes in C", which can be found on the web. You can download the routines associated with the book "Numerical Methods in Engineering with Python" here; I like the routine for Ridders' method, which seems to work well.
 

DonQ

Joined May 6, 2009
321
My advice... Simplify.

This equation may be great for getting 15 digits of accuracy in some simulation, but there are many places where it is completely undefined in the real world (T=0 or T=F or D=0 for a few).

Chances are that you are only really interested in a relatively small range of temperature, across a relatively small range of several of the other variables. Find out what you can eliminate, find out what you can estimate, find a polynomial that fits across the range you are actually interested in, and then solve for that.

You may only be able to get several digits of accuracy this way, but you probably don't really need to be counting atoms.
 

Thread Starter

bilalk

Joined Oct 12, 2010
5
I need to find the value of T i.e. Temperature, i mean to derive an equation for T from the below equation; as its a non algebric equation so numerical analysis can also do the purpose:

log10 Psat = A – (B/T) – C log10T + DT + (E (F-T))/FT – log10 (F-T)

Where

Psat = Saturation Pressure


T = Temperature

A=29.357, B=.00219 ,C=7.86 and D=305.86 , E=305.86 , F=686.1 are Constants and values are known to me.



Can there be a matlab file for this. .I am new to matlab.
>
> PLZZZ HELP.......Thanks.
 
Top