News for hackers. Stuff that matters.
Re:Yandex data center in Finland loses power due to contract... by m55au on Wednesday May 04, 2022 @06:21AM (#31258579)
No need to complicate things with obscure units.

  You have: 40 MW/30% / (10722.2 W*hr/L)
  You want: L/hr
   40 MW/30% / (10722.2 W*hr/L) = 12435.259 L/hr
Re:Yandex data center in Finland loses power due to contract... by dredmorbius on Wednesday May 04, 2022 @07:22AM (#31258981)
GNU Units has builtins for some standard energy equivalent units, specifically "tonoil" and "barreloil". "litreoil" doesn't seem to be included by default (though it can be added via a local configuration file).

    literoil = 1 barreloil * liter/barrel
And the calculation gives me ...10.69 kWh/L

The barreloil value is for crude, diesel may have a slightly higher net energy density. But we're good to 3 sig figs.

I could have bypassed the tonoil step and calculated thermal energy in barreloil directly though saving another conversion.

Otherwise I'd have to remember energy density/L of diesel fuel.

I've added the definitions for litre, pound, and kg oil and can now run:

  $ units --terse '40 MWh/30%' literoil
  12470.969
The fun part though, at least for me, is showing how to do conversions with GNU units, and the equivalences which become apparent doing so.
Re:Yandex data center in Finland loses power due to contract... by m55au on Wednesday May 04, 2022 @07:45AM (#31259170)
I looked around a bit in "definitions.units" and there are actually energy densities in there for various fuel sources, including diesel.

  You have: 1 diesel
  You want: Wh/L
   1 diesel = 10103.465 Wh/L
Slightly different value than in Wikipedia, but close enough.
Re:Yandex data center in Finland loses power due to contract... by dredmorbius on Wednesday May 04, 2022 @09:47AM (#31260336)
*blink*

TIL, there are!

Thanks.

(For the curious, the definitions file is ~7500 lines, there's a lot in there. GNU version. For those on MacOS, the stock BSD units offers far less.)