Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHODS AND COMPOSITIONS FOR INHIBITING CORROSION
Document Type and Number:
WIPO Patent Application WO/2000/001785
Kind Code:
A1
Abstract:
Disclosed are methods and compositions for inhibiting corrosion in the overhead of a crude unit distillation tower by washing the crude oil with water containing a hydrophilic, polymeric, nitrogenous base, a di- or multivalent metallic base, or a combination of a multi-polyether-headed surfactant and a monovalent metallic base. In another embodiment, a hydrophobic, nitrogenous base is added directly to the crude oil then washed with water.

Inventors:
HART PAUL R
Application Number:
PCT/US1999/013791
Publication Date:
January 13, 2000
Filing Date:
June 17, 1999
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BETZDEARBORN INC (US)
International Classes:
C10G9/16; C10G31/08; C10G75/02; (IPC1-7): C10G9/16; B01F17/16; B01F17/18; C10G9/12
Foreign References:
US5114566A1992-05-19
US5080779A1992-01-14
US1829705A1931-10-27
US3974220A1976-08-10
US2557081A1951-06-19
US4416796A1983-11-22
US5194143A1993-03-16
US5264114A1993-11-23
US1844475A1932-02-09
US2320267A1943-05-25
US3819328A1974-06-25
US4271054A1981-06-02
Attorney, Agent or Firm:
Turk, Arnold (VA, US)
Download PDF:
Claims:
Having thus defined the invention, what I claim is:
1. A method for reducing corrosion in the overhead of a crude unit distillation tower comprising washing the crude oil with water which contains dissolved therein a nitrogenous base, a di or multivalent metallic base, or a combination of multipolyetherheaded surfactant and a monovalent metallic base, said dissolved bases and combination being effective for that purpose.
2. The method as claimed in claim 1 wherein said nitrogenous base has an aqueous or alcoholic solution or dispersion pH of at least 11.
3. The method as claimed in claim 2 wherein said nitrogenous bases are selected from the group consisting of polyetheramines, polyamines, polyimines, polypyridines, and poly (quaternary ammonium) bases having about 1 to 10 carbon atoms per nitrogen or oxygen and degrees of polymerization of about 6 to about 60,000.
4. The method as claimed in claim 3 wherein said polyetheramines, polyamines, and polyimines are selected from the group consisting of dimorpholinodiethyl ether derived from morpholine still bottoms, poly (oxyethylene) diamines of dp 13, and polyethyleneimine of dp 28.
5. The method as claimed in claim 3 wherein said poly (quaternary ammonium) bases are selected from the group consisting of silicates, carbonates and hydroxides of alkyl or alkylaryl quaternary amines.
6. The method as claimed in claim 5 wherein said poly (quaternary ammonium) bases are selected from the group consisting of poly (diallyldimethylammonium hydroxide), poly(N,N dimethyl, 2hydroxypropyleneammonium hydroxide), and poly[N,N dimethyl, 3(2hydroxypropylene ammonium) propylammonium hydroxide].
7. The method as claimed in claim 2 wherein said nitrogenous base is selected from the group consisting of the hydroxides, carbonates and silicates of alkyl or alkylaryl quaternary amines of 12 to 72 carbon atoms per quaternary nitrogen.
8. The method of claim 7 wherein said alkyl or alkylaryl quaternary amine bases are tributylmethylammonium hydroxide and dimethyltallow (3trimethylammoniumpropylene) ammonium carbonate.
9. The method as claimed in claim 1 wherein said nitrogenous base is dissolved in said water washing the crude oil in an amount ranging from about 4000 to about 12,000 parts per million parts water, or about 200 to about 600 parts per million parts crude oil.
10. The method as claimed in claim 1 wherein said di or multivalent metallic base has an aqueous solution pH of at least 11.
11. The method as claimed in claim 10 wherein said di or multivalent base is selected from the group consisting of hydroxides, carbonates and silicates of alkali earth metals, and hydroxides of amphoteric cations Zn+2, Al+3, and Zr+4.
12. The method as claimed in claim 11 wherein said di or multivalent base is Ca (OH) 2 orAI (OH) 3.
13. The method as claimed in claim 1 wherein said di or multivalent base is dissolved in said water washing the crude oil in an amount ranging from about 2000 to about 12,000 parts per million parts water, or about 10 to about 600 parts per million parts crude oil.
14. The method as claimed in claim 1 wherein said monovalent metallic base has an aqueous solution of pH of at least 13.
15. The method as claimed in claim 14 wherein said monovalent metallic base is selected from the group consisting of hydroxides, carbonates and silicates of lithium, sodium, potassium, rubidium, cesium, and francium.
16. The method as claimed in claim 1 wherein said multi polyetherheaded surfactants are selected from the group consisting of hydrophobes of C3 to C, 8 alkyl, alkylaryl, or alkylether diols or polyols; C3 to C, s alkyl or alkyiaryl 1° or 2° amines ; and C3 to C, 8 alkylphenolic resins having a degree of polymerization greater than or equal to 2; adducted with two or more hydrophilic heads per hydrophobe comprising chains of poly (C2 to C3 alkylene oxide) of dp 3 to 30.
17. The method as claimed in claim 16 wherein the hydrophobes or hydrophiles of said multipolyetherheaded surfactants are further crosslinked with aldehydes, epoxides or isocyanates.
18. The method as claimed in claim 16 wherein said multi polyetherheaded surfactants are selected from the group consisting of branched nonylphenolformaldehyde resins of dp 4 to 8 adducted with 4 to 8 chains of poly (ethylene oxide) of dp 4 to 7, blended with polypropylether diols of dp 30 to 50 adducted with 2 chains of poly (ethylene oxide) of dp 13 to 22.
19. The method as claimed in claim 1 wherein the ratio of multi polyetherheaded surfactant to monovalent metallic base is sufficient for the mole fraction of alkaline or ether moieties on each molecule in the treatment times the number of alkaline or ether moieties on each molecule to be at least about 2.
20. The method as claimed in claim 19 wherein the combination of multipolyetherheaded surfactant and a monovalent metallic base is dissolved in said water washing the crude oil in an amount ranging from about 1000 to about 4000 parts per million parts water, or about 50 to about 200 parts per million parts crude oil.
21. The method as claimed in claim 1 wherein mixtures of said nitrogenous base, said di or multivalent metallic base and said combination are added to said water.
22. The method as claimed in claim 1 in which the amount of base dissolved in said water washing the crude oil is an amount sufficient to raise the pH of the effluent brine resulting from said washing to at least 9.
23. The method as claimed in claim 1 in which said water washing the crude oil is the interstage effluent brine from the second stage of a twostage, serial, counterflow desalter extraction unit.
24. A method for reducing corrosion in the overhead of a crude unit distillation tower comprising adding to the crude oil a nitrogenous base having an aqueous dispersion or alcoholic solution pH of at least 11.
25. The method as claimed in claim 24 wherein said nitrogenous bases are selected from the group consisting of polyetheramines, polyamines, polypyridines, and polyimines having about 1 to 10 carbon atoms per nitrogen or oxygen and a dp of 6 to 60.
26. The method as claimed in claim 25 wherein said polyetheramines, polyamines, and polyimines are dimorpholinodiethyl ether derived from morpholine still bottoms, poly (oxyethylene) diamines of dp 13, and polyethyleneimine of dp 28.
27. The method as claimed in claim 24 wherein said bases are hydrophobic quaternary ammonium bases selected from the group consisting of silicates, carbonates and hydroxides of alkyl or alkylaryl quaternary amines having 12 to 72 carbon atoms per quaternary nitrogen.
28. The method as claimed in claim 27 wherein said alkyl or alkylaryl quaternary amine bases are tributylmethylammonium hydroxide and dimethyltallow (3trimethylammoniumpropylene) ammonium carbonate.
29. The method as claimed in claim 24 wherein both said polyetheramines, polyamines, polypyridines, or polyimines and said hydrophobic quaternary ammonium bases are added at a ratio from 1: 1 to 1: 40, respectively.
30. The method as claimed in claim 24 wherein said nitrogenous bases are added to said crude oil dissolved in an organic, crude oil miscible solvent selected from the group consisting of aromatic or olefinic hydrocarbons, C8 or higher alcohols, and C4 or lower alkyl ethers and esters.
31. The method as claimed in claim 24 wherein said nitrogenous base is added to said crude oil in an amount ranging from about 200 to about 600 parts per million parts crude oil.
32. The method as claimed in claim 24 wherein said nitrogenous base is added to said crude oil and subsequently washed with water.
33. The method as claimed in claim 32 wherein said addition of nitrogenous base is sufficient to raise the pH of the effluent brine from said water washing to at least 9.
34. The method as claimed in claim 32 wherein said nitrogenous base is added to the interstage desalted crude oil of a two stage, serial, counterflow desalter extraction unit, and subsequently washed with water in the second stage.
35. A composition comprising nitrogenous base and a di or multivalent metallic base.
36. The composition as claimed in claim 35 wherein said nitrogenous bases are selected from the group consisting of polyetheramines, polyamines, polyimines, polypyridines, and poly (quaternary ammonium) bases having about 1 to 10 carbon atoms per nitrogen or oxygen.
37. The composition as claimed in claim 35 wherein said nitrogenous bases have degrees of polymerization of about 6 to about 60,000.
38. The composition as claimed in claim 35 wherein said nitrogenous base is miscible with water and its aqueous solution has a pH of at least 11.
39. The composition as claimed in claim 38 wherein said poly (quaternary ammonium) bases are selected from the group consisting of silicates, carbonates and hydroxides of alkyl or alkylaryl quaternary amines.
40. The composition as claimed in claim 39 wherein said poly (quaternary ammonium) bases are selected from the group consisting of poly (diallyldimethylammonium hydroxide), poly (N, N dimethyl, 2hydroxypropyleneammonium hydroxide), and poly [N, N dimethyl, 3 (2hydroxypropyleneamine) propylammonium hydroxide].
41. The composition as claimed in claim 35 wherein said di or multivalent metallic base has an aqueous solution of pH of at least 11.
42. The composition as claimed in claim 41 wherein said di or multivalent metallic base is selected from the group consisting of hydroxides, carbonates and silicates of alkali earth metals, and hydroxides of amphoteric cations Zn+2, Al+3, and Zr+4.
43. The composition as claimed in claim 42 wherein said di or multivalent metallic base is Ca (OH) 2 or AI (OH) 3.
44. The composition as claimed in claim 35 wherein both nitrogenous base and di or multivalent metallic base when added to water washing crude oil prior to distillation will raise the pH of the effluent brine to at least 9.
45. The composition as claimed in claim 35 wherein the ratio of nitrogenous base to di or multivalent metallic base is from about 1: 10 to about 10 : 1.
46. The composition as claimed in claim 35 wherein said nitrogenous base is added to water washing crude oil in an amount ranging from about 200 to about 600 parts per million parts crude oil.
47. A composition comprising a monovalent metallic base and a multipolyetherheaded surfactant.
48. The composition as claimed in claim 47 wherein said monovalent metallic base has an aqueous solution of pH of at least 13.
49. The composition as claimed in claim 47 wherein said monovalent metallic base is selected from the group consisting of hydroxides, carbonates and silicates of lithium, sodium, potassium, rubidium, cesium and francium.
50. The composition as claimed in claim 47 wherein said multi polyetherheaded surfactant is selected from the group consisting of hydrophobes of C3 to C, 8 alkyl, alkylaryl, or alkylether diols or polyols; C3 to C, 8 alkyl or alkylaryl 1° or 2° amines ; and C3 to C18 alkylphenolic resins having a degree of polymerization of 2 or greater; adducted with two or more hydrophilic heads per hydrophobe comprising chains of poly (C2 to C3 alkylene oxide) of dp 3 to 30.
51. The composition as claimed in claim 50 wherein the hydrophobes or hydrophiles of said multipolyetherheaded surfactants are further crosslinked with aldehydes, epoxides or isocyanates.
52. The composition as claimed in claim 50 wherein said multi polyetherheaded surfactants are selected from the group consisting of branched nonylphenolformaldehyde resins of dp 4 to 8 adducted with 4 to 8 chains of poly (ethylene oxide) of dp 4 to 7, blended with polypropylether diols of dp 30 to 50 adducted with 2 chains of poly (ethylene oxide) of dp 13 to 22.
53. The composition as claimed in claim 47 wherein the ratio of multipolyetherheaded surfactant to monovalent metallic base is sufficient for the mole fraction of alkaline or ether moieties on each molecule in the treatment times the number of alkaline or ether moieties on each molecule to be at least about 2.
54. The composition as claimed in claim 47 wherein the combination of multipolyetherheaded surfactant and a monovalent metallic base is added to water washing crude oil in an amount ranging from about 1000 to about 4000 parts per million parts water, or about 50 to about 200 parts per million parts crude oil.
Description:
METHODS AND COMPOSITIONS FOR INHIBITING CORROSION FIELD OF THE INVENTION The present invention relates to methods and compositions for reducing the level of acids in the overhead of a refinery crude oil atmospheric distillation tower.

