Any maths experts i...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Any maths experts in today? Could do with some help.

20 Posts
5 Users
0 Reactions
176 Views
Posts: 42
Free Member
Topic starter
 

I have a little maths problem at work, which I am hoping one of you may be able to help with
I have an equation...

x = ((thi - tco) - (tho - tci)) / ln((thi - tco)/(tho - tci))

where
x = LMTD (log mean temperature difference in a heat exchanger).
thi = temperature of hot fluid in
tco = temp cold fluid out
tho = temp hot fluid out
tci = temp cold fluid in

Now, I know LMTD, and thi, tho & tci

I just need to rearrange the equation to use in excel so that I can calculate tco directly without having to resort to a goal seek.

Thing is, I haven't got a clue how to rearrange the equation.
Any help greatly appreciated!


 
Posted : 19/08/2014 8:19 am
Posts: 3729
Free Member
 

As tco appears twice in that formula, and once within a ln function, I'd use goal seek.

Incidently you have allowed for the correction factor to allow for the fact that the exchanger won't be true [s]parrallel[/s] counter current flow?


 
Posted : 19/08/2014 8:33 am
Posts: 42
Free Member
Topic starter
 

Cheers gonefishin, but the goal seek is the bit I am trying to get rid of. I presume that because it is solvable, there must be some way of rearranging to calculate directly. Long time since my A-level maths though.

Hadn't considered a correction factor (yet) - cheers, I'll look into it.

Once designed and built, this condenser will be condensing single malt whisky, which gives me a vested interest in getting this right 🙂 !


 
Posted : 19/08/2014 8:43 am
Posts: 17209
Full Member
 

OK, here's what I would do...

Transform your variables so that z = x/(tho - tci) and y = (thi - tco)/(tho - tci)

Then your equation is z = (y-1)/ln(y)

which requires you to find the root of y - z ln(y) - 1 = 0

Mathematica has an approximate solution for this root, which is

y = -z W(-exp(-1/z)/z)

where W is the [url= http://reference.wolfram.com/language/ref/ProductLog.html ]Lambert W function[/url]. You could use the series expansion of W for this as follows;

Let a = -exp(-1/z)/z

then y = -z W(a)
W(a) = a - a^2 + 3 (a^3)/2 - 8 (a^4)/3 + 125 (a^5)/24 +...

you will then back transform y to get tco. Define a new column in XL for each transformed variable.

Or use Goal seek 😉


 
Posted : 19/08/2014 8:52 am
Posts: 3729
Free Member
 

I doubt you'll be able to get it into a discrete solution, it's not always possible and sometimes iteration is the only way to go. I think by rearranging it you will end up with something like

tco + e^(tco + x) = Function

which isn't that much more helpful.

Whenever I've come up against this issue with heat exchagers I use goal seek (or an interative solution if excel isn't available). Well I did until I got access to exchanger sizing software at work.


 
Posted : 19/08/2014 8:53 am
Posts: 42
Free Member
Topic starter
 

OK, here's what I would do...

Transform your variables so that z = x/(tho - tci) and y = (thi - tco)/(tho - tci)

Then your equation is z = (y-1)/ln(y)

which requires you to find the root of y - z ln(y) - 1 = 0

Mathematica has an approximate solution for this root, which is

y = -z W(-exp(-1/z)/z)

where W is the Lambert W function. You could use the series expansion of W for this as follows;

Let a = -exp(-1/z)/z

then y = -z W(a)
W(a) = a - a^2 + 3 (a^3)/2 - 8 (a^4)/3 + 125 (a^5)/24 +...

you will then back transform y to get tco. Define a new column in XL for each transformed variable.

Or use Goal seek

😯 Holy batshit 😯 . Goal Seek it is then.

Cheers for the help chaps.
First two drams will be yours. Should be ready in 2027.


 
Posted : 19/08/2014 8:58 am
Posts: 17209
Full Member
 

Post up your numbers for the four known values and I'll knock up a quick worksheet to test the solution validity. I know nothing about heat exchangers, but I do know a little maths!


 
Posted : 19/08/2014 9:09 am
Posts: 42
Free Member
Topic starter
 

Thanks RedTi,

