A consistent description of the gas distribution in a gas-loaded heat pipe