BACKGROUND OF THE INVENTION Crude petroleum oil charged to a petroleum refinery contains a number of impurities harmful to the efficient operation of the refinery and detrimental to the quality of the final petroleum product.

Oil insoluble mineral salts, such as the chlorides, sulfates and nitrates of sodium, potassium, magnesium, calcium, and iron are present, generally in the range of 3 to 200 pounds per thousand barrels (ptb) of crude (calculated, by convention, as NaCI). The mineral salts of the less alkaline metals, such as magnesium, calcium, and iron, are acidic. Oil insoluble solids, such as the oxides and sulfides of iron, aluminum, and silicon are also present. Oil soluble or colloidal metal soaps of sodium, potassium, magnesium, calcium, aluminum, copper, iron, nickel, and zinc,

and oil soluble organometallic chelants, such as porphyrins of nickel and vanadium, may be found in various concentrations. These metal species contribute to corrosion, heat exchanger fouling, furnace coking, catalyst poisoning, and end product degradation and devaluation.

In addition, oil soluble or colloidal acidic species, such as the hydrochloride salts of sufficiently hydrocarbonaceous basic nitrogen compounds (e. g., amines), organic sulfoxy, phenolic, and carboxylic acids, such as naphthenic acids (CnH2nO2), are present to varying degrees in petroleum crude. These acids also contribute to various corrosion problems.

The primary corrodent of the main fractionator unit atmospheric distillation tower overhead and other regions of the refinery system where temperatures are elevated and water condenses, is hydrochloric acid (HCI). This gas is produced at the high temperatures in the bottom of the distillation tower, primarily via three reactions: 1. Hydrolysis of Mg Cl2 2H20 and CaCI2 2H2O 2. Metathesis of NaCI and organic acids 3. Pyrolysis of amine hydrochloride salts The evolution of HCI is reduced primarily by washing the water soluble precursors, such as MgCI2, CaCI2, NaCI and the smaller, more hydrophilic organic acids and amines, including ammonia, from the raw crude oil in a single or multi-stage desalter. Other halide salts such as those of bromide and fluoride which have been found to also cause corrosion can also be reduced in this manner.

Crude oil desalting is a common crude oil purification method where an emulsion is formed by adding water in the amount of approximately 2.5% to 10% by volume of the crude oil at temperatures from about 150°F to 300°F. The added water is intimately mixed into the crude oil to contact the impurities therein. in order to transfer these impurities into the water phase of the emulsion. The emulsion's intimacy and subsequent resolution is usually effected with the assistance of emulsion making and breaking surfactants, and by the known method of providing an electrical field to polarize the water droplets. As the emulsion is broken, the water phase and petroleum phase are separated and subsequently removed from the desalter vessel. The petroleum phase is next directed to the distillation train where it is fractionated for further processing downstream. The effluent brine, the pH of which is kept between 5 and 9, typically 6 and 8, is sent to the wastewater treatment unit.

Some of the impurities attempted to be removed by this method remain with the petroleum and ultimately result in the corrosion and fouling problems previously described. Various concepts which have attempted to resolve these continuing problems are described hereinbelow.

SUMMARY OF THE INVENTION The present invention relates to methods and compositions for reducing corrosion in the overhead of a crude unit distillation tower by washing the raw crude oil with water to which has been added either a polymeric, hydrophilic, nitrogenous base, a di- or multivalent metallic base, a combination of a multi-polyether-headed surfactant and a monovalent metallic base, or any combination of the three.

In another embodiment of the invention, some polymeric, hydrophilic, non-quaternary ammonium nitrogenous bases and/or a hydrophobic, quaternary ammonium base are added to the crude oil, preferably in non-aqueous solvent. The crude can then be washed with water or fed directly to distillation.