LMTD is 14.6°C
thi = 95°C (boiling whisky)
tho = 85°C (condensed whisky)
tci = 18°C (cooling water from the river)
tco = unknown (hot cooling water)

using goal seek, I get tco = 94.285°C

Much appreciated.


 
Posted : 19/08/2014 9:54 am
Posts: 3729
Free Member
 

Well that might work mathematically but your temperature approach is way too close to work in practice. A thi of 95 and and tco of 94 (realistically you won't be able to measure anything more accurately than 1 C) will give you a major problem.

Are you sure your LMTD is 14.6?


 
Posted : 19/08/2014 10:01 am
Posts: 42
Free Member
Topic starter
 

The LMTD is correct for the temperature values I have taken, based on an estimate of the U value and heat transfer area.
The condensers are made in one size only, so the area will be fixed and non negotiable (I just don't know what that area is yet).
I will be calculating a more accurate U value later, but for now, I am just building up a spreadsheet, and want to get the mechanics right before tweaking the numbers so that they make sense.
I used 3 decimal places, purely because that was the output from the goal seek - not because I want to achieve that level of accuracy!
I am actually expecting tco to be around 75°C in reality.


 
Posted : 19/08/2014 10:08 am
Posts: 3729
Free Member
 

Ah right. If the exchanger is oversized for its duty, which would appear to be the case here, then high cooling water outlet temps will always be the result. On the plus side it will likely foul up pretty quickly which will bring the cold outlet temperature down a bit. 😉


 
Posted : 19/08/2014 10:12 am
Posts: 42
Free Member
Topic starter
 

Ah, they do have fouling issues (especially with the water coming straight from the Spey).

They run this way to deliberately produce hot water, so that they can use it to pre-heat the feeds to the Stills. It is not the most efficient method for them to be recovering heat, but it is their process, and getting them to consider new approaches is nigh on impossible. "It may change the character of the whisky" is the response to all process improvements I've recommended so far. Fair comment, but frustrating!


 
Posted : 19/08/2014 10:18 am
Posts: 1319
Full Member
 

ormancheep

thread hijack

I'm working with some distilleries regarding integration of biomass steam boilers into their processes - is this anything your distillery has considered?

email in profile

/thread hijack


 
Posted : 19/08/2014 10:20 am
Posts: 42
Free Member
Topic starter
 

Hi Smudger,
Yes, they are intending to use a remote steam supply from a stand-alone biomass boiler. Possibly one one of yours I imagine!


 
Posted : 19/08/2014 10:23 am
Posts: 1319
Full Member
 

which distillery?


 
Posted : 19/08/2014 10:45 am
Posts: 42
Free Member
Topic starter
 

emailed you.


 
Posted : 19/08/2014 10:58 am
Posts: 1319
Full Member
 

nothing received?


 
Posted : 19/08/2014 11:36 am
Posts: 0
Free Member
 

@Oman, just programme up @TiRed's suggestion. Spreadhseets are good for doing this sort of thing even if it looks complicated posted here. For a "belt and braces" check you should do the calculation both with the formula and goal seek and check the results are close.


 
Posted : 19/08/2014 1:18 pm
Posts: 17209
Full Member
 

Pretty accurate 😉 . I also have a plot of tco vs. X for all values of X (1-25)

x 14.6 Log Mean temperature difference in heat exchanger
thi 95 Temp hot fluid in
tho 85 Temp hot fluid out
tci 18 Temp cold fluid in

z = 0.217910448, z = x/(tho - tci)
a = -0.046636583, a = - exp(-1/z)/z
W(a) = -0.048977467
y = 0.010672702, y = (thi - tco)/(tho - tci)
y(thi-tco) = 0.715071022
tco = 94.284929, Closed form solution
tco(goal) = 94.284927

Need your email address for the solution, mine's in my profile.


 
Posted : 19/08/2014 2:48 pm
Posts: 17209
Full Member
 

General solution for your parameters:

[img] [/img]

You'll need an X of about 40 to get to a tco of 75 degrees (note the semi-log plot).


 
Posted : 19/08/2014 3:14 pm
Posts: 42
Free Member
Topic starter
 

I like them apples 🙂

I'll email you now. Thanks very much.


 
Posted : 19/08/2014 3:27 pm

6 DAYS LEFT
We are currently at 95% of our target!