Ocean Modelling 38 (2011) 41–70
Contents lists available at ScienceDirect
Ocean Modelling
journal homepage: www.elsevier.com/locate/ocemod
Accurate Boussinesq oceanic modeling with a practical, ‘‘Stiffened’’ Equation of State ⇑ Alexander F. Shchepetkin , James C. McWilliams
Institute of Geophysics and Planetary Physics, University of California, 405 Hilgard Avenue, Los Angeles, CA 90095-1567, United States article info abstract
Article history: The Equation of State of seawater (EOS) relates in situ density to temperature, salinity and pressure. Most Received 9 August 2008 of the effort in the EOS-related literature is to ensure an accurate fit of density measurements under the Received in revised form 25 December 2010 conditions of different temperature, salinity, and pressure. In situ density is not of interest by itself in oce- Accepted 31 January 2011 anic models, but rather plays the role of an intermediate variable linking temperature and salinity fields Available online 13 February 2011 with the pressure-gradient force in the momentum equations, as well as providing various stability func- tions needed for parameterization of mixing processes. This shifts the role of EOS away from representa- Keywords: tion of in situ density toward accurate translation of temperature and salinity gradients into adiabatic Seawater Equation of State derivatives of density. Seawater compressibility Barotropic–baroclinic mode splitting In this study we propose and assess the accuracy of a simplified, computationally-efficient algorithm Boussinesq and non-Boussinesq modeling for EOS suitable for a free-surface, Boussinesq-approximation model. This EOS is optimized to address Numerical stability all the needs of the model: notably, computation of pressure gradient – it is compatible with the monot- onized interpolation of density needed for the pressure gradient scheme in sigma-coordinates of Shche- petkin and McWilliams (2003), while more accurately representing the pressure dependency of the thermal expansion and saline contraction coefficients as well as the stability of stratification; it facilitates mixing parameterizations for both vertical and lateral (along neutral surfaces) mixing; and it leads to a simpler, more robust, numerically stable barotropic–baroclinic mode splitting without the need of exces- sive temporal filtering of fast mode. In doing so we also explore the implications of EOS compressibility for mode splitting in non-Boussinesq free-surface models with the intent to design a comparatively accu- rate algorithm applicable there. Ó 2011 Elsevier Ltd. All rights reserved.
1. Role of EOS in oceanic modeling the local column thickness), both of which participate in baro- tropic–baroclinic mode-splitting algorithm of Shchepetkin and The Equation of State (EOS) relates the in situ density of seawa- McWilliams (2005,); ter with its temperature (or potential temperature), salinity, and Stability of stratification as well as external thermodynamic pressure (H, S, P, respectively), forcing (surface buoyancy flux) needed for mixing and plane- tary boundary layer parameterizations; q ¼ q ðH; S; PÞ: ð1:1Þ EOS Slope of neutral surfaces needed for horizontal (along-isopyc- In a Boussinesq-approximation oceanic modeling code, in situ den- nal) mixing (Griffies et al., 1998). sity does not appear by itself (since it is replaced by a constant ref- erence density). Instead EOS and EOS-related quantities are needed The purpose of this study is to review the present oceanic mod- for the following computations: eling practices for using EOS in these roles, focusing on the effects associated with seawater compressibility, and it assesses the con- Pressure-gradient force (PGF); sequences of the Boussinesq approximation in the context of a Vertically averaged density q and the effective dynamic density realistic EOS. The present study extends the analysis of conse-
for the barotropic mode q⁄ (vertically integrated pressure nor- quences of Boussinesq approximation from Shchepetkin and malized by gD2/2 where g is acceleration of gravity and D is McWilliams (2008). This paper is organized as follows: Section 2 makes a overview of the Boussinesq approximation, analyzes the errors associated with using realistic seawater EOS, and introduces stiffening of EOS as a method to reduce these errors. Section 3 examines the ⇑ Corresponding author. E-mail addresses: [email protected] (A.F. Shchepetkin), [email protected] consequences of finite compressibility of seawater for the four (J.C. McWilliams). algorithmic roles outlined above, to establish requirements for
1463-5003/$ - see front matter Ó 2011 Elsevier Ltd. All rights reserved. doi:10.1016/j.ocemod.2011.01.010 42 A.F. Shchepetkin, J.C. McWilliams / Ocean Modelling 38 (2011) 41–70 the most suitable functional form of EOS. Special attention is given Boussinesq approximation which can be subdivided into two to barotropic–baroclinic mode-splitting since this subject is rarely categories: discussed in the literature. Section 4 introduces a practical form of EOS and makes estimates of its accuracy. Section 5 explores the (i) errors relative to not using the Boussinesq approximation consequences of eliminating the Boussinesq approximation with including not only quantitative, but conceptual as well, i.e., the emphasis on accuracy of barotropic–baroclinic mode-splitting excluded physical processes and/or missing/altered conser- algorithm in the context of finite compressibility of seawater. Sec- vation laws; and tion 6 is the conclusion. (ii) conflicts and internal inconsistencies caused the use of a realistic seawater EOS with full compressibility effects within a Boussinesq oceanic model. 2. Boussinesq approximation and EOS stiffening Errors of type (i) are widely discussed in the literature The Boussinesq approximation (e.g., Spiegel and Veronis, 1960; (McDougall and Garrett, 1992; Dukowicz, 1997; Lu, 2001; Zeytounian, 2003, among others) replaces in situ density q with a Greatbatch et al., 2001; Huang and Jin, 2002; McDougall et al., constant reference value q0 in all places where it plays the role 2002; Greatbatch and McDougall, 2003; Losch et al., 2004; Griffies, of a measure of inertia, i.e., everywhere except where multiplied 2004; Young, 2010; Tailleux, 2009; Tailleux, 2010). by the acceleration of gravity g. The velocity field becomes non- An example of an internal inconsistency of type (ii) can be illus- divergent (incompressible) because the continuity equation trated by considering a barotropic compressible fluid layer whose changes its meaning from mass to volume conservation. This re- density is a function of P alone (i.e., because H, S are spatially uni- verses the role of EOS from computing specific volume in a form) and in hydrostatic balance, mass-conserving model to density q in a volume-conserving one. q ¼ q ðPÞ and @ P ¼ gq: ð2:1Þ The conservation laws (momentum, energy, tracer content, etc.) EOS z are changed from mass-to volume-integrated; the thermodynam- Integration of (2.1) yields mutually consistent vertical profiles for P ics is reduced to Lagrangian conservation (advection and diffusion) and q, of H and S, while heating/cooling of fluid by adiabatic compres- ( P ¼Pðf zÞ; P0ðf zÞ¼gRðf zÞ; sion/expansion is neglected (except in the definition of potential such that temperature itself) and mechanical energy dissipated by viscosity q ¼Rðf zÞ qEOSðPðf zÞÞ; Pð0Þ¼Pjz¼f ¼ 0; is considered ‘‘lost’’ rather than converted into heat (Mihaljan, ð2:2Þ 1962). If EOS is a linear function of H and S, mass is conserved where and are universal functions of a single argument, i.e., (along with volume) as a consequence of, and to the same degree P R their structure depends only one the properties of (P)in(2.1) as, the conservation of H and S; external heating/cooling produces qEOS but not directly on the local dynamical conditions, such as pertur- a decrease/increase in mass, while keeping volume constant; and bation of the free-surface f. 0 denotes derivative of with respect nonlinear EOS causes a Boussinesq model to conserve only volume, P P to its argument (note that the sign is correct as stated above: both p but no longer mass, even in the absence of external forcing. and increase with increase of f z, meaning increase downward). The Boussinesq approximation brings simplifications by elimi- q The condition 0 0 is the free-surface pressure boundary condi- nating mass-weighting in a finite-volume code and limiting the Pð Þ¼ tion (for simplicity the atmospheric pressure is presumed to be con- role of EOS to the four purposes stated in Section 1. Except in the stant and subtracted out). part of pressure-gradient term associated with perturbation of free A gradient of f induces a pressure gradient, surface in a free-surface model, q itself can be replaced with its 0 0 perturbation, q = q q0, because it appears only inside spatial rxP ¼ Pðf zÞ rxf; ð2:3Þ derivatives (ultimately linked to the gradients of H and S) and only 0 and creates acceleration in the context of buoyancy commonly defined as gq /q0, i.e., nor- 0 malized by q0, whereas the equations can always rewritten in such 1 P ðf zÞ rxP ¼ rxf grxf; ð2:4Þ a way that q0 itself appears only in the context of this normaliza- q Rðf zÞ tion and nowhere else. The Boussinesq approximation facilitates the barotropic–baroclinic mode-splitting in a pair of vertically- independently of vertical coordinate z regardless of the specific integrated free-surface and momentum equations, effectively functional form qEOS(P)in(2.1) and of the magnitude of the density uncoupling EOS from the barotropic mode. The incompressibility variation within the column. Eq. (2.4) is derived without the use of assumption eliminates acoustic waves regardless of whether the Boussinesq approximation. Its Boussinesq analog is hydrostatic approximation is made. 1 Rðf zÞ r P ¼ g r f: ð2:5Þ However, physically important effects associated with seawater q x q x – cabbeling and thermobaricity – fundamentally require pressure- 0 0 dependency in EOS and lead to the common practice of using the The presence of the multiplier R=q0, which increases with depth, is full non-approximated EOS, thus retaining its full compressibility clearly an artifact of the Boussinesq approximation. It results in an even in an otherwise dynamically incompressible Boussinesq mod- unphysical vertical shear in the acceleration, hence a spurious el. This obscures the concept of buoyancy because it can no longer downward intensification of a geostrophically-balanced baroclinic be equated to the density (or potential density) anomaly, and can current generated by a rxf. Both these spurious effects are caused no longer be viewed as a Lagrangianly-conserved properly of the by the standard algorithmic chain in a Boussinesq model, fluid, even thought H and S are. A related, frequently used approx- imation is the replacement of the full in situ pressure P in EOS (1.1) 1 H; S ! q ¼ qEOSðH; S; P ¼ q0gðf zÞÞ ! rxP: ð2:6Þ with its bulk hydrostatic reference value, P ? q0gz, when com- q0 puting q from the model prognostic variables, H and S, hence neglecting pressure variation due to baroclinic effects and essen- To estimate the significance of this error, consider for simplicity a tially decoupling EOS pressure from the dynamic. linear analog of (2.1), Under most offshore oceanic conditions varies by ± 3% rel- q 2 ative to its reference value; this leads to errors associated with the qEOSðPÞ¼q1 þ P=c ; ð2:7Þ A.F. Shchepetkin, J.C. McWilliams / Ocean Modelling 38 (2011) 41–70 43
where q1 is the density at P = 0 and c is speed of sound. Then the For the situation where the fluid is stratified (i.e., (2.1) is no counterpart of (2.2) becomes longer true) but the structure of temperature and salinity fields 2 2 q g are such that the resultant isosurfaces of in situ density are parallel Pðf zÞ¼q c2½egðf zÞ=c 1 q gðf zÞþ 1 ðf zÞ2 þ ; 1 1 2c2 to the free surface, one can verify that (2.4) still holds and the 2 acceleration generated by a perturbation in f does not depend on 2 q g q g Rðf zÞ¼q egðf zÞ=c q þ 1 ðf zÞþ 1 ðf zÞ2 þ ; 1 1 c2 2c4 the vertical coordinate as long as the Boussinesq approximation is not used. Once again, the Boussinesq approximation destroys ð2:8Þ the true vertical uniformity. The baroclinic PGF – i.e., associated hence with a physically correct vertical shear – appears only when den- R q q q g sity isosurfaces become non-parallel to the free surface. 1 þ 1 0 þ 1 ðf zÞþ ð2:9Þ 2 Dukowicz (2001) made a proposal to reduce Boussinesq errors q0 q0 q0 c 2 by realizing that the largest q variation is caused by the changes Here = g(f z)/c plays the role of a small parameter justifying the 1 in P rather than in H and S. EOS (1.1) may be rewritten as replacement of q with q0. Assuming c 1500 m/s and a total depth of 5500 m, we estimate 0.025, which is a typical level for Bous- q ¼ rðPÞ qEOSðH; S; PÞ; ð2:12Þ sinesq-approximation errors. This also indicates a strong domi- where the multiplier r(P) is chosen as a universal function that does nance of the leading-order linear term in Taylor-series expansions not depend on local H and S. q ðH; S; PÞ is known as thermobaric over the remaining terms. A comparison of (2.5) with (2.4) suggests EOS or ‘‘stiffened’’ density. It only weakly depends on P, thus has much that the best choice of Boussinesq reference density is R smaller variation than the original in situ density. Using (2.12) one q ¼ q ¼ 1 f Rðf zÞdz, D = h + f to have the vertical integral of 0 D h can renormalize pressure, (2.5) match its non-Boussinesq counterpart (2.4). In the case of EOS (2.7) this leads to dP 1 ¼ ; P jP¼0 ¼ 0; ð2:13Þ 2 dP rðPÞ c 2 1 gD q ¼ q egD=c 1 q 1 þ þ ; ð2:10Þ 1 gD 1 2 c2 hence the hydrostatic balance and PGF become which makes (2.9) into ðR=q Þ¼1 þ gðf z D=2Þ=c2, effectively @P 1 1 0 ¼ q g and r P ¼ r P : ð2:14Þ minimizing its deviation from unity. However, this cannot be done @z q x q x universally, since q changes horizontally mainly due to topography, These retain the same functional form as in the original non-Bous- nor does it eliminate the spurious vertical shear. sinesq equations. Because r(P) is a monotone function, (2.13) is The presence of shear in (2.5) depends on whether or not the invertible, P = P(P ), making it possible to rewrite EOS as EOS pressure is computed as in situ pressure, which takes place in (2.2), or is approximated by its bulk hydrostatic value propor- q ¼ qEOSðÞH; S; PðP Þ =rðPðP ÞÞ ¼ qEOSðÞH; S; P : ð2:15Þ tional to depth, and furthermore, whether the depth is calculated The entire set of equations is then expressed in terms of dotted vari- from the dynamic or rest-state free surface, Pbulk = q0g(f z)or ables, q and P . q0gz, 8 8 A Boussinesq-like approximation is subsequently applied to the < g f z =c2; < gz=c2; renormalized system (2.13)–(2.15) by replacing wherever qEOS ¼ q1 þ q0 ð Þ qEOS ¼ q1 q0 q ! q0 vs: : 1 q1 gðf zÞ : 1 q1 gf the replacement q ? q0 occurs in the standard Boussinesq approx- rxP ¼ g þ 2 rxf; rxP ¼ g 2 rxf: q0 q0 c q0 q0 c imation (e.g., ð1=q ÞrxP ! ð1=q0ÞrxP ). In addition, one can ½vertical shear is present ½no shear replace EOS pressure P in (2.15) with its bulk value, q0gz. qEOS ð2:11Þ is much less sensitive to this replacement than qEOS in (1.1), whether the integration of EOS pressure starts from a perturbed This sensitivity was noted by Dewar et al. (1998) (their Case A), who or unperturbed free surface (cf., (2.11)) since @qEOS=@P jH;S estimate that the magnitude of the difference in near-bottom geo- @qEOS=@PjH;S and P tends to be closer to a linear function of depth strophic currents may reach 5 cm/s for Gulf Stream conditions, than P. The multiplier r(P) does not appear in the momentum equa- resulting in an overall difference of about 3 out of 50 Sv for verti- tions written in advective form, but it does appears in the non- cally integrated transport. They recommend using full dynamic Boussinesq continuity equation along with q . This leads to the in situ pressure in EOS, which requires simultaneous vertical inte- two options, either. gration to compute PEOS and q. Paradoxically, they do so using Bous- sinesq approximation, interpreting the difference as the recovered (i) to replace r(P) ? 1 along with q ! q0 resulting in a vol- physical effect, rather than a spurious one to be eliminated. Com- ume-conserving system of Boussinesq-type. In this case parison of (2.2)–(2.4) with (2.11) suggests that using the rest-state EOS stiffening can be viewed just as a measure to remove (f = 0) bulk pressure in EOS is more suitable for a Boussinesq model, internal contradiction of using a compressible EOS in a while a non-Boussinesq model is better using in situ pressure. (One model that already makes the incompressibility assumption; can also verify that the opposite combination – bulk rest-state EOS or pressure in a non-Boussinesq model – yields a reversal of the spu- (ii) keep r(P), while simplifying it by rðPÞ!rPðP ¼ q0gzÞ ¼ rious shear: it tends to make otherwise barotropic flows decrease rðzÞ, but still replacing q ! q0 in continuity and, in fact, with depth.) Another aspect pointed out by Dewar et al. (1998) is everywhere as it would be in the Boussinesq case. that in most oceanic situations the baroclinicity naturally tends to cancel the free-surface PGF resulting in weak flows in the abyss. The latter leads to a model intermediate in its physical approx- Therefore, it is advantageous to retain baroclinic effects in EOS pres- imations between Boussinesq and non-Boussinesq, while main- sure rather than use PEOS = q0g(f z), (e.g., left side of (2.11)) that taining the simplicity of a Boussinesq code. One should note that does not provide such compensation. Using q0g(f z) is a common practice in terrain-following-coordinate free-surface models, POM 1 We have changed the original notation of Dukowicz (2001) by replacing his q⁄, and ROMS, motivated primarily by the convenience: these models ⁄ P ? q , P to avoid notational conflict with vertically averaged densities q and q⁄ that do not store the unperturbed geopotential coordinate in a run-time appear in (3.19). For the same reason we also changed notation relatively to SM2005, ⁄ array. so q⁄ appearing in this article has the same meaning as q in SM2005. 44 A.F. Shchepetkin, J.C. McWilliams / Ocean Modelling 38 (2011) 41–70 most oceanic models are discretized using a finite-volume ap- and McWilliams (2003,); re-evaluate the accuracy of the mode- proach with a stretched vertical grid, so they already have an array splitting algorithm of SM2005 focusing on compressibility effects; to compute and store control-volume heights. A non-Boussinesq and inspect the EOS needs for subgrid-scale mixing model uses density weighting over control volumes, resulting in parameterizations. an additional feedback loop arising from the dependency of density on model dynamics by EOS pressure which adds extra complexity. 3.1. Pressure-gradient force in sigma-coordinates On the other hand, retaining r(P) approximated as r(z) only slightly modifies the procedure of calculating control volumes, while pre- Following SM2003, the baroclinic PGF in r coordinates can be serving the overall logical flow of a Boussinesq code. This means expressed entirely in terms of adiabatic derivatives of in situ den- that the model is still volume-conserving, but now control volumes sity: a density-Jacobian scheme is written as are rescaled to include r(z)-weighting that can be viewed just as a J ðq; zÞ¼ a J ðH; zÞþb J ðS; zÞ; ð3:1Þ geometrical property of the grid since it does not depend on model x;s x;s x;s dynamics. In effect, this option approximates in situ density as which is then integrated vertically to compute PGF. J x;s denotes the q0 rðzÞ instead of the constant q0 in the standard Boussinesq Jacobian of its two arguments, approximation. @ @z @ @z To illustrate the effect of modifying the Boussinesq approxima- q q J x;sðq; zÞ¼ ; ð3:2Þ tion in this way, we reconsider (2.7)–(2.11). In this case it is natural @x s @s @s @x s 2 % 0; z ! f to chose q0 ¼ q1 and r(P)=1+P/(q1c ). Then the stiffened EOS where s ¼ sðx; zÞ (2.15) becomes q ¼ qEOSðP Þ¼q1, which is just a constant value, &