Devices for producing mechanical power from geothermal energy {having a Rankine cycle of the Organic Rankine Cycle [ORC] type or the Kalina Cycle type}