Abstract:
The invention relates to corrosion inhibitors which are amides of cyclic amidines. The inhibitors are particularly useful for preventing the corrosion of metals caused by H 2  S and CO 2  in water-in-oil, particularly in saltwater-in-oil emulsions.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The invention relates to corrosion inhibitors which are amides of cyclic amidines. The inhibitors are particularly useful for preventing the corrosion of metals caused by H 2  S and CO 2  (&#34;acid gas&#34;) in water-in-oil, particularly in saltwater-in-oil emulsions. 
     2. Description of the Prior Art 
     It is known to inject a solution or dispersion of corrosion inhibitors in the crude oil during oil recovery, and in the transport or storage of the crude oil so that a protective layer forms on the surface of the metal parts coming in contact with the oil. The crude oil emulsions usually contain saltwater and in many cases, depending upon the origin of the oil, contain H 2  S and CO 2  which have a pronounced corrosive effect. The corrosion inhibitors to be used for this purpose should be soluble in oil and should at least be dispersible in saltwater so that they can have an optimum effect. 
     Such systems are known from German published application No. 2,846,977. These are imidazolinium salts which are used dissolved in an oil soluble organic solvent in the presence of a hydrocarbon oil. The problems with such systems are the relatively complicated metering form (3 components) and the fact that the corrosion protection is not satisfactory in all cases. We have noted, for instance, that the imidazoline having the formula ##STR1## (as chloride) described in the referenced publication does not develop sufficient effectivness against the corrosive erosion caused by the effects of H 2  S when used alone. 
     SUMMARY OF THE INVENTION 
     The subject invention relates to compositions having the following structural formula: ##STR2## in which R denotes C 7  - to C 25  -, preferably C 8  - to C 17  -alkyl or alkenyl radical and n represents the FIG. 1 or 2. The inhibitors may also contain from 0.5 to 100 percent by weight of elementary sulfur relative to the above compounds. 
     The subject compositions are particularly useful in preventing the corrosion of metal caused by H 2  S and CO 2  in water-in-oil emulsions such as crude oil. The compositions can be uniformuly distributed in oil-in-water emulsions without the aid of additional solvents. 
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     The subject compounds are amides of cyclic amidines which are based upon an imidazoline- or 3,5-tetrahydro-pyrimidine system. The compounds can be obtained in a simple manner by traditional reactions. 
     Initially a carboxylic acid R--COOH, with R representing a C 7  - to C 25  -, preferably C 8  - to C 17  -alkyl or alkenyl radical is reacted with diethylene triamine or di-n-propylene triamine at 120° C. to 160° C. within 5 to 10 hours in a mole ratio of 1:1 to 1:1.2 and the resultant acid amide is reacted with formamide at 120° C. to 150° C. within 0.5 to 2 hours. Following this process the product is condensed at 200° C. to 300° C. preferably under vacuum (1.5 mbars to 80 mbars) within a period of 5 to 10 hours. The resultant imidazoline and/or tetrahydro-pyrimidine derivatives may be isolated in their pure form. 
     All of the above defined carboxylic acids are suitable as starting carboxylic acids. Preferably chosen are, for instance, n-octanic acid, iso-octanic acid (2-ethylhexanoic acid), iso-nonanoic acid (3,5,5-trimethylhexanic acid), lauric acid, stearic acid, oleic acid, behenic acid and mixtures thereof. Mixtures of natural fatty acids such as tallow fatty acid, coconut fatty acid, colza oil fatty acid and palm kernel fatty acid are also suitable. 
     The compounds alone have a very satisfactory effect as inhibitors against H 2  S and CO 2  corrosion. Testing indicates that corrosion is less than a fourth of the value obtained when the compounds are not used. 
     The inhibition effect can be increased, however, if 0.5 to 100 percent by weight preferably 1 to 30 percent by weight of colloidal sulfur is present relative to amides of the cyclic amidine. The sulfur can be incorporated in this system by a mere admixing of &#34;colloidal&#34; sulfur but is preferably incorporated by heating the mixture to 100° C. to 200° C. within a period of 1 to 3 hours. Inhibitors obtained in this manner are capale of reducing the corrosion to less than one-fifth of the value obtained when the inhibitors are not used. 
     The subject corrosion inhibitors are added to the water-in-oil emulsions in quantities of 50 ppm to 1000 ppm relative to the weight of the emulsion. They disperse without difficulties in the aqueous as well as in the oil phase. 
    
    
     The following examples will illustrate in detail the invention, but are not intended to limit the scope of its application. 
     EXAMPLES 
     Examples 1 and 2 illustrate how the corrosion inhibitors of the subject invention are prepared. 
     EXAMPLE 1 
     In a reaction vessel, 423.7 grams of oleic acid are heated to a temperature of 70° C. to 80° C. and at this temperature are added dropwise into 170.3 grams of diethylenetriamine. Following this, reaction water is removed by distillation at 150° C. to 160° C. for 7 to 8 hours. Then 67.6 grams of formamide are added dropwise into the resultant acid amide at 120° C. to 150° C. within a period of 1 hour. Subsequently the mixture is condensed at 200° C. to 250° C. under a vacuum of approximately 20 Torr for 8 hours. The compound had a structure of ##STR3## wherein R=C 17  H 33 . The yield was 565 grams of a brown viscous oil. 
     EXAMPLE 2 
     In a reaction vessel, 316.4 grams of isononamic acid (3,5,5-trimethylhexanic acid) are heated to a temperature of 70° C. to 80° C. and are added dropwise into 288.7 grams of dipropylenetriamine at this temperature. Following this process, reaction water is removed by distillation at 150° C. to 160° C. for 7 to 8 hours. Then 90 grams of formamide are added dropwise into the resultant acid amide at 120° C. to 150° C. within a period of 30 minutes. Following this, the product is condensed at 200° C. to 250° C. and under vacuum of approximately 20 Torrs separating ammonium. The compound had a structure of ##STR4## wherein R=C 8  H 17 . The yield was 560 grams of brown viscous oil. 
     The corrosion inhibitors and several variations thereof were tested according to the so-called dynamic or &#34;wheel&#34; test. This is a method commonly employed in the crude oil recovery to test inhibitors. 
     The test samples are iron sheet metal having the dimensions of 130 mm×10 mm×1 mm. These are sanded, degreased with toluene, and are weighed. Test gasoline was used as the test medium which contained 50 percent by weight of saltwater with 3 percent NaCl in emulsified form. In order to simulate field conditions, the test medium was saturated with H 2  S and CO 2  and was poured into test bottles. Following this the inhibitors to be tested were added in quantities of 250 ppm. The test samples of sheet metals were fastened to the bottle covers and were immersed in the test medium. 
     The test bottles were then fastened to a rotating axis (wheel) which turned in a water bath maintained at 80° C. at a speed of 40 rpm. The test duration was 16 hours. 
     Thereafter, the test strips were cleaned with an inhibiting acid, were degreased, dried and were weighed in order to determine the weight losses. The results were evaluated and compared with a blank value (test without added inhibitor). 
     The specific corrosion inhibitors used and the results are shown in the following table. 
     
                       TABLE______________________________________Compound                      Corrosionof Formula R                  (mg/sample)______________________________________I          C.sub.17 H.sub.33  22.9I          C.sub.17 H.sub.35  22.5II         C.sub.17 H.sub.33  22.4II         C.sub.17 H.sub.35  21.1I + 1/5/10% S      C.sub.17 H.sub.33  21.9/21.2/17.4I + 1/5/10% S      C.sub.17 H.sub.35  22.4/22.7/26.9II + 1/5/10% S      C.sub.17 H.sub.33  28.6/26.9/23.3I          i-C.sub.7 H.sub.17 35.5I          i-C.sub.8 H.sub.17 33.8I          C.sub.11 H.sub.23  28.2I          C.sub.17 H.sub.33  22.9I          C.sub.17 H.sub.35  22.5I          Tallow fatty acid radical                         26.4I          Coconut fatty acid radical                         24.9I          Crude oil fatty acid radical                         20.2I          Palm kernel fatty acid radical                         23.4II         i-C.sub.7 H.sub.15 34.8II         i-C.sub.8 H.sub.17 29.3II         C.sub.11 H.sub.33  27.1II         C.sub.17 H.sub.33  21.1II         C.sub.17 H.sub.33  22.4II         Tallow fatty acid radical                         24.2II         Coconut fatty acid radical                         26.1II         Colza oil fatty acid radical                         21.3II         Palm kernel fatty acid radical                         22.7Blank value (without sulfur)                     98.3Blank value (with 10 percent sulfur)                     114.9Comparison* ##STR5##                 52.8______________________________________ *In accordance with Germany published application 2,846,977.