Wednesday, February 25, 2009

Fountain Basics

This post is a response to Jim.  Jim has several 0.125" diameter hoses that he cut with a clean edge, and supplied with pressure from a garden hose.  His fountains shoot up to their apex, then break up into a gloppy mess, just like mine used to, but for a different reason.

There are three, well, no, six things you need to make a laminar stream work:
  1. Accelerate the water to high speed without producing a lower-speed boundary layer.  After the water exits the nozzle, internal shear will accelerate the boundary layer back up to the speed of the jet, and the shear will then be redistributed through the jet as turbulence, which will then lead to breakup.  I know of two ways to minimize the boundary layer:
    • Large diameter tube ending in a flat plate with a small diameter hole.  This design minimizes the distance over which the water is both at high speed and in contact with the wall.  There will be a boundary layer, but it'll be really thin.  The downside is that you end up with plumbing behind the jet which is really bulky compared to the jet.
    • Form the jet first, then use a circular knife to cut the boundary layer off the main flow before the boundary re-accelerates.  This is how firehose nozzles work.  They take the water stripped off and reintroduce it to the stream with a venturi.  This nozzle is less bulky but needs a bigger pressure drop and is more difficult to make.
    • I found that water beads up on my 316 stainless nozzle more than on my PVC pipe.  It's possible that the 316 doesn't drag on the water quite as much as PVC would have, although I can't confirm that.
  2. Remove all vorticity from the water.
    • The problem is that angular momentum is conserved, and angular momentum is (mass)*(tangential velocity)*(radius).  When you constrict a flow from 6" diameter to 0.5" diameter, the velocity increases by a factor of 12x, which means the centripetal force increases by 12^3 = 1728x (that's right, v^2/r).  If my 6 inch flow starts out at 3 RPM (20 seconds to turn once, barely turning), then the half-inch jet will be rotating at an average of 432 RPM, and the centripetal force at the surface will be 13 m/s^2, which is more than 1 G.  Since 1 G will rip drops of water off the underside of a wet object when the water is much less than a half inch thick, it's no surprise that this rotation will rip apart a half-inch diameter stream.
    • A long, narrow nozzle should take out vorticity through friction with the nozzle walls.  The same friction will lead to lots of turbulence.  I have no idea why this turbulence is not a problem for the firehose nozzle.  I did some experiments with a watering can that we have which features a nozzle about 12" long and 1/3" diameter, and found that the stream would travel about 3 feet before it broke up.
    • If you do the large-diameter, hole-with-flat-plate nozzle, then you have to remove the vorticity some other way.  I did it with layers of twin-wall polycarbonate, cut on a table saw, epoxied into place.  In this YouTube video, they do it with soda straws.  I've read that the minimum length needs to be 12x diameter.  My flow straighteners are 1 foot long, and have channels 7mm across, so the ratio is 43:1.  Probably overkill.
  3. Eliminate even minute variations in your water flow.
    • You'd think a hose bib would give you smooth water flow, but it doesn't.  I know because my fountains shot blobs of water with direct pressure from a hose bib, but worked fine once I put an LC filter between the hose and the fountain.  The YouTube video mentions the same problem in passing, but doesn't say how to fix it.  Directly connecting my pump led to blobs, the LC fixed them too.  (My hose bib has 200 feet of 1/2" copper pipe leading to it, so I'm astonished that any flow variations were getting through.  My best explanation is that the copper pipe is elastic, and the resulting distributed capacitance combined with the pipe inductance is forming a transmission line.)
    • The filter is simple: you have a run of smallish diameter pipe (that's your inductor, 20 feet of 4x your jet diameter should do), and a Tee fitting going to a vertical pipe into which the water can expand momentarily (your capacitor).  My expansion pipe rises higher than my fountain jets, and is open to the air, so that it acts as a pressure regulator as well.  I found that the water from my pump in my 2" PVC pipe would flutter irregularly perhaps 1/4" up and down.  You can also do it with a closed pipe that traps air above it, if you can figure out how to ensure there is air up there.  So long as you don't introduce bubbles into the stream, the closed pipe should work better because it has a smaller column of water between the pressure source (air) and the flow.  That column acts like an inductor which would tend to isolate the capacitor and limit its high-frequency response.
    • If the source of variation is turbulence in the fountain, then you'd want the capacitor close to the fountain, and the inductor between that and the supply (hose).  If the source of variation is the supply, then you'd want the capacitor at the supply, followed by the inductor going to the fountain.  When filtering power into sensitive analog electronics, we use "pi" networks, which are just a capacitor at both ends of an inductor, basically because the noise could be coming from both places and we are hedging our bets.
  4. Get rid of all air bubbles.  Even tiny bubbles cause major flow disruptions.  I have my pumps below grade, so that the water pressure at their intakes should be either above air pressure or very close to it.  This should eliminate air leaks past the O ring on the strainer basket cover, which I think was a source of bubbles in my last pool.  The strainer baskets always seem to have a little air pocket at the top.
  5. Don't go straight up.  I may have screwed this one up.  My jet angle is just 12 degrees off vertical (here are my calculations), so that the jets slow from 19.7 feet/second at the nozzle to 4.1 feet/second at the apex.  The extra flight time and variation in velocity give the flow more opportunity to glob up.
  6. Filter the water.  I may have screwed this one up as well.  I wanted to have low power pumps (700 watts total) push a lot of water (200 gallons/minute), which means very low pressure head (10 feet or 4.3 psi).  No filter that I know how to buy has ports larger than 2 inches, so any standard filter would have a very high pressure drop.  So instead I have 7mm holes in my flow straightener, and .590" holes for my nozzles, and I'm hoping to catch anything even nearly that size in the strainer baskets of the pumps.  I also have the ability to backwash my flow straighteners using filtered water from the main pool pump, which can crank up to 3.5 horsepower if needed.
Okay, so Jim, here's your problem: those presumably short hose segments are making a big boundary layer in your jet, so when it slows down near the apex there is plenty of time and turbulence to glob up.  The problem is worse because the jets are just 1/8" diameter, so the boundary layer may be the entire diameter of the jet.  You need to pick a different, bigger nozzle.  I can recommend the flat plate nozzle, and the YouTube video above shows you how to do it cheaply.  You are also going to need to smooth out the water supply from the hose, and the LC filter described above should do that at low cost.

Good luck, and please let me know how it goes!  If you can, post pictures of the flow at 1/1000 second exposure or faster (full sunlight with any camera will work great).

Other links:
  • Pretty good Google Answer on the subject
  • Badly formatted webpage, no pictures, but same idea here.  They actually worked on chopping the stream on and off.

Monday, February 09, 2009

Wider blog posts

I have no idea why the standard blogger entries are so skinny. Maybe they want to be compatible with cell phone users.

I got fed up with the skinniness, and expanded the format using the instructions provided here.  Thanks, IDS.

-Iain

Fountain update

In the previous update I flow tested a pair of fountain units. Those units were just about in final form, except that they were simply dry-fit together (not glued), and they did not have their side ports yet.

The top of each unit has a 2" pipe going to the units on either side. During fountain operation, these ports carry very little flow, but they ensure that there is equal pressure behind every nozzle, so that all the fountains will throw the same distance. If I did not short them in this way, I would either need some sort of adjustable trim system to vary the flow from each of the nozzles, or I would need to ensure that the distribution system has exactly the same resistance to flow to each fountain unit. I've done my best at the latter, but this is a one-of-a-kind design, so lots of margin is good.

Indeed, if there is any substantial flow through the side ports during normal operation, the lateral momentum of the flow will probably lead to some spin to the water leaving the nozzle, which will destroy the laminar flow.


The flow straighteners in each unit act as a strainer which will tend to accumulate crud. Most laminar flow fountains avoid this problem by running filtered water through the fountain. The trouble with that idea is that it requires a large amount of energy (or a very bulky filter system) to supply all that filtered water. Instead, I'm going to let the debris accumulate on the flow straighteners, and then backwash those every night. That backwash water enters the fountain through these side ports.

The side ports are cut right into the 6" PVC end caps. I bought a 2-3/8" hole saw, which cuts a hole that fits a 2" PVC pipe perfectly. The folks who wrote Schedule 40 clearly anticipated the kind of custom plumbing that I'm doing. I fit the hole saw onto a mill, which I was essentially using as a drill press, albeit one with a 3-axis bed and a tilting head. There were three tricks to this operation:
  1. The hole saw shank is hexagonal, intended for a drill chuck rather than a mill collet. Abe at the Tech Shop put the hole saw on a lathe and turned down the shank to fit a 7/16" collet. This turned out to be tricky because it was hard to get the lathe chuck to grab the hole saw properly.  Thanks, Abe.
  2. The PVC end cap has to be held rigidly in the mill while the hole saw is plunged in. I used a vice on the mill bed, which engaged a shoulder which I had previously milled into the head while cutting the holes for the nozzle inserts.
  3. I tilted the head on the mill. Everybody thought this was strange, apparently nobody ever uses this feature of the mill. One of the helpful machinists at the shop suggested it might be easier to machine four sets of custom angle blocks than to re-tram the head. Re-tramming took me 20 minutes, resulting in 0.0005" tilt across 6 inches (about 100 microradians). I have no idea how make or use custom angle blocks.
Final note. Some folks say PVC is hard to machine. Here is my experience:
  • Cutting white schedule 40 PVC smoothly is really easy. The grey PVC does not cut smoothly. It melts and forms tiny hard balls that stick on the cut surface.
  • Cutting generates a lot of heat, and you have to take little cuts and then frequently back off to the let the bit cool.
  • Water soluble oil lubricant works okay, not great.
  • Simple Green is a terrible lubricant, and ends up increasing heat generation and turning the workpiece into taffy.
  • Fly cutting is easy, since the chips have an easy exit. Hole sawing is hard, since the chips grind around in there until they melt. I think a compressed air blast would really help here.
  • The PVC end caps had been solvent welded on the week before.  The plugs that I cut out seemed to be welded pretty well, but I did notice that the glue was the first thing that turned to taffy and came pouring out of the cut when things got too hot.
  • Clamping PVC rigidly enough that it doesn't get popped out of the vice when you use things like boring bars is hard.
After that, I glued up the units. There are 48 6" PVC slip joints in these units. So far I've used about 24 ounces of primer and 30 ounces of PVC cement in doing 40 joints. Big PVC takes a lot of glue.

If this was in focus, you'd be able to see the polycarbonate flow straightener inside the big tube.

Below, the hole saw taking the plunge.


There are two shoulders on the head, parallel to the direction of the tilt of the nozzle. Above, see how the vice clamps on the shoulder on the bottom. Below, a close-up of the shoulder on top.

Monday, January 19, 2009

Fountains, fixed

Much happier.  I now have two unit fountains, operating in parallel, driven from a pump, with a filter that takes out most pressure variations.  There is some unsteady flow remaining, which I think is due to bubbles.  I have good reason to believe there will not be bubbles in the production pump system for my fountain, so I think the design is now validated.

As a side effect, everyone involved with the testing is now soaking wet.  Much of the piping is not actually solvent-welded together right now, so there were the occasional blowouts.  Fortunately, we have a blue sky and 75 degree air outside right now, so wet is just fine.  If we had a pool, we'd be swimming (ahem).

Here are two unit fountains running at about 60% of design flow.  Note the smooth flow.  It's splashing a bit when it hits the tub, but that'll go away when it's got more than a half-inch of water to fall into.


Details:
  • The streams do not quite reach the same height.  I'm pretty sure this has to do with a small difference in their pointing angle, so I'm pretty sure they'll all line up when properly installed dead vertical.
  • When supplying the fountains with water from the hose, pressure variations from the street supply were making their way to the fountain.  These were probably low-frequency variations, maybe 1 to 3 hertz.
  • I considered a surge tank, but the volume required was too large (over 20 gallons).  Instead, I have a simple open-topped vertical pipe teed into the line from the pump to the fountain.  The pipe only needs to be a few inches taller than the height of the fountain jets.  The production system will have perhaps an extra foot or two.  You can see the pipe in the foreground.
  • I tried placing the tee close to the unit fountain, and that worked well, and then I tried placing it next to the pump, and that worked about as well.  This result indicates the flow instability comes from the pump and street supply, and not from turbulence within the fountain itself.  (Whew!) 
  • The nozzle is a nonlinear resistor, so it was moving the energy from low frequency variations to higher frequency harmonics.
  • The nozzle is nonlinear because it converts pressure into velocity head with almost perfect efficiency.  If you double the pressure, you double the velocity head -- the height to which the water will jump.  I confirmed this by varying the flow through the system and noting that the water always jumped to a few inches lower than the water level in the vertical pipe capacitor.  A doubling of velocity head means an increase by sqrt(2) of velocity, and flow is (sort-of) proportional to velocity.  As a result, flow increases with the square root of pressure.
  • The nozzle diameter is 0.500 inches, but the flow diameter appears to be 0.410 inches.  I didn't expect this.  The reason is that the flow at the knife edge is horizontal, and it turns through a radius of 0.045 inches.  I suspect that at the higher flow velocity in the production system, the stream diameter will actually decrease.
  • As a result of the small stream diameter, I'm going to have to throttle back the pumps.  The fountain was designed to throw 193 gallons per minute 59 inches horizontally with 16 0.500" diameter streams.  Now that the streams are smaller, I'll have to throttle back to 130 gallons per minute, or lower.  I'm not too happy about that.
  • The stream is even more wickedly nonlinear than the nozzle.  The principle problem is that slightly faster flow has over a second to catch up to slightly slower flow.  The stream goes at about 140 inches/second at the nozzle.  So a 1% variation in flow yields a longitudinal variation of over 2 inches by the time impact happens.  If that happens in less than 10 inches (more than 14 hertz), you get blobs large enough to cause the stream to turn into drops.

Sunday, January 11, 2009

Fountain Ballistics

There is a common thread among the questions I get at parties:

"How's the fountain coming?"
"Any news on the fountain?"
"Any progress on the fountain?"

or, from Martha, "Are we ready to can this turkey?"  Sometimes at parties!

As a public service, I thought I'd post how things are going.

First, you should understand that the pool will have an 8' diameter round hot tub stuck into the otherwise straight side.  16 streams of water will issue from jets embedded in the wall of that hot tub, and land in a small circle in the center.  There is a lot of plumbing to make this work, and here is a partial CAD model of it all:


Each of those fat vertical things is a unit fountain, and each contains a diffuser and a flow straightener, and is topped with a head with a nozzle embedded in it.

I've machined the diffusers, cut some flow straighteners, machined the nozzles and heads, and assembled a single unit fountain.  I didn't glue it together.  I supplied it with water from a hose.

Here's how I machined the head.  I started with a 6" PVC end cap, and milled a flat on the end and two shoulders on either side.  These are for aligning the side ports to the nozzle later.  You'll see.


Then I put it on a Bridgeport mill.  Below, you can see that the quill of the machine has been canted 12 degrees over from vertical.  This makes the angle that the water jet will come out on, so that it launches from the wall of the hot tub and lands in the hot tub.  You can also see the parallel on the two studs in front, which fits against the shoulder I cut earlier.  This edge is parallel to the X axis of the mill.  So the mill is canted 12 degrees in the plane of this shoulder, which means I can drill holes in the end cap aligned to this nozzle later.


Here's me working the thing.  It turns out that lubricant makes everything a lot easier.  The Forstner bit was not the best thing to cut this hole with, as I got a lot of heating and chatter.  Occasionally the mill would throw chunks of plastic across the room, so the safety glasses were a must.


I cut the diffuser on a ShopBot at the Sawdust Shop, out of 1/4" PVC sheet.  The ShopBot is a CNC router.  You program the computer to move the router (they call it a spindle because it goes up to 25000 RPM) in 3 axes.  Programming isn't too hard -- you use a ShopBot program to convert line drawings (AutoCAD type, I made them in SolidWorks) into tool paths.  We wrote some text programs to step and repeat the pattern once we had it properly tweaked.

The table is covered in chips because we didn't run the vacuum.  The owner didn't want to mix PVC chips into his sawdust since he uses the sawdust for something.


Result: just after the hose is turned on, it works great.  Flow is smooth almost all the way to the end, certainly good enough to be acceptable.  Here it is just after startup.  Understand that the unit you are looking at will be one of 16 buried in the wall of the hot tub, and the streams will issue from holes cut into the sides of the tiles that cover the top of that wall.  So you won't be looking at ugly PVC.


Up to something close to working pressure, and it's holding together pretty well:



However, within a matter of seconds, the flow becomes less smooth, breaks up, and soon I have a gloppy mess at the impact point.

Here's a closeup of the top:

I'm not happy.

Another (minor) problem: I've got a small leak between the nozzle and the endcap, right where the shoulder is thinnest because I've got the flat spot.  This is eventually going to be buried in concrete, which will greatly slow the already trivial leakage, but I'm not thrilled about this either.  This problem I probably won't fix.


My guess is that I'm getting variations in the flow rate.  The fountain is extremely sensitive to these variations -- a 1% change in flow (from 193 to 194.98 gallons/minute) makes a 2.1% change in vertical height and a 2.0% change in horizontal throw.  2% doesn't seem like so much but it's over an inch, for a stream which is around a half-inch in diameter.  I think the variations I was seeing were at least an inch of throw, at frequencies from 3 to 10 hertz.

There are two possible reasons I wasn't seeing the variations at first:
  1. Because the hose wasn't fully up to pressure.  The hose is not linearly elastic.  When I first turn the water on, the hose fills with water, but it doesn't develop any pressure until it sees back pressure from the nozzle.  At partial flow through the nozzle, the back pressure is low enough that the hose is quite stretchy, and so it acts as a surge tank and filters flow variations.  At full back-pressure (probably just 2-3 psi), the hose has developed it's fully round shape and is considerably stiffer, losing the filter function.
  2. If there is air in the fountain, it will act as a surge filter.  If I could figure out a way to insert a tennis-ball-sized flaccid bladder filled with air into the fountain, I'd probably have this problem licked, but I'd need something guaranteed not to leak in 30 years immersion.  I don't know what that is.
Obviously I need to figure out exactly what is going on, and how to fix it.  I'll post some analysis later.

Wednesday, January 07, 2009

Tooth Fairy Traffic

Anya just had a tooth pulled by the dentist.  She put it under her pillow but the Tooth Fairy seems to have not made it last night.  A few notes:
  • The Tooth Fairy came on the fourth night after she lost her last tooth.  Anya's theory is that the day before she lost that tooth, a little boy lost one of his, but he was sick, and the Tooth Fairy caught a bug when she touched the tooth.
  • I believe Anya is lying, eyes closed, in tense anticipation of the Tooth Fairy.  She was watching Martha and I as we climbed the stairs last night at 1:30AM, and she was wide awake and ready to go at 7:00AM when I got her up this morning.
  • Little girls, of which I have 3, have 20 baby teeth each.  Even discounting the molars, which might come out much later, I can forsee a time when the Tooth Fairy will be making more than one visit per month.  With multiple little girls engaging in outright deceit in their attempts to catch the poor fairy, I forsee delays and uncertainty.
I'm not sure if the full-body tension I'm feeling right now is because I'm worried that my contractor won't be able to lay out my circuit board properly, or because the damn house creaks even though it's only six years old.  Yeesh!


Thursday, January 01, 2009

Santos?

If you're out there, send me a better email address.

5 Ways to Die During Reentry

If you haven't already seen it, the Columbia Crew Survival Investigation Report.

During reentry, there is a 10 minute long window of maximum heating.  They almost made it through all 10 minutes.  Right at the end they lost their hydraulics.  Makes me wonder if they could have flown the orbiter at a funny incoming angle to spare the load on the left wing.  Maybe they wouldn't have gotten Columbia onto the ground, but if it had broken up five minutes later things might have gone a bit better.

There were 40 seconds after loss of control during which the Columbia pitched up into something like a flat spin, and the folks inside tried to get their hydraulic systems back.

After that, they had a depressurization that took less than 17 seconds and probably, hopefully knocked everyone unconscious.  Nobody dropped their visors (which would let their suits handle pressurization).  Apparently they were all in "fix the vehicle" mode and not in "survival as long as possible" mode.

After that the cabin seperated from the rest of the vehicle, the crew's shoulder and other restraints mostly didn't work, and they got thrashed to death: fatal trauma to their heads from the insides of their helmets.  Owww.

From my reading, had they dropped their visors, gone to suit oxygen, and braced, several of the crew could have made it through both depressurization and cabin separation.

But then the cabin blew apart and they were in their suits in a mach 15 airstream.  I didn't actually read this anywhere, but it sounds like most of the suits came off before they hit the ground.

Side note for camera geeks: notice how crappy the home video shots of the breakup look.  Then look at the Apache Helicopter shots of the same thing, especially when it zooms in.  That chopper has some nice telescopes!

Monday, December 29, 2008

"we want these detainees broken"

From "SENATE ARMED SERVICES COMMITTEE INQUIRY INTO THE TREATMENT OF DETAINEES IN U.S. CUSTODY":
  • Former Navy General Counsel Alberto Mora: “there are serving U.S. flag-rank officers who maintain that the first and second identifiable causes of U.S. combat deaths in Iraq – as judged by their effectiveness in recruiting insurgent fighters into combat – are, respectively the symbols of Abu Ghraib and Guantanamo."
  • Jonathan Fredman, chief counsel to the CIA’s CounterTerrorist Center: "If the detainee dies you’re doing it wrong."
  • In mid-August 2003, an email from staff at Combined Joint Task Force 7 headquarters in Iraq requested that subordinate units provide input for a “wish list” of interrogation techniques, stated that “the gloves are coming off,” and said “we want these detainees broken.”
  • JPRA Commander Colonel Randy Moulton’s authorization of SERE instructors, who had no experience in detainee interrogations, to actively participate in Task Force interrogations using SERE resistance training techniques was a serious failure in judgment.
  • Secretary of Defense Donald Rumsfeld’s authorization of aggressive interrogation techniques for use at Guantanamo Bay was a direct cause of detainee abuse there.
I think at this point I'm just sick of all the damage that has been done to my country by Bush and his team.  I doubt that throwing many of them in jail will do much to improve the behavior of similarly-minded people, but I'm all for prosecutions so long as they don't shift attention from the job at hand, which is to fix the economy.

Thursday, December 18, 2008

Insulating the pool



Since this is my first posting about the pool, let me show you around a bit.  South is to the left.  You can see all along the south side of the pool there is a two-foot-wide shelf.  The water over that shelf will be 12 inches deep in the shallow end and 18 inches deep in the deep end.  In the middle of the south side you can see where the hot tub will go.  At the far end (west), you can see the shelf that will eventually support the automatic cover vault.  To the left of the pool, at the far end, you can see the pump vault that will hold the pumps below ground, behind baffles, which should make them completely silent.  The top of the wooden form will be about three inches below the coping around the pool, so you can see that the coping is about 18 inches above grade on the near side.  That coping will be about 16 inches wide, and will form a sort of bench seat most of the way around the pool.  At the far end, the grade level will be raised to match the coping height, which because of the slope of the back yard will only be about six inches.

The blue stuff you are looking at is the 2 inch thick Dow Styrofoam Highload 40 insulation, most of which is glued (yes glued, with polyurethane foam) to the soil behind it.  On the bottom of the pool, the insulation sits on 4 inches of crushed drain rock, which sits on a geotextile fabric membrane.  The next thing to go into the pit is the plumbing and rebar grid, and after that we shoot gunite.

Heat losses for most pools are dominated by evaporation. We're going to be getting a safety cover, and one of the side effects of these covers is that they are close to vapor-tight. We'll keep it closed for most of the day and only open it to go swimming. As a result, I'm expecting evaporative losses to be quite small -- perhaps a half inch a month or so.  On our 18x46 foot pool, that's 260 gallons/month. Multiply by 2270 kJ/kg (water's heat of vaporization), and that's 70,000 BTU/day.  [Update: this evaporation estimate was dead on.]

Direct heat loss through the cover will be the largest remaining heat loss.  The 24-hour average outside temperature in spring is around 60 degrees, and the safety cover will be something like R-1, so loss from a 85 degree pool would be 520,000 BTU/day.  During the early spring and late fall, we'll probably lower this loss by putting a bubble-type cover over the safety cover.  (I wasn't able to find an automatic safety cover which insulates.)  The combination of the two covers will be around R-3, so losses will be around 180,000 BTU/day.

Most contractors tell me that the dirt under the pool is a fine insulator, but I think they really don't know what they're talking about. Houses use under-slab insulation to insulate their 70 degree interiors from the 55 degree earth heat sink. The pool will be at 85 degrees, which is twice that temperature gradient, so I think insulation will matter even more for the pool. In particular, I'm most concerned about the water table contacting the bottom of the pool in the spring and sucking all the pool's heat into an underground plume of warm water headed towards the San Francisco Bay.  [Update: the water table never gets to the bottom of the pool, as our dirt is well drained.]

Let's suppose that concrete conducts 1.7 W/m-K. To convert that to more familiar units, 8 inches of concrete would be R-0.68 (which is terrible -- single-paned windows are better). I'll guess that the dirt, even when wet, insulates a bit as well, so that the bottom of the pool is about R-2. My pool will have an average depth of 7 feet (it has a 10.5 foot deep diving area), so it'll have an exposed area of about 1790 feet. If the pool temp is 85 degrees, and the ground temp is 60 degrees, that's 537,000 BTU/day, about three times my expected loss through the top in the spring. That's why I'm insulating the pool.

The blue Styrofoam has an R value of R-10. It is designed to deflect 5% at 40 psi, and is rated for continuous (dead) load of 13.3 psi. 10.5 feet of water plus 8 inches of concrete will be 5.25 psi, well within the dead load rating of the Styrofoam. The stuff should compress 0.33 mm when the pool is filled, which I don't think will cause cracking anywhere (thermal expansion is probably more than that).

The insulation changes the bottom of the pool from R-2 to R-12, so now I expect to lose 90,000 BTU/day, which is a savings of 447,000 BTU/day.  To put that in perspective, on an average day my solar panels will deliver around 40,000 BTU each.  I think I can squeeze 12 of them up onto the roof.  The insulation is saving about as much heat flow as the panels put in!

To attach the insulation to bare dirt on the walls and shelves, I glued them on with Tap Plastics X-30 two-part expanding polyurethane foam, which I sprayed on with a pair of Wagner power sprayers.  The trick here was to hold the panels firmly (with a few hundred pounds of force) against the dirt while the polyurethane expanded, which takes about 30 minutes.  Once we did that the panels really stuck on well.

Note: I wore complete face covering, goggles, and breathed through an activated charcoal filter to take out the volatile organics.  It was impossible to get the crew to wear the same protective gear.  In the end, everything that was exposed got coated in a fine mist of polyurethane.  The warning label says skin will develop an allergy to the stuff with repeated exposure.  If you try this yourself, be careful, and be careful with your crew!

The soil at the bottom of the pool is firm clay, covered with filter fabric, covered with drain rock.  Initially I tried gluing the insulation to the drain rock, but this doesn't work well.  The insulation does not sit flat against the drain rock, and it rocks around a bit.  Worse still, the polyurethane is quite springy, and was deflecting about a quarter inch under my body weight.  This made me realize that the combinations of shelves, drain rock, and insulation is very bad, because the insulation on drain rock might settle, which would cause the pool to hang from the shelves, which would cause the gunite shell to crack.  If I had it to do over again, I would eliminate the soil shelves, which are only there to reduce the cost of the gunite by $1500 or so.

Instead, I ripped up all the bottom insulation that the crews had installed and reinstalled it myself.  I had already compacted the soil, first with the Bobcat, then with my feet (the crew were actually laughing at me), then with a heavy roller.  Then I compacted the drain rock with the heavy roller.  Then I cut the insulation into 15" x 24" squares and hand placed each one, tweaking the rock placement and vibrating the panel so that the rocks settled into a configuration which was flat for each panel.  That took about four partial days, and only got finished because Martha got into the pit with me.  I read later that a skilled laborer with one assistant is expected to place 100 square feet of under-slab insulation per hour, so I was about two times slower than that.

I'm still paranoid about settling, so I'm going to have the south and west walls of the pool done with #5 40 ksi vertical rebar on 6 inch centers.  #5 is strong enough to actually support the entire pool weight (450,000 pounds filled) on the soil shelves, should the shelves not creep under that load.  I also put a 1 foot chamfer on the edge of the shelf under the cover vault.  The fillet of gunite that fills that chamfer, along with the rebar, will spread the torque from the pool wall hanging on that shelf.

[Update: I ended up with a mix of #3 40 ksi and #4 60 ksi rebar, with about half the strength necessary to hold up the whole pool. I figured I only had to hold up one end, and the rebar guy objected strongly to #5 -- he bent most of the rebar with his right knee!]

Another issue is the bond strength between the XPS insulation and the gunite.  I've since built the pump vault, which is insulated as well, and the XPS/concrete bond there is perhaps only 1 to 3 pounds per square inch shear strength.  If I assume 1 psi for the pool shell, then it will take about 140,000 pounds of shear, which is substantially less than the 450,000 pound filled weight of the pool.  This shear strength is comparable to the shear strength of the polyurethane bond to the soil.  This pool shell will be sitting on its bottom.  The polyurethane is substantially more springy than the polystyrene, and I think it will deflect the 0.3mm in shear that will happen when we fill the pool.

I did not predict the cost well.  I used 130 2 foot by 8 foot panels, with a small amount left over that I am using to insulate the pool piping.  These cost $2800.  I used 30 gallons of the X-30, which cost me about $1500.  It took me and a crew of three guys four days to glue on the side panels, and I think that labor cost me $2500.  The bottom I did myself, but the labor for that would probably have been another $1000 or so.

You can try to compare that cost to the cost of the panel array.  The problem with the comparison is that the panels deliver the most heat when its warm, when you don't need it.  The second problem is that the panel array is limited by the size of my roof, so I can't just spend an arbitrarily large sum on panels.

That said, standard FAFCO-type panels are something like $300 each, and produce 25,000 BTU/day.  To generate the same amount of heat saved, you'd need 18 panels, which would cost $5400.  However, the panels don't really work at all in November and April, when you need the heat most.  The panels I'm using are SunEarth EP40s, which are glazed and insulated copper panels, and cost around $1100 each.  These will deliver around 35,000 BTU/day, and will work in November and April.  But I'd need 13 to match the insulation's savings.  And that would cost $14,000!  So I'm pretty confident the insulation will be a win.

I'm not quite done with the insulation.  You can see a pile of pink insulation at the southeast corner of the pool.  This is standard XPS, and it will be going around all the pool piping.  I tried to find XPS pipe insulation, but the stuff is hideously expensive because it is all custom cut from large billets, usually for municipalities who are insulating their sewer pipes against frost.  So instead I'm gluing together a little box of 2" XPS around all my pipe runs.  Because the pool pump will be running 24 hours a day, the heat losses from the pipes can actually be comparable to the pool shell itself if not insulated.  If you are building a pool, you might want to consider insulating your pipe runs even if you don't insulate the shell, because insulated pipe runs don't suffer any of the structural and installation issues that come with the shell.

Side note: I had a hell of a time finding a Highload 40 distributor. I ended up calling Dow directly, who referred me to White Cap Insulation in San Francisco, who sold me the stuff for $21.58 per 2" x 2' x 8' sheet. Note that standard 20 psi extruded polystyrene has a dead load rating of over 6 psi, so it would have been technically okay for my 5.25 psi of dead load. If I wanted to save around $600, I would probably have gone for the thinner stuff. It would also be easier to buy. I'm hoping that the extra-sturdy foam is buying me a little margin, which is nice to have because I don't have examples of other pools that have been built this way.  [Update: somehow I miscalculated the amount of gunite in the pool, and it's a bit larger than my estimate here.  So, I'm glad I have lots of extra margin on the load carrying capacity of the insulation.]

Side note two: the space down at the bottom of the deep end experiences really wild temperature swings right now.  Because it is down low, it is radiatively coupled to the sky and not much else.  When the sun is shining down there, it can get well over 100 degrees.  As soon as the sun goes down, the temperature plummets, and because the pool is a depression, chilled air tends to stay down there.

Side note three: If you read this post and insulate your pool, or know of a pool that's been insulated, you might leave a comment so that there is some repository of success stories on the internet for this idea. And please please post if there has been a problem with an insulated pool.


Sunday, December 14, 2008

The World's Underwriter

This graph, from the New York Times, shows the extent of U.S. financial commitments made over the last year to deal with the credit crisis.

From December 2007 through September 2008, we committed $537 billion.  That is not money spent, but it is money put at risk by guaranteeing various financial instruments, and by loaning to banks that could not otherwise get loans.

But in September 2008 the Fed went nuts, nearly doubling the commitment to $1097 billion, or around $5500 per taxpayer.  (There are around 200M taxpayers, right?)

And then in October, the FDIC joined the Fed, and, according to the NYT, together they upped the commitment to $5069 billion.  I am not following the NYT very well here, however, since it appears that $1600 billion of this refers to the size of the commercial paper pool, and not the size of the projected government purchases within that pool.  So it's not like the government is actually selling $5 trillion of T bills.

It appears the Fed has become the world's underwriter.  The commercial paper thing appears pretty transparent, for instance.  The Fed sells T bills at 1% interest, and buys commercial paper at 5 to 10% interest.  So long as the default rate is lower than the spread, the Fed makes money.  Given the size of the money flow here, it is possible that the Fed could either make or lose amounts similar to the size of the national debt over the next couple of years.

Of course the problem is that someone at the Fed has to decide what rate they want for paper from which companies.  Since the decisions required are vast -- they have to price the entire commercial paper market -- one presumes the same people are doing this that just presided over the credit default swap implosion.  So, it seems like we might be more likely to headed for the "likely to double the national debt" outcome and less likely to end up at the "paid back the national debt" outcome.

This is Macroeconomics, for real.  Wow.  It really makes you wish there were a way to get off this train.

Friday, December 12, 2008

Prediction

That white paper got me thinking: what if the government made a bunch of other sensible decisions?
  • They might shut down Yucca Mountain, and require that all nuclear waste be stored on the site of the reactor for 300 years. Nah, won't happen. [Update: They did it!]
  • They might just have NASA cancel Ares-I and Ares-V, and leave it to SpaceX to provide a launcher. This might actually happen. All those folks in Florida and Utah that used to work for NASA contractors? Learn to build windmills. Some of you can learn to build Dragons and Falcons. [Update: Holy crap! They did it!]
  • They might require all air conditioners and heat pumps to have short-term demand management controls. As the newer air conditioners got deployed, we'd have a lot less need for online throttled-down combustion gas turbines to back up all these new wind farms. I've not seen any rumblings of this yet.
  • They might even standardize form factors for rechargable batteries... [Update: Um, they sort of did it! (Europe hsa standardized cellphone recharging plugs)]

Going Nuclear

Stephen Chu, the current director of the Lawrence Berkeley National Lab, and the guy that Obama just fingered to be the new Secretary of Energy, signed this paper in August of this year.  The paper is a short, very high level, but clear and broad statement of why and how we should invest heavily in nuclear power.  Usually, statements like this come from people with no clout.

Holy crap.  This Barack Obama guy seems to be making at least some decisions I agree with.  I'm confused and unused to this feeling, but I think I like it.

-Iain

Monday, December 01, 2008

Spend, spend, spending our way out of recession

We have a consensus among politicians in this country that we must spend our way out of this recession.  Of course, there are many things to spend money on:
  • For the last six years, the neocons within the Bush Administration have spent around 700 billion dollars of our money on wars, and committed another trillion or so to the aftermath of those wars (caring for the permanently maimed American soldiers).
  • This March, the idea that everyone jumped at was spending money on consumer goods, so every American got a check for $400 from the government, and was exhorted to spend it on consumables.  Pfft!  Just like that, $80 billion gone.
  • In just the last month, the Federal Reserve has spent hundreds of billions by buying stock in badly run banks whose value is justly plummeting as people realize how stupid their management was.
All of these have been colossal failures from an economic point of view.  And I do mean colossal.  The U.S. economy is about $13 trillion a year, and has a historic growth rate of about 3% per year.  It is the most awesome generator of wealth ever.  The economy usually generates about $400 billion a year in growth.  And our government is now throwing away money at a rate which entirely negates the economy's ability to grow at all.  The current trends guarantee that our children will be worse off than we are.  We are within a single order of magnitude of blowing away the entire output of the U.S. economy, which would reduce us to hunter-gatherers amid fancy energy-starved infrastructure within a year or two.  Lest you think that an order of magnitude increase in government spending is preposterous, consider that one department, the Fed, is now spending more than 1% of the U.S. GDP per month propping up just one industry.  The auto industry is lining up at the trough, and others aren't far behind.

Although the things the government spends money on now are crippling the economy, this is actually a good time for government spending to grow, so long as we spend money on the right things.  Private sector returns on investment are low, so the cost of borrowing has dropped, which means investments have longer to make a return.  This is a great time for the government to spend money on things that will cause the economy to grow in the long term:
  • Domestic power infrastructure, like wind farms and nuclear powerplants.  These will make the cost of future energy more predictable.  Predictability means less risk, so that the cost of capital for energy-intensive manufacturing, like fertilizers and aluminum and steel and plastic, will be lower in the U.S. than in other countries without the same infrastructure.  That will give our descendants decades of competitive advantage, which is enough time for not just businesses but industries to grow.
  • Health care efficiency.  I'm not suggesting we spend more on health care itself -- we're spending too much on health care.  I suspect that a huge amount of operational expense can be slashed from health care through radical restructuring without large amounts of investment.  The restructuring will be radical though.  Imagine the number of people put out of work if drug advertising stopped.
  • Electrified transportation.  Hydrocarbon-based transport will always rely on imported fuels subject to ever-more volatile price swings.  The value of real estate depends in part on the cost of transportation (if you drive 40 miles to work at 20 mpg and $4/gallon and 3% discount, that's $100k present value), and so volatility in energy prices causes volatility in housing prices which caps the house value that people can afford.  Worse still, we get situations like the current housing bubble, caused by just 2 million people simulaneously finding out they bought way too much house.  (That's just 1.7% of the 116 million homes in the U.S.!)
At least the president-elect seems to have the right idea.  I heard him refer to investment spending as a "two-fer".  I was disappointed at his notion that half the good idea of a "two-fer" is just spending the money at all.  But at least he's looking for the right kind of thing to spend on.

Friday, October 31, 2008

Save GM's workers, but not GM

I've just listened to a discussion on KQED about whether the US government should bail out the auto industry. The reason the solution here is not obvious is that everybody assumes that to save the job of someone who works for GM, you have to save GM. I suspect that's not true.

Toyota makes lots of cars in the United States. I suspect the majority of Toyota's domestic sales are domestically built. It saves them shipping, and avoids exposure to foreign exchange risk. The overall point is that there is no problem with American workers making cars that sell. The problem is that some American workers are making the wrong cars, and that is the fault of their engineering and management.

The usual way for these things to work out is that GM would go bankrupt and it's assets would be sold. Toyota would hire some of those workers, and buy some of those assets on the cheap, because they'd know that with GM gone there would be a reduction in the supply of cars and so they could make more money by increasing their own production.

Crucially, the assets (e.g. assembly plants) would be sold for a fraction of their original cost because Toyota would have to adapt them to Toyota's production style. This is very important -- GM's production style isn't profitable, so those assets have to be changed to become profitable.

Also, crucially, the former GM workers hired by Toyota would have to be retrained. This takes a lot of time for Toyota. The rehiring process also tends to weed out at least some of the poorly producing workers.

All this adaptation of physical capital and retraining of workers is all good stuff. So what's so bad about bankrupcy?

GM's shareholders lose a lot of money. Actually, GM's shareholders lost a lot of money a long time ago. GM's total market cap isn't very large, and hasn't been for a long time, because GM has had bad management for a long time. I claim that this problem is not terrible and does not warrant intervention from the government.

GM's workers and suppliers have no business for a long time. This is the real problem, and this is something that the government can help with.

So, here is what I suggest. I suggest that because GM, Ford, and Chrysler are "too big to fail", the government should intervene before they shut their doors, and negotiate an orderly transfer of their assets to companies that can make those assets perform. I suggest that Toyota and Honda and Mercedes and so forth would be willing to purchase much of the assets of the big three for a fraction of their orginal price, and would be willing to take government inducements to keep the factories open and the workers employed while they are restructured and retrained.

The result will be that some assembly people will be put out of work, because not all the Big Three's plants will be purchased. The corporate management of the big three will go unemployed, which is fine, as they are responsible for the current distress in those companies. There will be differences between the financial commitments that GM has made to its workers, and those that Toyota makes its own, and the differences between those commitments will have to be worked into the sale price from GM to Toyota.

We need to clarify the idea of "too big to fail". Our commitment is to our people, not to our companies.

Wednesday, October 29, 2008

The Biggest Haul Ever

The $700 billion bailout is about the same size as the dollar cash money supply in North America (that is, excluding dollars held as reserve currency in foreign sovereign banks).

The robbers in the Securitas Depot Robbery of 2006 made off with $92 million. This is the largest robbery in the western world, surpassed only but hugely by the $1 billion heist of cash from the Central Bank of Iraq in 2003, which was curiously similar to current events in that it appears to have been made possible by the actions of the Republicans in the U.S. government. In that case, it was the initiation of bombing of Bagdad. The current mess traces back to the Gramm-Leach act of 1999 which repealed the Glass-Steagall Act of 1933, which was intended to prevent banks from engaging in risky investment practices such as those that had caused the banking collapse in early 1933.

But neither of those robberies is anything like the size of the bailout. Imagine that some group managed to knock over every single bank, not just in one city, but in all of them. Not just the banks, but the convenience stores, groceries, businesses. Not just those but swiped the cash from every house and every wallet of every person in the United States. What a haul! It's positively Grinchian in scope.

Now imagine that those responsible are being paid a salary by the federal government. And that the folks they are turning the money over to are being paid extra to figure out what to do with it!

I've been mugged!

Wednesday, October 01, 2008

Bail out Main Street, not Wall Street

The $700 billion Paulson plan is too expensive and fixes the wrong end of the problem.  A better solution is obvious: bail out the mortgages that are going into default, rather than bailing out the banks that are capitalized by derivatives of those mortgages.

Bailing out the mortgages themselves is much cheaper (around $200 billion), directly eases the problems of millions of homeowners, and should fix the bank's capitalization problems.

Now, if it doesn't fix the capitalization problems, that means there is a lot more bad debt floating around than just these subprime mortgages.  And if this other debt is the problem, let's get that problem front and center so we can deal with it.

Some background:  The subprime crisis is essentially this:
  • Millions of people in the U.S. bought houses more expensive than they could afford, on the assumption that the rise in the price of the house would help them pay for the house.
  • Those people accepted mortgages with initally low rates, that then increase after a period of time.  They figured that before the rates increased, they would either get a job that paid better, or refinance the house based on a higher assessed value which would give them a larger equity stake and therefore make it possible to get a loan with a lower interest rate.
  • Housing prices are not rising, and those people are unable to refinance and don't have a better job.  When the interest rate rises, they can't pay the increased bill and fall behind on their mortgage payments.
After 10 years of excessive spending on houses, and excessive building of expensive houses, the US has too many expensive houses.  The house price collapse will not be resolved until the US economy has grown enough folks with enough income to afford those houses.  My guess is this will take about a decade.

In the interim, we cannot allow those extra expensive houses to go unoccupied.  Unoccupied houses fall apart, and so they lose value quickly.  This loss will be borne by the large institutions in our economy and will be a net drag on our net asset growth.  Under the Paulson plan, the government will buy derivatives of these mortgages and these losses will pass to the taxpayer.

So, the houses must remain occupied, and we do not have enough people who can afford them to occupy them.  Until we grow those folks, the best people to occupy those houses is the people who are living in them now.  I have a plan to keep them there, detailed below.

The financial crisis is an extension of the subprime crisis:
  • Banks have been converting bundles of mortgages into mortgage-backed equities, and selling those.  Many institutions now own these assets.
  • The value of those equities depends on the number of mortgages within them that default.
  • The value was initially determined by making assumptions about the usual number of mortgage defaults.  Side note: some mortgage-backed equities are guaranteed, so that the risk of many defaults is seperated out into another security.  That does not change the problem, only who owns it.
  • Because the subprime crisis is surprising, nobody is comfortable estimating the number of mortgage defaults any more, and so the value of these equities is not well known.  Their value is plummeting for two reasons:
    • More risk means less value.
    • Banks are trying to sell these MBEs, but nobody is buying.
  • Banks are required to have a dollar of capital for every 12 dollars they loan out.  When the value of their assets drops, they have to sell some of their loans (packaged as mortgage-backed equities) to generate more capital.
  • So, selling MBEs causes the value of the MBEs still held to drop, which forces the bank to sell more MBEs.  The feedback loop is driving the capitalization of the banks below the legal requirements, which causes the banks to fail.
Paulson's plan is to have a U.S. government agency buy $700 billion of mortgage backed assets at some "fair" price.  This price will set a floor on the valuations of the assets owned by banks, so that they don't have to sell so many MBEs, and it will give them the cash they need to improve their asset positions to the point where they can loan money again.

The Paulson plan will fix the Wall Street problem, but it does not address the Main Street problem, that is, the mortgage defaults, except that in avoiding a recession it will reduce the number of mortgage defaults from people losing their jobs.

The alternative is to fix the Main Street problem directly.  If the government guarantees that only the expected number of mortgage defaults happen, then the MBE will have known values, which should also put a floor on the valuation of the bank's held assets and similarly ward off the credit crunch.

Here is how the government makes that guarantee.  Let's say that Harry has an adjustable-rate mortgage which just increased its rate, and he can't afford it.  His original 10% equity in the house is down to 5%.  Ordinarily he would go into default, and at some point the bank would reposess the house and evict him, and then sell the house.  We don't want that to happen because either the house will go vacant for a long period of time, during which it will deteriorate and lose value, or the bank will sell it for a song and lose a great deal of money, causing the bank to go bankrupt.

Instead, the government steps in and offers Harry the following deal:
  • The government buys 25% of the house from Harry.
  • Harry now refinances his 75% of the house.
    • He now has 6.66% equity in his smaller share of the house.
    • His loan amount is 74% of what it was, so his payments are proportionally smaller.
  • At some point in the next 10 years, presumably after the housing market has worked through its excess inventory, Harry gets a one-year notice from the government that he needs to either buy back the government's 25% or sell the house.  He can sell at any earlier time if he likes.
So, how much cash would the government have to invest with this plan?  Suppose the number of subprime mortgages is 9 million, and 25% of those are in serious delinquincy.  Suppose the average value of those houses was $320,000.  For the government to purchase a 25% stake in all of those would cost $180 billion.  And note that this is an investment.  After ten years or so, we should expect to see most of that money back, perhaps with some gain.

Why is my plan cheaper than Paulson's plan?  The primary difference is that my plan keeps people in their houses by purchasing a portion of the house's value.  Paulson's plan requires the government to buy the full value of the mortgage.  What Paulson's plan does not detail out is that the government will be stuck with the loss when the owners default on the mortgage and then the house is repossessed and sold for a loss.

Saturday, September 27, 2008

Deer (plural) in the headlights

I watched the first presidential debate last night, as I expect many of you did.

My basic takeaways:
  • I was surprised to find myself liking Obama's foreign policy points more than McCain's.
  • McCain seems really worried about the effect of a defeat in Iraq on the U.S. military.
  • Neither candidate has a clue about the financial meltdown, either what to do about it or how it would affect his administration.
The conventional wisdom was that McCain understands foreign policy better than Obama.

Certainly he's travelled to hot spots far more than Obama has.  This is partially a function of the amount of time that McCain has been in the Senate.  But McCain has also been more interested in going places than Obama, and I'm disappointed that Obama hasn't taken better advantage of his ability, as a Senator, to go places and see first-hand the situation on the ground.  As a leader I think you always have to spot check the information you are getting, otherwise you end up with travesties like Colin Powell presenting bad evidence to the U.N.

But I like Obama's take on South Ossetia better than McCain's.  McCain espouses a simple response: The Russians went in, we want them out.  He made the more interesting point that six months ago he had called for replacing the Russian "peacekeepers" in South Ossetia with troops from other areas, since the Russians were hardly neutral.  Obama called for both sides to cool down, which is significant because he's acknowledging that Georgia's president was being provocative.  He didn't mention any details during the debate, but I think his position may be more realistic here.

Obama tiresomely pointed out that going into Iraq was a bad idea in the first place, which I agree with, but as McCain points out, the next president decides when and how we get out, not whether we go in.  But McCain seems to think that withdrawal is driven by avoiding the stigma of defeat, both for its effect on our military and on also for the effect on our adversaries.  I thought it would have been useful for McCain to point out that there is a real link between our defeat in Somalia and the 9/11 attacks: bin Laden took specific inspiration from our debacle in Mogadishu, as reported by one of his lieutenants in the 9/11 commission report.

Obama is right when he points out that the current administration has been completely occupied by Iraq.  As he says, we took our eyes off the ball, which was nailing bin Laden and al Queda.  I think there is real value in killing this man and his organization, because it sends the right message to other asymmetrical adversaries: any single person will become exhausted before the U.S. military does.  I think the rest of the world expects us to tear up a lot of ground while uprooting al Queda, and we should.

McCain made a good point that Obama has made tactical mistakes: Obama should never have explicitly said that we would attack from Afghanistan into Pakistan, and he should have been more careful about suggesting that he himself, as President, would meet with and thus legitimize Ahmadinejad.  These are screwups, I think reflective of Obama's inexperience, but I think we can live with these kinds of screwups.

What I am impressed by is Obama's view that our Iraq engagement has prevented us from using our military power elsewhere to apply pressure to al Queda.  To some extent we've managed to attract foreign adversaries to a field where we are clear to fire, but I think the larger effect has been to grow new adversaries.  Although there is an aspect of bean-counting to it, I think Obama has the more useful perspective of Iraq in the context of the world.  I would like to see him frame our withdrawal as a balance between the risk of emboldening adversaries, as in Mogadishu in 1993, and allowing adversaries to flourish unopposed, as in Afghanistan during the rise of the Taliban.

Obama mentioned taking four divisions out of Iraq and putting two into Afghanistan.  I wish people would use numbers of troops instead of words like "division", because folks like me don't know how many people are in a division.

Given significant prompting, neither candidate offered a clue about how to react to the financial meltdown, nor how the meltdown might affect their administration. They were like deer in the headlights of an oncoming car.  Obama made the distinction of "Main Street" vs "Wall Street", but that's just a sound bite.  I think the more interesting distinction is whether the government should buy partial interest in houses whose present owners face foreclosure, or if the government should buy credit default swaps whose values are unknown because of the prospect of widespread foreclosures.  More disappointingly, neither candidate had any suggestions for how we might stick the bill to the people who profited so hugely from this debacle ($62 billion in bonuses in 2006!).

Both candidates came out in favor of nuclear power, and the distinction was over their approach to waste storage and reprocessing.  Fabulous!  Their differences are over waste: Obama wants to see a better solution, which has been used in the past as a passive aggressive stall tactic on nuclear.  McCain seems convinced that there is some solution to the waste problem, although I suspect he thinks Yucca Mountain is it.  McCain twice pointed out that Obama's position is passively antinuclear, as you can't have powerplants unless you store the waste.

On the whole, I was impressed with the dignity of the debate.  Last year some friends predicted a McCain-Obama contest, and I said then that I'd be happy with either result.  I still think that's true.

Thursday, August 28, 2008

Dichroics 101

A friend asked for a rundown on dichroics, which are the coatings we put on optical glass (and sunglasses) to optimize the transmission properties of our lenses. So, here is Dichroics 101. You could also check out Wikipedia.

Visible light is made of photons. Each one has a wavelength. Your eyes are receiving a bazillion photons every second in the daytime. At night, your dark-adapted eyes are capable of noticing the flicker of individual photons, but only sometimes. Visible light varies from 420 nm (blue) to 700 nm (red). A nm is a nanometer. 1000 nm is a micron (micrometer, but nobody but Europeans says that), 1000 microns is a mm (millimeter), 1000 mm is a meter.

So, a 420 nm photon is really small. However, atoms are 0.1 to 10 nm across, and we can lay down layers just a few dozen atoms thick, so we can actually build things that are smaller than the wavelength of light. Get back to that in a sec...

Any given transparent material has an index of refraction, which tells you (among other things) the speed of light in the stuff. Air has an index of refraction of about 1, so that the speed of light in air is the same as it is in a vacuum: 186,000 miles per second. Glass has an index of refraction of 1.5 to 1.8 (depending on which kind of glass). Plastics (like polycarbonate, what is most likely used in sunglasses) have an index of refraction around 1.5. So, in plastic, the speed of light is 186,000 miles/second / 1.5 = 124,000 miles/second.

Whenever photons go through a surface, like changing from air to glass or back, some will reflect. The number of photons reflected has to do with the change in index of refraction. The equation is: reflected fraction = (Na - Nb)^2 / (Na + Nb)^2, where Na and Nb are the indices of refraction for the two materials. For example, from air (Na = 1.0) to plastic (Nb = 1.5), the fraction is 0.04, or 4%. When you see yourself in a window (or in someone else's sunglasses), this is what you are looking at. Actually, you see two of these, one off the front surface, and one off the back surface of glass.

Suppose we put a 100 nm thick coating of Magnesium Fluoride (a.k.a. MgF2, index of refraction is 1.38) on a piece of glass (index of refraction 1.5). There will be two reflections: one from the air/MgF2 surface (2.5%), and one from the MgF2/glass surface (1.7%). Because there is a smaller change of index of refraction across each surface, each surface reflects less. If the index of refraction of MgF2 was closer to 1.25, halfway between air and glass, then we'd find that the power of the two reflections, when added, would be less than the power of a single reflection of an air/glass surface. But MgF2 doesn't have that nice property, so why do we bother?

Those photons act like waves: they have peaks and troughs. That 100 nm thickness wasn't just any old number, it is 1/4 of the wavelength of green light in MgF2. Green is ordinarily 550 nm, but going through MgF2 it's about 550/1.38=398.5 nm. The light reflected from the MgF2/glass surface will have travelled two times 100 nm more than the light reflected from the air/MgF2 surface, or one-half a wavelength more. So, the crests of the wave off the MgF2/glass surface will line up with the troughs of the wave off the air/MgF2 surface. When you add those two together, you get... cancellation.

Or... nearly cancellation. The air/MgF2 reflection is a little stronger than the MgF2/glass reflection, so there will be a little wave left over. A 550 nm photon will reflect (2.5-1.7=0.8%). There you have it, the first antireflection coating, as developed for German submarine periscopes in World War II.

Now notice that 420 nm (blue) light will not cancel as well, because the two reflections are 65% of a wavelength offset from one another. The peaks and troughs don't quite line up, so it doesn't cancel as well. The same is true of 650 nm (red) light. So, the reflected light will be purplish: it will have some blue and red, but not so much green.

This is the basis of dichroic filters. You can put several layers of stuff onto a glass or plastic surface, and each additional surface will have a reflection. At each wavelength, you can add up those reflections with their wave offsets to get an overall reflectivity. You end up with a graph which shows how much the thing reflects at each wavelength. By varying the materials deposited and the thicknesses, you can get something which has interesting and useful properties, such as reflecting all the IR (> 670 nm) and UV (< 390 nm).

You can buy such a thing at a good camera store. It's called a B+W 486 filter.

Tuesday, August 19, 2008

Grove's plan

Now I've read Andy Grove's plan (at The American, or via Wired) to fix our energy dependence national security mess. Mr. Grove thinks, as I do, that national security is the most immediate problem we face.

There are flaws in both Grove's and Pickens' plans, but we can take good ideas from both and act on them immediately.

There are two steps to either plan:
  1. Switch our vehicles to a non-petroleum energy form
  2. Make that energy domestically
With Pickens' plan, we switch to natural gas to power cars (step 1), and simultaneously free up domestic methane production by building wind turbines (step 2). If we do step 1 without step 2, we end up switching from imported petroleum to imported natural gas, which suits Pickens quite well because he has lots of gas to sell us.

With Grove's plan, if we do step 1 without step 2, we've got a bunch of electric cars which will plug in at night. The extra demand at night will drive utilities to produce more baseload power -- coal, wind, or nuclear, in that order, all of which is domestic. The advantage of Grove's plan is that step 2 is handled by the market.

The problem with Grove's plan is that converting cars and trucks to electricity instead of natural gas is more costly. The added cost will cripple the plan in two ways:
  1. It is so much more costly that the conversion will happen more slowly. Per year, less petroleum imports will be displaced.
  2. Fewer vehicles, in the end, will be converted.
I think there are good ideas in both these plans that we should isolate and exploit immediately.

There are no forseeable battery technologies that will work on long distance trucks. The obvious substitution here is to move long distance freight by electrified train. We already have most of the rail infrastructure (rights of way are the big issue here), and the nation is already switching some cargoes back to rail. But railroads have been sick for a long time, and we have to fix them before they can help America.

Rail's crushing disadvantage compared to trucking is it's capital structure -- the fact that the same companies own the road and the trucks. Long distance trucking works because multiple companies run trucks over the same routes, which are owned and paid for by the U.S. government via tolls on the trucks and taxes on the diesel they burn. We should change rail to use this structure. The rail infrastructure should be electrified in the process, so that the independent trains can choose to run on cheaper domestically produced electricity where it is available. All the technology necessary is already developed and in production.

The good idea in Pickens' plan is to build lots (many tens of thousands) of wind turbines. Wind turbines displace imported natural gas with domestic labor, and that is the most useful part of his plan. If you then convert cars to run on natural gas rather than petroleum, you in turn displace some imported petroleum with some imported natural gas. This second step is a fine thing too, as petroleum costs more than natural gas per unit energy, but the first step is what is most important.

The United States made a terrible mistake during the 1990s by building nearly a terawatt of natural gas-fired turbines. The choice was driven by utilities who know that fuel costs can always be passed to the consumer, so that cheap gas turbines minimized investment and so maximized return on investment. The problem here is that utilities were allowed to make investments with large externalized costs. Market forces do not work to the advantage of most citizens unless the market is set up to internalize the costs that matter to the citizens. Because utilities have no sons and daughters to send to war, they cannot be allowed to make investment decisions that force us to send our sons and daughters to war.

Electric freight trains and wind turbines will not fix America's imported energy problem. Both, however, can be pursued immediately, are solid steps in the right direction that will not have to be reversed, and will make market-affecting changes in our consumption of imported energy. Both options will buy us some time during which we must develop better options.

In the medium term, we can build more nuclear power plants. These take longer than wind turbines to come on line, but the eventual impact can be much larger. The public discussion of our nuclear options is becoming more sensible, and I am beginning to hope that we may be able to begin building this infrastructure again after a two decade hiatus that has cost us terribly.

Nuclear power generation, if pursued in a sensible way, can drive the cost of electricity in the U.S. down below the cost of coal power in China, in a predictable, long-term way, which I think should be an explicit goal of our national energy policy. This will have the effect of "onshoring" basic industries that we have been moving overseas for decades. The onshoring effect is actually more powerful than displacing imported petroleum, because the imports that are replaced for a given amount of investment have higher added value.