Electricity generation using a carbon-dioxide thermosiphon