DESCRIPTION OF THE RELATED ART Alkali metal bases, such as NaOH and KOH, and small, hydrophilic amines, such as ethylenediamine, have been added to desalter wash water to adjust the effluent brine to a pH, between 5 and 9, more favorable to emulsification or demulsification, as taught in US Pat.

Nos. 5,114, 566 and 4,992, 210. This process is not entirely satisfactory, as even with the pH adjustment, at pH's below 9 adequate wetting cannot be achieved to penetrate the protective micelles and dissolve the salts, and adequate alkalinity is not achieved to neutralize the water insoluble acids, especially the weaker amine HCI's.

Addition of more of these types of soap forming bases, as taught in WO 97/08270, to achieve a more emulsifying, more neutralizing pH above the optimum for demulsification, which is always below 9, results in excessive emulsion stability. This decreases Cl removal and increases cation contamination by inhibiting demulsification.

The partial, or even full, neutralization of the stronger, carboxylic acids during desalting with larger amounts of less emulsifying base, too weak to achieve effluent brine pH's above 8, does not result in adequate overhead chloride reduction. Examples of these bases include overbased detergents such as calcium sulfonates or phenates, as taught in WO 97/08275; hardness cation dispersants, such as anionic

polyacrylates (including acids), as taught in US Pat. No. 5,660, 717; and hardness cation chelants, such as trisodium nitrilotriacetate, as taught in US Pat. No. 4,992, 164.

US Pat. No. 5,626, 742 teaches the use of caustic solutions (e. g., 10% NaOH) to extract crude oil at extremely high temperatures of 716°F to 842°F and pressures to remove sulfur species.

DETAILED DESCRIPTION OF THE INVENTION The present invention relates to methods and compositions for reducing corrosion in the overhead of a crude unit distillation tower comprising washing the crude oil with water which contains either a polymeric hydrophilic nitrogenous base, a di- or multivalent metallic base, a combination of multi-polyether-headed surfactant and monovalent metallic base, or some combination of the three.

