A method of harnessing geothermal energy to produce electricity without polluting the environment by using universal portable closed loop systems is provided. The Scientific Geothermal Technology, The Self Contained In-Ground Geothermal Generator; The Self Contained Heat Exchanger; and The IN-LINE PUMP consist of several designs and variations complementing each other and/or operating separately in many different applications in energy sectors. The system can be used for harnessing heat from established lava (tube) flows; harnessing the waste heat from the flame on top of flare stacks; and other situation where a source of heat is difficult to access or is not suitable for relatively heavy equipment of a power plant or power unit. Also, included is an exemplary use for restoration of the Salton Sea which implements the Scientific Geothermal Technology for exchanging water from a salty terminal lake with oceanic water and for production of electricity and fresh water.