The polymeric hydrophilic nitrogenous bases that are useful in the present invention are those having a degree of polymerization (dp) of about 6 to 6000, with a range of about 60 to 6000 preferred, and a carbon to nitrogen or oxygen ratio (C#/N, O) of less than 10. These compounds should be miscible with water and their aqueous solutions or alcoholic solution or dispersion should have a pH of at least 11 and preferably at least 12.

These compounds include but are not limited to polyetheramines, polyamines, polyimines, polypyridines, and poly (quaternary ammonium) bases having C#/N, O's of 1 to 10, and degrees of polymerization of about 6 to about 60,000.

The poly (quaternary ammonium) bases include the silicates, carbonates, and preferably, hydroxides of alkyl or alkylaryl quaternary amines. The preferred poly (quaternary ammonium) hydroxides (PQAH's) include but are not limited to poly (diallyldimethylammonium hydroxide) "poly (DADMAH)" having the formula: Poly (N, N-dimethyl, 2-hydroxypropyleneammonium hydroxide) "poly (DMHPAH)" having the formula:

Poly [N, N-dimethyl, 3- (2-hydroxypropyleneamine) propylammonium hydroxide]"poly [DM (HPA) PAH]" having the formula: The poly (DADMAH) compound may be formed by reacting equimolar amounts of poly (diallyldimethyl ammonium) chloride, "poly (DADMAC)" with sodium hydroxide.

The poly (DMHPAH) compound may be formed by reacting <BR> <BR> <BR> equimolar amounts of 3-chloromethyl-1, 2-oxirane (epichlorohydrin or EPI) with dimethylamine (DMA), and then sodium hydroxide.

The poly [DM (HPA) PAH] may be formed by reacting equimolar amounts of EPI and dimethylaminopropylamine (DMAPA), and then sodium hydroxide.

Representative examples of polyetheramines, polyamines, or polyimines include dimorpholinodiethyl ether (dp 6) derived from morpholine still bottoms, available from Huntsman Chemical as Amine C- 6; poly (oxyethylene) diamines of dp 13, available from Huntsman Chemical as Jeffamine ED-600; and polyethyleneimine of dp 28, available from BASF as Polymin FG.

When the nitrogenous base is employed by itself, it is preferably added in an amount to achieve an effluent brine pH of at least 9, more preferably at least 10. This is typically in a range of about 4000 to about 12,000 parts active per million parts of wash water.

The di- or multivalent metallic bases include those that have an aqueous solution pH of at least about 11, preferably at least about 12.

These include but are not limited to hydroxides, carbonates, and silicates of the more alkaline alkali earth metals, below Mg+2 and Be+2 on the periodic table, such as Ca+2 and Ba+2, as well as hydroxides of some amphoteric cations such as Zn+2, Al+3, and Zr+4. Preferably, the di- or multivalent bases are Ca (OH) 2 and AI (OH) 3.

These are preferably added in an amount sufficient to achieve an effluent brine pH of at least 9, preferably about 10. Typically, about 2000 to about 12,000 parts active per million parts wash water will achieve this condition, or about 10 to about 600 parts per million parts crude oil The monovalent metallic bases comprise those having an aqueous solution pH of at least about 13, preferably at least about 14. These compounds are selected from the hydroxides, carbonates and silicates of the alkali metals: lithium, sodium, potassium, rubidium, cesium, and francium. The preferred monovalent metallic bases are sodium and potassium hydroxide.

They are preferably added in an amount sufficient to achieve an effluent brine pH of at least 9, preferably about 10. Typically, about 1000 to about 4000 parts active per million parts wash water will achieve this condition.

The multi-polyether-headed surfactants include those with hydrophobes (tails) comprising C3 to C, 8 alkyl, alkylaryl, or alkylether diols to polyols; C3 to C, 8 alkyl or alkylaryl 1 ° or 2° amines; and C3 to C18 alkylphenolic resins having a degree of polymerization greater than or equal to two (dp > 2). These are adducted with two or more hydrophilic heads per hydrophobe comprising chains of poly (C2 to C3 alkylene oxide) of dp 3 to 30. Optionally, the hydrophobes or hydrophiles can be further crosslinked with aldehydes, epoxides or isocyanates.

Preferably, the multi-polyether-headed surfactant comprises branched nonylphenol-formaldehyde resins of dp 4 to 8 adducted with 4 to 8 chains of poly (ethylene oxide) of dp 4 to 7 blended with polypropylether diols of dp 30 to 50 adducted with 2 chains of poly (ethylene oxide) of dp 13 to 22.

They are preferably combined with the monovalent metallic base at a ratio sufficient for the mole fraction of alkaline or ether moieties on each molecule in the treatment times the number of alkaline or ether moieties on each molecule to be at least about 2.

When combined in water with monovalent metallic bases, these multi-polyether-headed surfactants are thought to form alkaline, polymeric, crown-ether-like organometallic complexes such as:

Typically, these multi-polyether-headed alkali metal complexed surfactants would be added from about 100 to about 1000 parts active per million parts of wash water.

Preferably, the ratio of multi-polyether-headed alkali metal complexed surfactant, polymeric nitrogenous base, or di- or multivalent metallic base to free monovalent metallic base is such that mean metal valence/polymer dp (Mean Val./dp) of the treatment, that is, the mole fraction of alkaline or ether moieties on each molecule in the treatment times the number of alkaline or ether moieties on each molecule, is at least 2.

Preferably, the nitrogenous base, the di- or multivalent base, the combination of multi-polyether-headed surfactant and monovalent metallic base, or some combination of the three are added so that the overall treatment raises the pH of the effluent brine of the wash system to at least 9 and preferably at least 10.

When the nitrogenous base and/or the combination of multi- polyether-headed surfactant and monovalent metallic base are employed in combination with the di- or multivalent base, the carryover of catalyst poisoning, monovalent, alkali metal adducts into the atmospheric tower resid can be lowered by increasing the ratio of di- or multivalent base to nitrogenous base and/or combination of multi-polyether-headed surfactant and monovalent metallic base. Preferably the ratio of di- or multivalent base to nitrogenous base and/or combination of multi- polyether-headed surfactant and monovalent metallic base ranges from about 1: 20 to about 20: 1.

In another embodiment of the present invention, some polymeric, hydrophilic, non-quaternary ammonium, nitrogenous bases and/or hydrophobic, quaternary ammonium bases are added to the crude oil, preferably in non-aqueous solvent. The crude can then be washed with water or fed directly to distillation.

The polymeric, hydrophilic, non-quaternary ammonium, nitrogenous bases that are useful in the present invention are those having a degree of polymerization (dp) of about 6 to 60, with a range of about 6 to 30 preferred, and a carbon to nitrogen or oxygen ratio (C#/N, O) of less than 10. These compounds should be miscible with

water and their aqueous solutions should have a pH of at least 11 and preferably at least 12.

These compounds include but are not limited to polyetheramines, polyamines, polyimines, and polypyridines having C#/N, O's of 1 to 10.

Representative examples of polyetheramines, polyamines, or polyimines include dimorpholinodiethyl ether (dp 6) derived from morpholine still bottoms, available from Huntsman Chemical as Amine C-6 ; poly (oxyethylene) diamines of dp 13, available from Huntsman Chemical as Jeffamine ED-600; and polyethyleneimine of dp 28, available from BASF as Polymin FG.

The hydrophobic, quaternary ammonium bases are selected from those with aqueous dispersions or alcoholic solutions of pH of at least about 11, and preferably at least about 12. This includes but is not limited to the hydroxides, carbonates and alkaline silicates of alkyl or alkylaryl quaternary amines of 12 to 72 carbon atoms per quaternary nitrogen. Representative examples include tributylmethylammonium hydroxide (TBMAH) and dimethyltallow (3-trimethylammoniumpropylene) ammonium carbonate [DMT (TMAP) AC031- These nitrogenous bases can be added as neat liquids or diluted in a non-aqueous, alcoholic or hydrocarbon solvent that is miscible in crude oil. These hydrocarbon solvents are selected from the group consisting of aromatic and olefinic hydrocarbons, C8 or higher alcohols, and C4 or lower alkyl ethers and esters. The hydrophobic, quaternary ammonium bases can be used to couple the polymeric, hydrophilic, non- quaternary ammonium, nitrogenous bases into otherwise immiscible organic solvents such as heavy aromatic naphthas.

When these nitrogenous bases are added to the crude, it is preferably in an amount sufficient to achieve an effluent brine pH of at least 9, more preferably at least 10. This is typically in a range of about 200 to about 600 parts active per million parts of crude oil. Mixtures of these classes of bases can be added at a ratio of about 1: 1 to about 40: 1.

The methods of the present invention are preferably employed in a two-stage, counterflow, refinery crude oil desalter. These desalters are typically operated between about 150°F to about 300°F. The lower molecular weight (dp of 6 to 60) nitrogenous bases may be added neat or in an organic solvent to the interstage crude, from where they can wash into the interstage brine and flow back into the first stage to pretreat the incoming raw crude oil. The higher molecular weight (dp of 60 to 60,000) nitrogenous bases may be added as aqueous solutions to the interstage brine so that any residual metals can be rinsed out, and any waste phenols in the fresh wash water can be absorbed into the crude oil, in the second stage of the desalter. This method of addition is also preferred for the di- or multivalent metallic base and the combination of multi- polyether-headed surfactants and monovalent metallic base.

The following examples are intended to demonstrate the efficacy of the present invention and should not be construed at limiting the scope thereof.

An experiment was performed to determine the ability of certain reagents to remove overhead acid producing species in a desalter-like aqueous extraction without forming stable emulsions that would preclude their use in such systems. A raw crude oil with a Neutralization or Total

Acid Number (TAN) of 1.8 mg KOH/g and a Saponification Number of 8.1 mg KOH/g was added to a baffled glass pressure vessel. To this was added 5% tap water, 12.4 ppm active of a multi-polyether-headed surfactant (MPEHS), and various amounts of either of two conventional neutralization agents : sodium hydroxide (NaOH) or ethylenediamine (EDA). The MPEHS comprised a blend of branched nonylphenolic resins of dp 4-8 adducted with 4-8 chains of poly (ethylene oxide) each with a dp of 4-7, and polypropylether diols of dp 30-50 adducted with 2 chains of poly (ethylene oxide) each of dp 13-22.

The vessel was sealed, heated to 250°F, mixed with a four-bladed propeller close in diameter to that of the vessel at 7000 RPM for 1 second to form an emulsion, then placed in 4 kV/in., 60 Hz electric field at 250°F for 64 minutes.

The rate at which the emulsion resolved was measured by recording, at exponentially increasing time intervals, the amount of water which had broken free to the bottom of the vessel and averaging those readings (termed the Mean Water Drop or MWD).

The upper 75% of the settled emulsion was then transferred to a steam/vacuum distillation column. Here it was heated to 600°F for 20 minutes then sparged with steam for 10 minutes. To simulate a refinery vacuum tower, the pressure on the column was then reduced to 5 psi and the temperature increased to 850°F for 30 minutes. About 77% of the crude oil distilled overhead. The TAN of the distillate was then measured. These results are reported in Table I.

Table I Crude Unit Simulation Results Southwest Refinery

Treatment Demulsification Effluent Overhead MPEHS Alkaline Agent Mean (MWD/ TAN/ (TAN/ DoseSol. C#7"DoseVal./MWDMWDo) -1BrineRaw TAN TANo) -1 ppm mN Name pH N, O ppm mN dp % D % pH % D % T2"40.14none0030.028105860 12.4 0.14 Ethylene diamine 12.5 1 6 0.2 12.8 2.76 -2 5 86 0 12.4 0.14 Ethylene diamine 12.5 1 60 22.9 2.47 -12 5 86 0 12.4 0.14 Ethylene diamine 12.5 1 600 20 1.2 0.49 -83 9.5 86 0 12.4 0.14 NaOH. aq 14 0 4 0.1 18.0 2.62 -7 5 86 0 12.4 0.14 NaOH, aq 14 0 40 1 4.5 1.20 -57 5 86 0 12. 40.14NaOH.aq140400101.40.20-979.561-29 12. 4 0. 14 NaOH, aq 14 0 1200 30 1. 1 0. 36 -87 10 22 -75 12.4 0.14 NaOH, aq 14 0 2400 60 1.1 0.77 -73 10.5 39 -55 where mN denotes the millimoles per liter of alkaline or ether groups (=OH or ROR equivalents).

These results demonstrate that overhead distilled acids were not reduced by washing the crude with water containing conventional neutralizers under refinery crude unit conditions until the pH of the effluent brine leaving the desalter had been elevated to the 9.5 - 10. 0 level. However, more stable emulsions began to form by pH 7. By pH 9.5, when the overhead acids began to be reduced, the emulsions were essentially unbreakable by conventional means.

A series of experiments were then performed to discover novel reagents that could remove at the desalter the species responsible for specific overhead acids, particularly the most corrosive acid, HCI, without forming stable emulsions. The extractability and distillability of the chloride species in the crude were characterized as follows:

Extractability was determined by diluting the crude in an equal part of toluene, adding an equal part water, dosing with 100 ppm active of a desalting demulsifier, heating to 300°F in a sealed, baffled mixing vessel, mixing with a four bladed propeller close in diameter to that of the vessel at 16,000 RPM for 5 seconds to form an emulsion, settling in a 4 kV/in., 60 HZ electric field at 300°F for as long as it took for the emulsion to completely resolve, removing the aqueous phase and determining its Cl content with an Ion Chromatograph. The result, expressed as ptb (pounds/thousand barrels) NaCI based on the original crude oil, was termed the"Extractable Cl's" (ExCI).

The (steam) distillability of the Cl's was determined by adding the crude oil to a steam distillation column, heating it to 730°F for 20 minutes, sparging with the steam produced from 3% water for 10 minutes, collecting the overhead condensate (about 75% of the crude oil) through a trap containing 0.1 N NaOH, removing the aqueous solution in the trap, and determining its Cl content with an Ion Chromatograph. The result, expressed as ptb NaCI based on the original crude oil, was termed the "Hydrolyzable Cl's" (HyCI) . The steam distillability of the extracted crude oil was also determined by subjecting the upper 83% of the settled oil phase left over from the extractability test to the same distillation as above, after a room temperature, thin film (rotary), vacuum evaporation to remove the toluene. This was termed the"Non-Extractable, Hydrolyzable <BR> <BR> <BR> Cl's" (NxHyCI) . By subtraction, the "Extractable, Non-HydrolyzableCl's" <BR> <BR> <BR> <BR> <BR> (ExNHCI) can be calculated. "Non-Extractable, Non-HydrolyzableCl's" (NxNHCI), undetected in previous studies and irrelevant to this one, were assumed to be zero for the convenience of expressing a grand total.

A raw crude of Middle Eastern origin was studied and had the following characteristics: Chloride Salts in Crude (ptb as NaCI) HydrolyzableNon-HydrolyzableTotal Extractable~32~7~Q11. 1 Non-Extractable 0. 00.00. 0 Total 3. 2 7. 9 11. 1 An experiment was performed to determine the ability of candidate reagents to remove overhead HCI producing species in a desalter-like aqueous extraction without forming stable emulsions that would preclude their use in such systems. The raw crude oil was added to a baffled glass pressure vessel. To this was added 5% tap water, an MPEHS of the same type as employed in the previous study (results in Table I), and one of various unconventional reagents and controls.

The vessel was sealed, heated to 250°F, mixed as above but at 16,000 RPM for 2 seconds to form an emulsion, then placed in a 4 kV/in.

60 Hz electric field at 250°F for 64 minutes. The rate at which the emulsion resolved was measured as above. The upper 90% of the settled emulsion was transferred to a steam distillation column. Here it was heated to 730°F for 20 minutes then sparged with steam produced from 3% water for 10 minutes. The overhead condensate (about 75% of the crude oil) was accumulated by sparging through a trap containing 0.1 N NaOH. The aqueous solution in the trap was collected, and its Cl content determined with an Ion Chromatograph. The result, expressed as ptb NaCI based on the original crude oil, was termed the"Unextracted

Hydrolyzable Cl's" (UnXHyCI) . The results of this testing are reported in Table II.

Table II Crude Unit Simulation Results Middle Eastern Crude Treatment Demulsification Effluen Overhead t MPEHS Alkaline Agent Mean (MWD/ HCl/ (HCl/ Dose Sol. C#/ Dose Val./ MWD MWDo)-1 Brine Raw Halo) - 1 Cl ppm mN Name pH N, O ppm mN dp % A % pH % A % 0 0 none 0 0 3.83 0 8. 1 28. 9 0 0 0 NaOH, aq. 14 0 40 1 1 2.15 -44 12.0 0. 9 <-97 0 0 NaOH, aq. 14 0 200 5 1 0.93 -76 12.4 <0. 9 <-97 0 0 NaOH, aq. 14 0 800 20 1 1. 13 -71 12.9 <0. 9 <-97 3.03 none 0 0 30.0 4.52 0 11.8 0 3 .03 NaOH, aq. 14 0 40 1 1.9 2.17 -52 <0. 9 <-92 3 .03 NaOH, aq. 14 0 200 5 1.20. 92 -80 <0. 9 <-92 3.03 Ca (OH) 2, aq. 12.7 0 37 1 2.9 4.04 -11 9.2 -22 3.03 Ca (OH) 2, aq. 12.7 0 185 5 2.2 3.85 -15 6.9 -41 3.03 CaO, triglyme 12. 7 0 28 1 2.9 4.25 -6 10.8 -8 3.03 CaO, triglyme 12. 7 0 140 5 2.2 3.90 -14 12.7 8 3.03 Dimorpholino- 12 2.4 18.5 0.5 7.6 4.32 -4 11.3 -5 diethyl ether 3.03 H2NPO (EO) lPN 12.8 2 30 0.7 13.8 4.09 -10 7.1 -41 H2 3.03 Polyethylene- 12.7 2 8.6 0.2 28.3 4.22 -7 9.3 -21 imine 3.03 Choline 13 2.5 100 1 1.9 0.93 -79 6.9 -41 3.03 tributylmethyl- 13 13 58 0.3 4.0 3.59 -21 8.5 -28 amonium hydroxide 3.03 DMT (TMAP) A- 13 13 200 0.9 3.0 4.25 -6 7.0 -41 ~ C03 ~ ~ Table II - Continued Crude Unit simulation Results - Middle Eastern Crude Treatment Demulsification Effluent Overhead MPEHS Acidic Chelants Mean (MWD/ HCl/ (HCl/ Dose Sol. C#/Dose Val./MWD MWDp) - ! Brine Raw CI HCIo) -1 ppm mN Name pH N, O ppm mN dp % A % pH%A% 3.03 (C02H) 2, aq. 1 0.5 45 1 2.9 3. 7F1816.2TT 3 .03 (CO2H)2, aq. 1 0.5 225 5 2. 2 3. 69 -18 142 21 Non-Alkaline N Compound 3. 03 T (HE) TAA + 4 4 7. 5. 09 15. 6 4. 5 0 15. 2 29 B (OE)7.5MODA C 1 : 2 3.03 Dimethylcocoa- 11 7.5 6.03 17.4 3.95 -13 13. 2 12 mine oxide 3.03 N-Methyl 7 2.5 50.51 2.8 3.47 -23 12. 7 8 Pyrrolidinone

# T(HE) TAA is tris (2-hydroxyethyl) tallowammonium acetate (e. g. Akzo Ethoquad T/13-Ac).

B(OE)7.5MODAC is bis(oxyethyl)7.5methyloctadecylammonium chloride (e. g.

Akzo Ethoquad 18/25).

Dimethylcocoamine oxide is available from Akzo as Aromox C-12.

Dimorpholinodiethyl ether is derived from morpholine still bottoms (e. g.

Huntsman Amine C-6).

H2NPO(EO)11PNH2 is available from Huntsman as Jeffamine ED-600.

Polyethyleneimine of dp 28 is available BASF as Polymin FG.

DMT (TMAP) A-C03 is dimethyltallow (3- trimethylammoniumpropylene) ammonium carbonate.

These results demonstrate that alkaline, hydrophilic, polymeric amines (polyamines or polyetheramines) of dp 6-28 and C# per N or O of about 2; alkaline, hydrophobic quaternary mono- or di-ammonium hydroxides or carbonates of C# per quaternary N of about 13; and metallic, divalent bases at least as alkaline as calcium hydroxide or oxide are able to remove into the effluent water some of the overhead HCI producing moieties not removed by wash water alone without

decelerating the demulsification rate by more than about 21% MWD, often by less than 7% MWD. This is small enough to maintain the operation of the desalter, as explained below.

Non-alkaline amines, such as amine oxides and quaternary amine chlorides and acetates, amides, and non-alkaline chelants, such as oxalic acid, also had little effect on the demulsification but actually pushed more overhead HCI producing moieties into the desalted oil. Alkaline, hydrophilic, monomeric amines, such as choline hydroxide, a quaternary monoamine alkoxylate of C# per quaternary N of 5, and metallic, monovalent bases, such as NaOH, also removed into the wash water some to all of the overhead HCI producing moieties not removed by wash water alone but decelerated the demulsification rate by more than 50% MWD, usually by more than 75% MWD. This value is too large to maintain the operation of the desalter, as explained below.

When predicting the effect of a change in the MWD on the operation of the desalter, remember that the water drop readings are taken at exponentially increasing intervals (reflecting the exponential decay of the residual water in the batch of emulsified oil). A 50% drop in the MWD can thus reflect a 32 fold drop in the rate of demulsification.

For example (from Table II) : Treatment Wa er Drop Readi gs in % MPEHS NaOH1 24 8 16 32 64 Mean ppm ppm min. min. min. min. min. min. min (MWD) 3 0 3. 5 4. 0 4. 5 4.7 4. 7 5.0 5.2 4.51 3 : ; 40 06 1 1 1 3 20 27 34 38 2. 17

To appreciate the physical significance of this, remember that the equilibrium dispersion height (emulsion pad or rag layer thickness) in a continuously fed desalter is proportional to the rate at which the emulsion breaks. Thus a 32 fold reduction in the demulsification rate would raise a typical 1'dispersion height in a 12'diameter vessel to an impossible 32', shutting the unit down.

A raw crude oil of mixed South American and Middle Eastern origin containing a different set of Cl species was studied. The Cl salt content was characterized as follows : Chloride Salts in Crude (ptb as NaCI) Hydrolyzable Non-Hydrolyzable Total Extractable 8. 8 10. 5 19. 3 Non-Extractable 6. 4 0. 0 6. 4 Total 15. 2 10. 5 25. 7

Tests simulating the crude unit were run as described above, except that the desalter emulsion was made by mixing at 280°F for 1 second, reflecting the local processing parameters. The results of this testing are reported in Table III.

Table III Crude Unit Simulation Results Mixed South American/Middle Eastern Crude

Treatment Demulsification Overhead MPEHS Alkaline Agent Mean (MWD/HCI/ (HCI/ Dose Sol. C#/Dose Val. /MWD MWDo) -l Raw HCIo) -l HCI ppm mN Name pH N, O ppm mN dp % A% % A% 4. 04 none 0 0 30 3.38 38 0 71 0 12. 13 none 0 0 30 3.88 15 73 3 4. 04 Dimorpholinodi- 12 2 20 0.5 11 3.40 1 61 -15 ethyl ether 4.04 Dimorpholinodi- 12 2 40 1.0 7 3.24 -4 50 -30 ethyl ether 4.04 Ca (OH) 2+KOH, 14 0 4 0.09 11 3.39 0 14 -81 1 : 1 b wt.

These results confirm that alkaline, hydrophilic, polymeric amines alone and alkaline, divalent, metal hydroxides, combined in this case with an equal amount of a monovalent metal hydroxide, KOH, can remove into the wash water some to most of the overhead HCI producing moieties not removed by wash water alone without decelerating the demulsification rate by more than about 4% MWD, if at all. The latter treatment even succeeds in removing a portion of the NxHyCI's.

Further studies were performed on a Gulf of Mexico crude having the following salt characteristics.

Chloride Salts in Crude (ptb as NaCI) Hydrolyzable Non-Hydrolyzable Total Extractable 8. 9 103. 1 112. 0 Non-Extractable 0. 0 0. 0 0. 0 Total 8. 9 103. 1 112. 0 <BR> About half of the filtrable solids in this crude were found to be, after cleaning with toluene, water soluble salts. Tests<BR> simulating the crude unit were run as described above, except that the desalter emulsion was made by mixing at 220"F for<BR> 2 seconds, reflecting the local processing parameters. These results are reported in Table IV.<BR> <P> Table IV<BR> Crude Unit Simulation Results<BR> Gulf of Mexico Crude Treatment Demulsification Effluents Overhead MPEHS Alkaline Agents Mean MWD (MWD/ Brine Salt in Des. Crude HCl/ HCl/ Val./ Dose Name Sol C#/ Dose MWDo)-1 Na@K,ICP NaCl,S@ Raw Cl HClo-1 ppm mN ppm mN % #% pH ppm #% ptb #% % #% none 0 4. 97 5. 3 I 0 8. 3 02. 80 1 .01 Ca(OH)2+KOH 1:l 14 0 1 0.02 11.1 5.05 2 5.7 9 -10 7.6 -8 3.2 16 1 .01 Ca(OH)2+KOH 1:1 14 0 2.5 0.06 6.3 5.06 2 5.8 9 -10 6.6 -20 3 10 I Ul Ca (OH), +KOH I : 1 14 0 5 0. 1I 4. 2 5. 05 2 6. 3 4 -GO C. S -18 3. 3 19 1 .01 Ca(OH)2+HOH 1:1 14 0 10 0.22 3.0 5.11 3 6.5 11 10 12 51 2.5 -10 1 .01 Ca(OH)2+KOH 1:1 14 0 20 0.45 2.3 5.12 3 6.3 10 0 8.3 0 2 -29 1 .01 Ca(OH)2+KOH 1:1 14 0 40 0.90 1.9 5.24 5 6.7 10 0 8.4 1 2.3 -16 1 .01 Ca(OH)2, aq 13 0 2 0.05 6.7 5.06 2 6.5 13 30 12 45 3.1 13 1 .01 CaS5, aq. 12 6 0.06 6.3 5.08 2 6.3 4 -60 6.6 -20 2.9 6 Table IV-Continued <BR> Crude Unit Simulation Results <BR> Gulf of Mexico Crude Treatment Demulsification Effluents Overhead MPEHS Alkaline Agents Mean MWD (MWD/ Brine Salt in Des. Crude HCl/ HCl/ Val./ Dose Name Sol C#/ Dose dp MWDo)-1 Na+K,ICP NaCl,SC Raw Cl HClo)-1 pH N,O ppm mN ppm mN % #% pH ppm #% ptb #% % #% 1 .01 Ca(OH)2+KOH 1:1 14 0 10 0.22 3.0 5.11 3 6.5 11 10 12 51 2.5 -10 1 .01 Ca(OH)2+KOH 1:1 14 0 20 0.45 2.3 5.12 3 6.3 10 0 8.3 0 2 -29 1 .01 Ca(OH)2+KOH 1:1 14 0 40 0.90 1.9 5.24 5 6.7 10 0 8.4 1 2.3 -16 1 .01 Ca(OH)2, aq 13 0 2 0.05 6.7 5.06 2 6.5 13 30 12 45 3.1 13 1 .01 CaS5, aq. 12 0 6 0.06 6.3 5.08 2 6.3 4 -60 6.6 -20 2.9 6 1 .01 Dimorpholinodi- 12 2 10 0.25 7.0 5.03 1 6.8 10 0 13 61 3 10 ethyl ether 1 .01 Dimorpholinodi- 12 2 20 0.49 7.6 4.93 1 7.2 7 -30 5.7 -30 2.1 -23 ethyl ether 1 .01 PolyDMHPA:H3 10 2.5 1.8+ 0.01+ 56 5.19 4 6.5 14 40 10 27 3.4 23 SiO@ + NaH@SiO@ 6.9 0.05 # DMHPA:H3S:O4 is N,N-dimethyl, 2-hydroxypropyleneammonium metasilicate. <BR> <P> These results demonstrate that in this crude, it was much harder to remove the overhead HCI producing moieties no<BR> removed by wash water alone but also much easier to keep from decelerating the demulsification rate.

Conversely, some treatments which did not remove additional HCI producers directly did allow them to be removed indirectly by removing additional alkali metals (Na and K). This allowed caustic to be added to the desalted crude to reduce the level of HCI going overhead without increasing the level of alkali metal catalyst poisons in the atmospheric tower resid. It is believed that these effects are due to this crude being appreciably more acidic than the previous two. The addition of alkaline agents at dosages similar to that which rendered the extraction water (as measured in the effluent) alkaline in other crudes did not render this extraction water alkaline. Thus, the HCI precursor moieties were mostly not converted into water extractable form, but neither, for the most part, were the naphthenic acid emulsifier precursors converted into soaps.

Just enough may have been converted to allow better cleaning, and thus extraction, of crystalline alkali metal salts.

Further studies were performed on a crude oil of Middle Eastern and African origin having the following salt characteristics.

Chloride Salts in Crude (ptb as NaCI) Hydrolyzable Non-Hydrolyzable Total Extractable 4. 2 0. 9 5. 1 Non-Extractable 1. 6 0. 0 1. 6 Total 5. 8 0. 9 6. 7 Testing was performed as described above, except that the desalter emulsion was made by mixing at 260°F at 13,000 RPM, reflecting the local processing parameters. The results of this testing are reported in Table V.

Table V Crude Unit Simulation Results Middle Eastern and African Crude

Treatment Demulsification Effluent Overhead MPEHS ALkaline Agent Mean (MWD/HCI/ (HCl/ Dose Sol C#/ Dose Val./ MWD MWDo)-1 Brine Raw HClo)1 Cl ppm mN Name pH N, O ppm mN dp % A % pH % A % 1. 1. 01 none 0 0 30 4. 03 0 4. 8 28 0 5.4. 06 none 0 0 30 4.87 21 4.3 30 7 1.1. 01 Ca (OH) 2+KOH 14 0 1.4 0.03 9.5 4.18 4 4.8 31 7 1 : 1 1.1. .01 Dimorpholinodi- 12 2 14 0.34 6.8 4.51 12 5.2 21 -25 ethyl ether 0 0 none 0 0 0 0 0 1.81 -55 4.9 30 7 For remaining tests, phenol laden wash water had aged into more acidic state. 1.1 .01 none 0 0 30 3.95 0 3.8 42 0 4.3. 05 none 0 0 30 4.24 7 3.2 45 7 2.2. 02 Dimorpholinodi- 12 2 28 0.68 7.9 4.62 17 5.4 33 -21 ethyl ether 2.2 .02 Dimorpholinodi- 12 2 42 1.03 6.5 4.62 17 5.7 29 -31 ethyl ether 1.1. 01 Dimorpholinodi- 12 2 7 0.17 7.6 4.77 20 4.7 33 -21 ethyl ether 2.2. 02 Dimorpholinodi- 12 2 14 0.34 7.6 4.51 14 4.9 30 -29 ethyl ether 2.2 .02 CaS5, aq 12 0 8.4 0.08 8.5 4.43 -2 4.4 33 -21 4.3. 05 CaS5, aq 12 0 16.8 0.15 8.5 4.19 12 4.5 37 -12 2.2. 02 Ca (OH) 2, aq 13 0 28 0.76 2.4 3.97 1 8.8 35 -17 4.3. 05 Ca (OH) 2, aq 13 0 56 1.51 2.4 4.35 10 9.4 35 -17 2.2. 02 Li2CO3, aq 11 0.3 28 0.76 1.9 3.46 -12 9.1 34 -19 4.3. 05 Li2Co3, aq 11 0.3 56 1.51 1.9 4.01 2 9.3 40 -5 2.2. 02 Na4CS4, aq 10 1 9 0.15 5.0 3.76 -5 3.6 42 0 4. 3. 05 Na4CS4, aq 10 1 17. 9 0. 31, 5. 0, 3.77 -5 3.9 33 -21

Table V-Continued Crude Unit Simulation Results Middle Eastern and African Crude Treatment Demulsification Effluents Overhead MPEHS Alkaline Agent Mean MWD (MWD/ Brine HCl/ HCl/ Dose Name Sol Dose Val./MWD.) Raw C] HCI,,) PH NO dp ppm mN ppm mN % #% pH % #% 1.1 .01 NaOH, aq 14 0 22.4 0.56 1.6 3.47 -12 8 24 -43 1.1 .01 NaOH, aq 14 0 67.2 1.68 1.2 0 -100 >10 <1 <-97 2. 2. 02 NaOH, aq 14 0 11. 20. 28 3.3 4.43 12 6. 5 32 -24 2.2 .02 NaOH, aq 14 0 33.6 0.84 1.8 2.06 -48 8.8 24 -43 4.3 .05 NaOH, aq 14 0 22.2 0.56 3.3 3.59 -9 8.0 23 -45 4.3 .05 NaOH, aq 14 0 67.2 1.68 1.8 0 -100 >10 <1 <-97 8.7 .10 NaOH, aq 14 0 22.2 0.56 5.3 3.8 -4 6.3 23 -45 17.4 .19 NaOH, aq 14 0 67.2 1.68 4.0 0 -100 >10 <1 <-97 17.4 .19 NaOH, aq 14 0 44.8 1.12 5.3 1.33 -66 -9.5 17. 4 l9 NaOH, aq 14 0 561. 4 4.5 1. 04 -70 -10 17.4 .19 NaOH+ 14 8 26.+ 0.67+ 33 0.31 -92 -8 Al(OH)3+ 58.5+ 2.25+ Poly (DADMAH) 10. 4 0. 073 17.4 .19 NaOH+ 14 8 33.7+ 0.84+ 33 0.26 -93 ~9 Al(OH)@+ 72.8+ 2.80+ Poly (DADMAH) 13. 0 0. 091 17.4 .19 NaOH+ 14 8 40.4+ 1.01+ 33 0 -100 ~9.5 Al(OH)3+ 87.4+ 3.36+ Poly (DADMAH) 15. 60.109 17.4 .19 NaOH+ 14 8 34.0+ 0.85+ 27 2.10 -47 9.3 14.6 -65 AI (OH), + 35. l+ 1. 35+ Poly (DADMAH) 6. 3 0. 044 ~ 17.4 .19 NaOH+ 14 8 42.6+ 1.06+ 27 1.44 -64 9.6 3 -93 Al(OH)3+ 43.7+ 1.68+ Poly (DADMAH) 7. 9 0. 055 17.4 .19 NaOH+ 14 8 51.2+ 1.28+ 26 1.77 -55 9.8 <1 <-97 Al(OH)3+ 52.5+ 2.02+ Poly(DADMAH) 9.3 0.065 These tests were continued on a new crude sample, nominally of the same crude slate, having the following Cl salt characteristics. Chloride Salts in Crude (ptb as NaCI)

Hydrolyzable Non-Hydrolyzable Total Extractable 2.5 6.6 9.1 Non-Extractable 2. 2 0. 0 2. 2 Total 4. 7 6. 6 11. 3 This crude differed from the preceding one primarily in its Na content, which was 7 ppm (by ashing/ICP) vs. <1 ppm on the other. The results of this testing are reported in Table VI.

Table VI Crude Unit Simulation Results Middle Eastern and African Crude Treatment Demulsification Effluents Overhead MPEHS Alkaline Agent Mean MWD (MWD/ Brine Crude HCl/ HCl/ Val./ Dose Name Sol. pH C#/ Dose MWD@) Na+K. Raw HClo) N, O dp -1 ICP Cl -1 ppm mN ppm mN % #% pH ppm # % #% 17. 4. 19 Poly [DM (HPA) 14 2.6 1. 3-. 014+ 8. 0 4.00 -7 PAH] + NaOH 55 1.4 17. 4. 19 Poly (DM (HPA) 14 2. 6 2. 6+. 028+ 11 4.19 -2 PAH] + NaOH 55 1.4 17. 4. 19 Poly [DM (HPA) 14 2. 6 5. 3+. 056+ 18 4.89 14 PAH] + NaOH 54 1.3 17.4 .19 Poly [DM(HPA) 14 2.6 10.7+ .113+ 31 5.64 31 PAH] + NaOH 52 1. 3 17. 4. 19 Poly (DADMAH) 14 8 1. 3+. 009+ 12 3.96 -8 + NaOH 56 1.4 17.4 .19 Poly(DADMAH) 14 8 2.7+ .019+ 19 4.31 1 + NaOH 55 1.4 17. 4 19 I'oly (DADMAH) 14 8 5. 4+ 037+ 33 4. 525 + NaOH 55 1. 4 Table VI - Continued Crude Unit Simulation Results Middle Eastern and African Crude

Treatment Demulsification Effluents Overhead MPEHS Alkaline Agent Mean MWD (MWD/Brine Crude HCI/HTI/ Val./ Dose Name Sol. C#/ Dose dp MWD@) Na+K, Raw HCl@) pH N,O -1 ICP Cl -1 ppm mN ppm mN % #% pH ppm # % #% 17.4 .19 Poly(DADMAH)+ 14 8 10.7+ .075+ 61 5.54 6 ~10 7 0 <1 <-97 NaOH 53 1. 3 17.4 .19 NaOH 14 0 56 1.4 4.5 1.41 -67 17. 4 19 Poly (BAEHPAH) + 14 1, 6 3. 3+. 034+ 5. 3 3.16 -26 Na. Adipate + 3. 4+. 023+ NaOH 50 1.2 17.4 .19 Poly(DADMAH)+ 14 8 0.8+ .006+ 13 3.9 -9 ~10 2 -71 <1 <-97 Al(OH)3+ 4.5+ .172+ NaOH 55 1.4 N Base not C'ovalently Bonded to Polymer 17.4 .19 Poly(Choline 14 2 5.4+ .031+ 52 2.01 -53 Acrylate + NaOH 55 1.4 17.4 .19 Poly(Na Tannate: 14 6.3 5.7+ .016+ 7.3 1.86 -57 Choline Acrylate 55 1.4 2.6 : 1) +NaOH 17.4 .19 Poly(NA Tannate: 14 5.6 5.6+ .022+ 9.8 1.33 -69 Choline Acrylate 55 1. 4 1.5:1) +NaOH 2-Stage Desalter Simulation 1.1 0.1 none 0 0 30 4.29 0 5 1 -86 0 0 Fresh washing of 0 0 3.25 0 5 1 -86 28 0 above des. crude 11 .12 Poly(DADMAH)+ 14 8 8.6+ .060+ 54 4.25 0 10 7 0 NaOH 54 1.3 0 0 Fresh washing of 0 0 4.69 44 9.5 7 0 <1 <-97 above des. crude These results confirm the efficacy of alkaline, hydrophilic, polymeric amines and ammonium hydroxides and alkaline, di- or tri-valent, metal hydroxides or sulfides, especially in combination with alkaline monovalent metal hydroxides such as NaOH.

These results demonstrate that the key to removing most, or even, on some crudes, any

significant portion of the overhead HCI precursors is getting the extraction water pH above about 9 and preferably, for near complete removal, above about 10.

It has been discovered that the key to achieving this result without unduly decelerating the demulsification rate is using a treatment with an average metal valence or polymer dp, that is, the mole fraction of alkaline or ether moieties on each molecule in the treatment times the number of alkaline or ether moieties on each molecule, of at least 2, preferably more than 5, most preferably more than 50. These results demonstrate that the carryover of (catalyst poisoning) monovalent, alkali metal adducts into the atmospheric tower resid can be lowered by increasing the ratio of di- or multivalent metallic bases to polymeric, organic and organometallic bases in the combined base treatment. The results show that MPEHS combined with alkali metal hydroxide forms an effective non-emulsifying, HCI precursor removal reagent.

The most efficacious reagents were the high molecular weight PQAH's. These compounds were made by adding an aqueous solution of poly (diallyldimethylammonium) chloride (DADMAC) of dp 1250 or the reaction product of about equal molar amounts of 3-chloromethyl-1,2- oxirane (epichlorohydrin or EPI), and an amine such as N, N-dimethyl-1,3- propanediamine (dimethylamino propylamine or DMAPA) and/or dimethylamine (DMA) of dp 400, or diethylene triamine adipamide (DETA-AdM) of dp 20, into a reaction flask, adding an excess molar amount of sodium hydroxide, and heating the solution to 260°F from 20 minutes to equilibrate it to desalter conditions.

The last step would at least hydrolyze the EPI: DETA-AdM to EPI : DETA and Na2Adipate, and might dequaternize some of the

nitrogens as well. The NaCI produced by the chloride exchange was not removed from the solution since it was at relatively benign levels. It could be removed, however, by reverse osmosis, resin bed, solvent extraction, or the like, to reduce sodium levels. <BR> <BR> <BR> <BR> <BR> <P> The aluminum hydroxide [AI (OH) 31 vas made from aluminum<BR> <BR> <BR> <BR> chlorohydrate [Al2CI (OH) 5] and an excess molar amount of sodium hydroxide (NaOH) using the same procedure as above. The results show that the conjunctive use of AI (OH) 3 with PAQH's, while not contributing much to the demulsification, does reduce the carryover of Na into the atmospheric resid. This carryover is not due to the entrainment of residual NaOH, since it does not wash out in a second, fresh water wash.

Presumably, then, it is carryover of sodium soaps. The aluminum may convert these to the more oil soluble, trivalent, aluminum soaps.

Further studies were conducted on a crude oil of South American and Gulf of Mexico origin having the following salt characteristics: Chloride Salts in Crude (ptb as NaCI) Hydrolyzable Non-Hydrolyzable Total Extractable 17. 9 65. 7 83. 6 Non-Extractable 2. 0 0. 0 2. 0 Total 19. 9 65. 7 85. 6

Testing was performed as described above, except the desalter emulsion was made by mixing at 210°F at 16k rpm for 2 s, reflecting the local processing parameters. Results of this test are reported in Table VII.

Table VII Crude Unit Simulation Results - South American and Gulf of Mexico Crude Treatment Demulsification Effluent Overhead MPEHS Alkaline Agent Mean (MWD/ HCl/ (HCl/ Dose Sol C#/ Dose Val./ MWD MWDo)-1 Brine Raw HClo)-1 Cl ppm mN Name pH N,O ppm mN dp % #% pH % #% 4 .05 none 0 0 30 4.38 0 7 25 0 31. 34 NaOH 14 0 80 2.0 5.3 3.40 -22 9.5 4 -84 186 2. 1 NaOH 14 0 160 4.0 11 2.18 -50 10. 0 1.5 -94 248 2.8 NaOH 14 0 160 4.0 13 1. 90 -57 10. 0 <0. 1 -100 23.26 NaOH + 14 2 80+ 2+ 4.6 1.52 -65 dimorpholinodi- 25 0.6 ethyl ether 0 0 NaOH + 14 2 80+ 2+ 4.6 0 -100 dimorpholinodi- 200 4.9 ethyl ether 0 0 dimorpholinodi- 12 2 333 8.2 6.0 0.89 -80 ethyl ether 0 0 NaOH + 40+ 2+ 4.4 0 -100 dimorpholinodi- 14 2 167 4. 1 ethyl ether

On this crude it was possible to omit the nitrogenous bases entirely, provided sufficient caustic was used to attain the effluent brine pH of 9.5-10. 0 and the amount and degree of polymerization on the multi-polyether headed surfactant was sufficient to raise the average metal valence/polymer dp of the treatment, as defined previously, above about 5.

A field trial was held at a Texas refinery where crude dimorpholinodiethyl ether (Huntsman Amine C-6) was fed to the interstage crude at 22 ppm. Desalter effluent pH increased from 5.5 to 6.3. Dehydration in the second stage improved, from a residual BS&W of 0.2% solids and 0.3% water to 0.2% solids and zero water. The overhead chlorides were reduced from 135 ppm (as Cl) to 115 ppm (-15%) immediately. They had fallen to 105 ppm (-22%) 24 hours later.

The feed was stopped, and the overhead Cl level returned to 130 ppm immediately and 135 ppm 24 hours later. Residual Na in the atmospheric tower resid held constant at 5 ppm.

In a second trial, 4.8-11. 5 ppm active (based on crude oil) poly (DADMAH) of dp 1250 was generated in the interstage brine by overbasing poly (DADMAC) with 40 - 100 ppm active (based on crude charge) NaOH. In addition, 6-11 ppm active of a MPEHS of the type described above was added to the raw crude charged to the unit. When 11.5 ppm poly (DADMAH) and 37 ppm excess NaOH was added, the pH of the effluent brine rose from 5.0 to 9.0 and the overhead Cl's fell from 130 ppm to 120 ppm. When an additional 30 ppm of NaOH was added, the pH of the effluent brine rose to 9.5 and the overhead Cl's fell to 65 ppm. When another 30 ppm of NaOH was added, the pH of the effluent brine rose to 10.0 and the overhead Cl's fell to 10 ppm, a 92% reduction.

The poly (DADMAH) was then lowered to 4.8 ppm and the excess NaOH raised proportionately by 2 ppm in stages without loss of overhead Cl or demulsification control. Below 4.8 ppm poly (DADMAH), the emulsion layer grew, threatening to carry Cl's over and oil under. The treatment was maintained for 10 days to ensure its long-term viability. When the treatment was terminated, the overhead Cl's returned to 130 ppm.

The pH of the interstage brine prior to the addition of chemical treatment did not rise about 9.0. This allowed waste phenols in the fresh wash water to remain in their acid form to be extracted into the interstage crude in the second stage, an environmentally critical function of the desalter. This indicates that significant amounts of free caustic were not being carried over. In fact, the efficiency of the removal of alkali metals (both Na and K were present) in the desalter arguably improved during

the trial: prior to the trial, Na+K levels ranged from 1.0 to 4.0 ppm (1.5 average) in the raw crude and 0.3 to 3.3 ppm (1.4 average) in the resid.

During the trial, they ranged from 1.0 to 9.7 ppm (5.3 average) in the raw crude and 2.5 to 3.0 ppm (2.7 average) in the resid.

The efficiency of the removal of total acids (as measured by TAN) in the desalter fell during the trial: prior to the trial, TAN's ranged from 0.26 to 0.6 (average 0.4) in the raw crude and 0.20 to 0.38 (average 0.26) in the desalted crude; during the trial, they ranged from 0.34 to 0.36 (average 0.35) in the raw crude and 0.30 to 0.31 (average 0.30) in the desalted crude. Nevertheless, overhead corrosion, as indicated by the iron levels in the resid, was almost completely eliminated. Fe in the resid fell from 7-17 ppm (average 12.3 ppm) before the trial to 2.0 ppm (the concentration corrected level in the raw crude) during the trial. The treatment was thus highly selective in removing only that small fraction of acids most responsible for overhead corrosion (primarily HCI but probably including any sulfoxy acids and the stronger organic acids).

The elimination of iron in the resid has a significant value in its own right, since it serves as a downstream foulant of exchangers and filters and as a catalyst of oxidatively induced organic fouling. As such, this treatment is expected to reduce fouling.

While this invention has been described with respect to particular embodiments thereof, it is apparent that numerous other forms and modifications of this invention will be obvious to those skilled in the art.

The appended claims and this invention generally should be construed to cover all such obvious forms and modifications which are within the true spirit and scope of the present invention.