High performance computing simulation of planetary atmospheres
Abstract
The current software for planetary atmosphere simulations, at the moment of writing this thesis, is limited to a Shallow-Water mono-layer model. This document presents the multi-layer model in isopycnical coordinates with topography implementation, as well as its numerical integration in the new SA3 code environment developed by the research group TUAREG. A series of benchmark cases is provided for verification purposes of the model. Then, a set of study cases on storms in Saturn and the Great Red Spot in Jupiter are described with the intention understanding planetary atmospheres phenomenology. Additionally, given the capabilities of the software, a research study of orographic waves generated by the Amsterdam Island is displayed.
Full text
High performance compung simulaon of planetary atmospheres Thesis by Leonardo Andrés Moya Acosta Directed by Manel Soria Enrique García In Partial Fulfillment of the Requirements for the Degree of Master of Science in Aerospace Engineering Escola Superior d’Enginyeries Industrial, Aeroespacial i Audiovisual de Terrassa Universitat Politècnica de Catalunya Terrassa, Spain 2020 (Defended July, 2020)
ii ©2020 Leonardo Andrés Moya Acosta All Rights Reserved
iii To my mother, sister and brother
iv Acknowledgments I want to express my special thanks of gratitude to professors Manel Soria and Enrique García, who gave me the golden opportunity to conduct this wonderful project and gave me their invaluable support and guiding through this journey. I also want to extend my appreciation to Arnau Miró, David de la Torre and Marc Andrés, who helped me on the software development and technical activities in the cluster.
v Abstract The current software for planetary atmosphere simulations, at the moment of writing this thesis, is limited to a Shallow-Water mono-layer model. This document presents the multi-layer model in isopycnical coordinates with topography implementation, as well as its numerical integration in the new SA3 code environment developed by the research group TUAREG. A series of benchmark cases is provided for verification purposes of the model. Then, a set of study cases on storms in Saturn and the Great Red Spot in Jupiter are described with the intention understanding planetary atmospheres phenomenology. Additionally, given the capabilities of the software, a research study of orographic waves generated by the Amsterdam Island is displayed.
vi Contents Acknowledgments iv Abstract v 1 Introduction 1 1.1 Aim .......................................... 2 1.2 Scope ......................................... 2 1.3 Requirements ..................................... 2 1.4 Justification...................................... 3 2 Introduction to planetary atmospheres 4 3 Shallow water model 5 3.1 Hypothesis ...................................... 5 3.2 Rossby number and radius of deformation . . . . . . . . . . . . . . . . . . . . . . 7 3.3 Shallowwaterequations ............................... 8 3.4 Geostrophic equilibrium . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.5 Potentialvorticity................................... 12 3.6 Coordinatesystems.................................. 13 3.7 Multi-layer ...................................... 15 4 Numerical implementation 19 4.1 Discretization..................................... 20 4.2 Advection and pressure terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.3 Temporalintegration ................................. 23 4.4 Coriolis implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4.5 Boundaryconditions ................................. 25 4.6 Validation....................................... 26 4.7 Solver......................................... 30
vii 5 Atmosphere characterization 32 5.1 Vorticesandstorms.................................. 32 5.2 Zonalwinds...................................... 34 5.3 Stratification ..................................... 35 6 Results 38 6.1 Benchmarkcases ................................... 38 6.2 Comparison with previous codes . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 6.3 Experiments with multi-layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6.4 Orographic gravity waves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 7 Summary and Future Work 71 7.1 Summary ....................................... 71 7.2 FutureWork...................................... 72 8 Budget and environment impact 74 Bibliography 75
viii List of Figures 3.1 Shallow-Water mono-layer scheme. . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.2 Hurricane Lorenzo scheme with pressure gradient direction and isobars. . . . . . . 11 3.5 Shallow-Water multi-layer scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.1 Configuration of Arakawa C-grid on one layer. . . . . . . . . . . . . . . . . . . . 20 4.2 Configuration of channel boundary conditions on Arakawa C-grid. . . . . . . . . . 26 4.3 MMS results for P1, P2 and pressure gradient terms. . . . . . . . . . . . . . . . . 28 4.4 MMS results for Adams-Bashforth time integration. . . . . . . . . . . . . . . . . . 29 4.5 MMS results for Coriolis implementation. . . . . . . . . . . . . . . . . . . . . . . 29 5.1 Mean profiles of the zonal winds on Jupiter, Saturn and Venus. . . . . . . . . . . . 34 5.2 Pressure versus temperature profiles of Jupiter, Saturn and Venus atmospheres. . . 36 5.3 Density profiles along altitude of Jupiter, Saturn and Venus atmospheres. . . . . . . 37 5.4 Scheme of density evaluation on each layer. . . . . . . . . . . . . . . . . . . . . . 37 6.1 Surface elevation maps for the drop case simulation. . . . . . . . . . . . . . . . . 39 6.2 Surface elevation maps for the multi-drop in confined domain case simulation. . . 40 6.3 Scheme of 2-layer model in 1 dimension. . . . . . . . . . . . . . . . . . . . . . . 41 6.4 Schematic representation of barotropic and baroclinic modes. . . . . . . . . . . . . 42 6.5 Stimulation of barotropic mode in a 2-layer model in 1 dimension. . . . . . . . . . 44 6.6 Stimulation of baroclinic mode in a 2-layer model in 1 dimension. . . . . . . . . . 44 6.7 Stimulation of barotropic and baroclinic modes simultaneously in a 2-layer model in1dimension. .................................... 45 6.8 Comparison of potential vorticity maps between SW2 and SW3 on Saturn storms case........................................... 47 6.9 Comparison of surface elevation and velocity results between SW2 and SW3 on Saturnstormscase. .................................. 48 6.10 Potential vorticity maps for GRS in 1 layer when initial perturbation is introduced. 50
ix 6.11 Potential vorticity map and surface elevation and meridional velocity for GRS in 1 layeratsimulationday30. .............................. 50 6.12 Potential vorticity maps for GRS in 2 layers when initial perturbation is introduced foradensityratioof2%. ............................... 51 6.13 Surface elevation and meridional velocity for GRS in 2 layers with density ratio of 2%atsimulationday30. ............................... 52 6.14 Potential vorticity maps for GRS in 2 layers when initial perturbation is introduced foradensityratioof5%. ............................... 52 6.15 Surface elevation and meridional velocity for GRS in 2 layers with density ratio of 5%atsimulationday30. ............................... 53 6.16 Potential vorticity maps for GRS in 2 layers when initial perturbation is introduced foradensityratioof10%. .............................. 54 6.17 Surface elevation and meridional velocity for GRS in 2 layers with density ratio of 10%atsimulationday30. .............................. 54 6.18 Potential vorticity maps for GRS in 1 layer when smooth perturbation is introduced for7days........................................ 56 6.19 Potential vorticity map, surface elevation and meridional and zonal velocity for GRS in 1 layer, generated from smooth injection of fluid, at simulation day 30. . . 56 6.20 Potential vorticity maps for GRS in 3 layers when smooth perturbation is introduced for7days........................................ 57 6.21 Surface elevation and meridional and zonal velocity for GRS in 3 layers, generated from smooth injection of fluid, with density ratio of 10% at simulation day 30. . . . 58 6.22 Images of Jupiter’s Great Red Spot made using data collected by the Hubble Space Telescope and the Gemini Observatory on 1st April 2018. . . . . . . . . . . . . . . 58 6.23 Surface elevation and meridional and zonal velocity for GRS in 3 layers, generated from smooth injection of fluid, with density ratio of 5%, 10% and 25% at simulation day30.......................................... 59 6.24 Potential vorticity maps of first layer for GRS in 3, 4, 5 and 6 layers when smooth injection of fluid with elliptical shape is introduced. . . . . . . . . . . . . . . . . . 61 6.25 Surface elevation and meridional and zonal velocity for GRS in 3, 4, 5 and 6 layers, generated from smooth injection of fluid with elliptical shape, with density ratio of 25%atsimulationday30. .............................. 62 6.26 Potential vorticity map on GRS case with 3 layers using pressure versus temperature atmospheric profile at simulation day 50. . . . . . . . . . . . . . . . . . . . . 63 6.27 Surface elevation and meridional and zonal velocity for GRS in 3 layers at simulation day 50 with experimental data. . . . . . . . . . . . . . . . . . . . . . . . . . . 64 6.28 One dimensional layer flow over topography for different Froude numbers. Analytical and numerical solutions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
5 CHAPTER 3 Shallow water model The Shallow-Water model is essentially a subset of the Navier-Stokes equations with a series of simplifications for our purpose, planetary atmosphere simulations. The Navier–Stokes equations are useful because they describe the physics of many phenomena of scientific and engineering interest. They may be used to model the weather, ocean currents, water flow in a pipe or air flow around a wing. The Navier–Stokes equations, in their full and simplified forms, help with the design of aircraft and cars, the study of blood flow, the design of power stations, the analysis of pollution, among other applications. ∂ρ ∂t +∇·(ρ v) = 0 ρ∂ v ∂t +ρ( v·∇) v=−∇p+∇· τ+ρ g ∂(ρe) ∂t +∇·(ρ ve) = −∇· ˙q−p∇· v+ τ:∇ v (3.1) The Navier-Stokes equations consist of the time-dependent equations: continuity or conservation of mass, conservation of momentum and conservation of energy. There are four independent variables in the problem, the x,y, and zspatial coordinates of some domain, and the time t. The principal dependant variables expressed above are the density ρ, velocity field v, pressure p, stress tensor τ, gravity g, heat flux ˙q(including convection, conduction and radiation) and total energy e=ek+u(including kinetic energy and internal energy). 3.1 Hypothesis We start by considering a sheet of fluid, similar to an atmosphere or a thin portion of ocean, with the peculiarity that the thickness or vertical scale of motion Dis much smaller than the characteristic horizontal length scale of motion L. Then, the fundamental parametric condition that characterize
6 the Shallow-Water model is: δ=D L<< 1(3.2) FIGURE 3.1 Shallow-Water mono-layer scheme. Important dynamical features of the atmospheres, which are relevant at large scales, such as the rotation of the planet should also be included. In that sense, the reference frame should be non-inertial, thus additional terms emerge from kinematics relations. The absolute velocity then becomes into a slightly more complex expression comprising the relative acceleration, Coriolis force and centripetal force. ∂ v ∂t =∂ vr ∂t + 2 Ω× vr+ Ω×( Ω× r)(3.3) The relative velocity is in fact the variable to be computed and analysed, thus from now on it is referred in the text without the subscript, i.e. vr→ v. On the other side, the Coriolis force can be rewritten for the simple sheet of fluid in Figure 3.1 as follows: 2 Ω× v=f(−vˆı+uˆȷ)(3.4) where fis the so-called Coriolis parameter. Further explanation and analysis is conducted in Section 3.4. For the sake of simplicity and convenience, the centripetal force may be incorporated inside the gravitational term, as it only varies with the rotation frequency Ωand the distance from the center of the planet r, both being fixed throughout the evolution of the system. gT= g− Ω×( Ω× r)(3.5) where local gravity acceleration gcan be either considered constant (with a reference value) for simple cases, e.g. 9.81 m/s2on Earth, or calculated in a more accurate way by means of the Newton’s law of universal gravitation. From now on, the gravity acceleration is referred including
7 both terms, i.e. gT→ g, unless otherwise stated. An important observed property of atmospheres on a large scale is the stratification: the atmosphere is almost always gravitationally stable in the sense that heavy fluid underlies lighter fluid [6]. An important consequence is that motion parallel to the local direction of gravity is inhibited and this constraint tends to produce nearly only horizontal large-scale motions. In order to measure this phenomenon, it is convenient to use the Burger number: S=g∆ρ ρ D 4Ω2L2≈1(3.6) which is often in the order one for many atmospheric phenomena, meaning that both stratification and rotation play nearly equal roles in governing vertical and other motions in the fluid. Thus, incompressibility is appropriately valid for the model, which brings along the uncoupling of the energy equation in the Navier-Stokes equations. Finally, the fluid is assumed inviscid, that is, only motions for which viscosity is unimportant are considered here. However, it is important to mention that momentum diffusion can be added later on, regardless of the following mathematical manipulations and assumptions. Applying all these hypothesis to (3.1), we can eventually retrieve the resulting equations: ∇· v= 0 ∂ v ∂t + ( v·∇) v+ 2 Ω× v=−∇p ρ+ gT (3.7) The fluid layer presented above is, however, flat rather than forming a spherical or ellipsoidal shell, more like a portion of planetary atmosphere. Later is this document it is shown that this fact does not bring up any relevant changes in the model hypothesis, but additional geometric terms come up. 3.2 Rossby number and radius of deformaon On the momentum equations, the forces must be balanced with the relative velocity in the rotating frame and the Coriolis acceleration. The nature of the perceived acceleration depends on the relative size of both terms. An estimate can be done by examining the order of magnitude of the two accelerations and the ratio is defined as the Rossby number: Ro =Od v/dt 2 Ω× v=U/T 2ΩU=U 2ΩL<1(3.8) where the characteristic time can be thought as the ratio of the characteristic length scale to the characteristic velocity scale, i.e. T=L/U. Typical values of planets’ atmospheres show that Rossby number varies within upper limit of one. For instance, in the Earth’s atmosphere, simple
8 calculations indicate: Ro =U 2ΩL=25 1.5·10−4·1·106≈0.17 The Rossby radius of deformation Ris also introduced here as a physical length scale at which rotational effects become as important as buoyancy or gravity wave effects in the evolution of the flow about some disturbance: R=√gD |f|(3.9) This dimensional number indicates the length scale of the flow structures evolving in the domain and time, which is highly related with the phase speed of the present gravity waves c=√gD. In that sense, the higher the layer thickness is, the faster gravity waves propagate and larger fluid structure are being captured by the simulation. The phase velocity expression can be easily demonstrated by taking the Shallow-Water model in one-dimension and linearizing the equations, resulting in a wave equation of the type utt =c2uxx. 3.3 Shallow water equaons This section has the objective of tracing the consequences of the model in Section 3.1 and obtaining the system of equations to be implemented numerically. We shall firstly analyse the order of magnitude of the terms in the dynamic equations of motion from the already reduced system of equations (3.7). In particular, the mass conservation: ∂u ∂x +∂v ∂y +∂w ∂z = 0 U L U L W D= 0 (3.10) where Wscales for the vertical velocity and it follows that W/D cannot be larger than the remaining two terms with O(U/L), i.e. that: W≤O(δU)(3.11) In fact, inequality (3.11) represents the upper bound of W. Now we shall estimate the terms in the momentum equations. In component form, the xand y components are: ∂u ∂t +u∂u ∂x +v∂u ∂y +w∂u ∂z −fv =−1 ρ ∂p ∂x U T U2 L U2 L UW DfU =P ρL (3.12)
9 ∂v ∂t +u∂v ∂x +v∂v ∂y +w∂v ∂z +fu =−1 ρ ∂p ∂y U T U2 L U2 L UW DfU =P ρL (3.13) ∂w ∂t +u∂w ∂x +v∂w ∂y +w∂w ∂z =−1 ρ ∂p ∂z −g W T UW L UW L W2 D=P ρD g (3.14) where the order of magnitude of each term is written bellow as the corresponding characteristic scales. Notice that (3.12) and (3.13) state that the pressure field Pscales as: P=ρU L T, U, fL max (3.15) so that horizontal pressure gradient enters as a forcing term in the horizontal plane, otherwise the flow would be unaccelerated. Therefore, from the zcomponent of the momentum equation (3.14), the ratio of total derivative of the velocity to the pressure gradient in vertical direction is bounded by: O ρdw/dt ∂p/∂z =ρ[W/T, WU/L]max P/D =δ2[1/T, U/L]max [1/T, U/L, f]max (3.16) If we carefully analyse this radio, we can conclude that the order of magnitude should be δ2<< 1given typical values of the Rossby number (3.8). Therefore, it follows that at least O(δ2)∂p/∂z is negligible, which means that: ∂p ∂z =−ρg +O(δ2)(3.17) Equation (3.17) is the hydrostatic approximation and emerges naturally from the previous assumptions in Section 3.1. It is important to notice that the scaling argument compares the vertical motion due to (3.11) rather than vertical gravity acceleration. An immediate integration of (3.17) and proper boundary conditions result into: p=ρg(h+hb−z) + p0(3.18) where p0is the constant uniform pressure at the surface of the fluid layer. Notice that the
10 horizontal pressure gradients are independent of z, i.e.: ∂p ∂x =ρg∂(h+hb) ∂x ∂p ∂y =ρg∂(h+hb) ∂y (3.19) so that horizontal accelerations must be also independent of z. Therefore, horizontal velocities remain z-independent if they are so initially. Moreover, this conditions implies that the vertical velocity can be easily integrated from (3.10). Adequate boundary conditions such as no normal flow at the rigid surface, i.e. ∇(hb−z) v= 0, should be applied to obtain a linear function in the vertical direction for vertical motion: w=−z ∂u ∂x +∂v ∂y +u∂hb ∂x +v∂hb ∂y (3.20) Additionally, on the fluid layer surface the corresponding kinematic condition of total derivative w=d(h+hb) dt completes the system of equations of the model: ∂u ∂t +u∂u ∂x +v∂u ∂y −fv =−g∂η ∂x ∂v ∂t +u∂v ∂x +v∂v ∂y +fu =−g∂η ∂y D+η−(h+hb) = 0 ∂h ∂t +∂(hu) ∂x +∂(hv) ∂y = 0 (3.21) 3.4 Geostrophic equilibrium In Section 3.2 it is mentioned that, for planets’ atmospheres, the predominant term in the momentum equations is the Coriolis force. Thus, neglecting the inertial force terms from the resulting model equations (3.21) and (3.19), the relation between the velocity and pressure fields is retrieved: −fv =−1 ρ ∂p ∂x fu =−1 ρ ∂p ∂y (3.22)
11 where the Coriolis parameter is derived from (3.4) with previous assumptions and written in terms of the latitude φ: f= 2Ω sin φ(3.23) In a more compact form, the condition of geostrophic equilibrium can also be derived as: u v =1 fρˆ k×∇p(3.24) This expression is quite important because it can explain very intuitively some phenomena occurring on planets’ atmospheres. For instance, a cyclone is a large scale air mass that rotates around a low atmospheric pressure center. In the Earth’s Northern hemisphere, air masses are pulled into cyclones from all directions and are deflected to rotate counter-clockwise, e.g. the Hurricane Lorenzo as shown in next figure, just like (3.24) predicts. FIGURE 3.2 Hurricane Lorenzo scheme with pressure gradient direction and isobars. It moving through the eastern North Atlantic Ocean, as seen from NASA’s Terra satellite. Reference: NASA Worldview, Earth Observing System Data and Information System (EOSDIS).
12 3.5 Potenal vorcity The tendency of the flow to rotate a round a point (local spinning motion) is described by the relative vorticity which is expressed as ∇× v. Based on the hypothesis and remarks in the previous lines, the order of magnitude of the first and second component of vorticity must be O(δ), whereas the third component: ζ=∂v ∂x −∂u ∂y (3.25) is of greater order, i.e. O(ζ) = U/L. Therefore we may only consider this term for the relative vorticity. Cross differentiation of the first momentum equation with respect to xand second momentum equation with respect to yin (3.21) yields to: dζ dt =−(ζ+f) ∂u ∂x +∂v ∂y (3.26) Now, introducing the continuity equation from (3.21), we may get: dζ dt =ζ+f h dh dt (3.27) which represents that, following fluid columns (total derivative of h), the only mechanism to change the relative vorticity is varying the ratio of absolute vorticity (ζ+f) to fluid column. If we assume Coriolis parameter fto be constant, the following conclusion arises: d dt ζ+f h = 0 (3.28) where potential vorticity is defined as: Πs=ζ+f h(3.29) This mathematical proof (3.28) states that potential vorticity is conserved in each fluid parcel when following the fluid motion (Lagrangian perspective). The consequence is that for fluid columns that are squeezed, conservation of volume requires that it widens, and conservation of potential vorticity demands that it spins slower. Since the conservation of Πsis assured, it can be used as a passive tracer, i.e. having a similar effect to a cloud that does not physically interact with the fluid.
13 3.6 Coordinate systems The derivation of the model and expressions used so far are adhere to a Cartesian coordinate system form the sake of simplicity. For simplified cases in the context of Shallow-Water domains, these expressions are sufficient. However, for extended simulations of planetary atmospheres or even oceans, the formulation need to be modified in order to capture all the physics. 3.6.1 Cartesian The Cartesian coordinates system is very useful to verify and test simple cases. For instance, one of our benchmark cases is the raindrop falling onto a square domain with double periodic boundaries. The purpose is to visualize the evolution of the system from an initial perturbation (emulating a drop). Different parameters can be analysed such as the phase speed of gravity waves or positive/negative waves interferences, as can bee seen in Section 6.1. For cases regarding large atmospheres domains, the model equations are not accurate enough. For instance, the curvature of Earth’s surface can be ignored on spatial scales of 100 km as an approximation of first order, and the Coriolis parameter fmay be considered constant in the entire domain. However, a more sophisticated way of approaching the value of fis assuming a linear change according to: f=f0+βy with ybeing the latitude and f0and βconstant parameters depending on the location of the domain relative to the planet. This simplification is known as beta-plane approximation and provides very accurate results on spatial scales of up to 1000km (spans about 10deg in latitude) according to [3]. Then, for small domains we may consider the variation of latitude from a reference latitude φ0as a linear function φ=φ0+y/Rp, where Rpis the planet’s radius. Considering small variations of angle y/Rp, the Coriolis parameter (3.23) can be expanded in Taylos series: f= 2Ω sin φ0+ 2Ω cos φ0(y/Rp) + ... Therefore, the beta-plane parameters are f0= 2Ω sin φ0and β= 2Ω cos φ0/Rp. A clear visualization and interpretation is showed in next figure.
14 FIGURE 3.3 Scheme of beta-plane. Coriolis parameter is given by f=f0+βy. 3.6.2 Ellipsoidal Most of the planets have a shape similar to an oblate spheroid, this is an ellipsoid of revolution along its rotation axis meaning that the polar radius REis smaller than the equatorial radius RP(flattening of poles). Thus, the usage of ellipsoidal coordinate system is highly encouraged, specially for large regions of atmosphere where high resolution and results accuracy is demanded. FIGURE 3.4 Scheme of ellipsoid of revolution with reference longitude and latitude angles and zonal radius rZ. The reference coordinates are longitude λand latitude φ. The latter can be either planetocentric latitude φcor planetographic latitude φgwhich are related by: tan φg=ε2 ptan φc(3.30) with εp=RE/RP. For convenience and tradition in planetary atmosphere simulations, it is decided to use the planetographic latitude hereafter unless otherwise stated, i.e. φg→φ. Addi-
21 Since the variables involved in the model are quite coupled so that the set of equations are not linear, a practical approach for the numerical resolution is to apply an explicit integration method. Essentially a explicit scheme consists on computing the future state of the system only based on the current time, leading to a very short time-step size in order to assure acceptable accuracy. Explicit integration methods are conditionally stable which means that Courant–Friedrichs–Lewy condition must be satisfied so that numerical solution converges. CFL condition can be written for a mesh cell as: ui,j,k∆t ∆xs <1(4.1) which depends on both the spatial and time discretization at the location where velocity is computed. Furthermore, gravity waves phase speed also restrict a maximum time-step size, i.e.: ∆t < ui,j,k qgi,j,khi,j,k (4.2) These two conditions guarantee that both the fluid flow and gravity waves are not travelling faster than the maximum speed to be captured in a cell. Explicit time integration of momentum and continuity in (3.41) permits the computation of velocity (u, v)and layer thickness h, respectively, in future time as increments of previous and current time steps. For instance, velocity ucomponent can be integrated from the momentum equation in xdirection as: ∂u ∂t =ξ(u, ..)→∆u≈Zξ(u, ..)dt ≈ξ(un, un−1, ...)∆t Due to the non-linear terms in the set of equations of the model (3.41) and (3.42), special treatment is required for advection and continuity terms. Applying the differentiation chain rule on a generic scalar field B, advection can be decomposed and we shall define the terms P1 and P2 as: ∆BADV =−u∂B ∂x +v∂B ∂y ∆t=−∆t∂(uB) ∂x −∆t∂(vB) ∂y | {z } P1 +B∂u ∂x +∂v ∂y∆t | {z } P2 (4.3) Thus, the total increment of velocity and surface elevation for each layer kcan be written as: ∆uk= ∆uk,ADV + ∆uk,P ∆vk= ∆vk,ADV + ∆vk,P ∆ηk= ∆ηk,P 1+ ∆ηk−1 (4.4) Notice that only the terms accounting for advection and pressure gradients are considered in the explicit integration. Later on, the Coriolis term is introduced in the resulting total increment
22 of velocity. Additionally, we can observe that the surface elevation increment has a non-linear term P1 and another term coming from the layer bellow2. Therefore, it must be computed from lower to upper layers, which is justified by the interface of layers relation. The latter along with the dynamic pressure layers relation link the velocity field and the surface level among layers, i.e. linear algebraic equations in (3.41). 4.2 Advecon and pressure terms This section firstly describes the discretization of convective terms in finite-differences equations. The accuracy, numerical stability, and boundedness of the solution depend on the numerical scheme used for these terms. The central issue is the specification of an appropriate relationship between the variable stored at the cell center and its value at each of the cell faces (see the staggered positions in Figure 4.1). The term P1 of advection on a generic scalar Bcan be formulated in the generic finitedifferences form: −∆t∂(uB) ∂x ≈C+ wB+ w+C− wB− w−C+ eB+ e−C− eB− e where straight-forward explicit scheme is applied. In that sense, the Courant number is defined for each cell as: Cw=un i−1∆t/∆x Ce=un i∆t/∆x with positive and negative components: u+= 0.5(u+|u|)u−= 0.5(u−|u|) The effective evaluation of the face values Bwand Beis carried out with the Eulerian advection scheme, which consists on interpolating the surrounding node values. In order to be able to capture sharp prediction on coarse grids saving computation time without any misleading oscillations, we use the so-called Total Variation Diminishing schemes or simply TVD. These kind of schemes are restrictive so that the following requirement is achieved: X i|Bn+1 i+1 −Bn+1 i|<X i|Bn i+1 −Bn i| For TVD schemes used here, the face values of Bare computed as the sum of the upwind value and a higher order term: B+ w=Bn i−1+ 0.5Ψ(r+ i−1)(1 −C+ w)(Bn i−Bn i−1) B− w=Bn i−0.5Ψ(r− i−1)(1 + C− w)(Bn i−Bn i−1) 2The lowest layer has only the P1 term.
23 B+ e=Bn i+ 0.5Ψ(r+ i)(1 −C+ e)(Bn i+1 −Bn i) B− e=Bn i+1 −0.5Ψ(r− i)(1 + C− e)(Bn i+1 −Bn i) where the parameter ris given by: r+ i=Bn i−Bn i−1 Bn i+1 −Bn i r− i=Bn i+2 −Bn i+1 Bn i+1 −Bn i For a complete expansion of the corresponding P1 terms in the centered mesh (for h) and staggered meshes (for uand v), it is advisable to consult [9] and [10]. The slope limiter function Ψhas the effect of limiting the solution gradient near shocks or discontinuities. For the current version of the software, only the so-called Superbee scheme is implemented as: Ψ(r) = max{0,min(2r, 1),min(r, 2)} At this point, it is important to emphasis that the slope limiter requires two nodes ahead of the current one. Thus, mesh generation should account for a halo size of at least two. Additionally, notice that CFL condition (4.1) is justified by the numerical stability criteria on the above explicit form of the advection equation. On the other hand, the P2 term of advection and pressure gradient are computed in the most natural way using finite-difference method. For example, the P2 term of advection in the xdirection is expressed as: u∂u ∂x +∂v ∂y∆t≈ui,j ui+1,j −ui−1,j 2∆xs +(vi,j +vi+1,j)/2+(vi,j−1+vi+1,j−1)/2 ∆ys∆t where the velocity vcomponent at the faces is mean averaged. Similarly, the P2 expression on the ydirection can be obtained, where velocity ucomponent is mean averaged instead. On the other side, the pressure gradient in the xdirection is simple computed as: −1 ρ ∂P ∂x ≈ − 1 ρk Pi+1,j −Pi,j ∆xc 4.3 Temporal integraon Once we have computed all contributions for the increments on horizontal and vertical velocities ∆uand ∆vand surface elevation ∆η, we complete the time integration by applying a third order Adams-Bashford scheme with constant time-step size ∆t. For a generic variable ϕ, it simply
24 stands as: ∆ϕn+1 = ∆ϕn+1 = ∆ϕn,if n= 0 ∆ϕn+1 =3 2∆ϕn−1 2∆ϕn−1,if n= 1 ∆ϕn+1 =23 12∆ϕn−4 3∆ϕn−1+5 12∆ϕn−2,if n≥2 (4.5) For the very first and second time steps, lower numerical integration order is utilized for obvious reasons. Thus, from (4.5), we finally obtain the surface elevation at next time step ηn+1 and velocity field ˜uand ˜v, which is named with tilde because the Coriolis term is not included yet. 4.4 Coriolis implementaon Right after computing the velocity field due to convection and pressure gradients, i.e. ˜uand ˜v, the Coriolis force contribution to momentum has to be applied as an incremental effect. In this case, an explicit scheme is no longer used, instead a semi-implicit scheme (see Section 2.7.3 in [8]). The main reason concerns kinetic energy conservation and the proof is quite immediate. Firstly, we shall write the remaining equation terms3as weighted average between explicit and implicit scheme: un+1−un ∆t−f(1 −α)vn+αvn+1= 0 vn+1−vn ∆t+f(1 −α)un+αun+1= 0 with 0≤α≤1. The numerical scheme is explicit when α= 0 and implicit when α= 1. This coefficient has a crucial impact on the time evolution of the specific kinetic energy: (un)2+ (vn)2= 1 + (1 −α)2f2∆t2 1 + α2f2∆t2 n(u0)2+ (v0)2 According to whether αis less than, equal to, or greater than 1/2, the kinetic energy increases, remains constant, or decreases over time. It seems therefore appropriate to select the scheme with α= 1/2, which is usually said to be semi-implicit. Now, keeping in mind that Coriolis force contribution to the total velocity variation is ∆uC=un+1 −˜uand ∆vC=vn+1 −˜v, we can formulate the semi-implicit approach as: un+1 =h˜u−βun+αvni/(1 + β) vn+1 =h˜v−βvn−αuni/(1 + β) (4.6) where α= ∆tf and β= 0.25α2. It is also important to remark that, due to staggered nature of the 3At this point, the convective and pressure gradient terms are already included in the total velocity increments.
25 mesh, velocities components need to be averaged where the corresponding values are not computed. 4.5 Boundary condions In order to find a solution of the partial differential equations (3.41) we need to specify additional constrains on the limits of the numerical domain, called boundary conditions. Additional constrains (mainly initial conditions) are explained in depth in Chapter 5. The simplest boundary conditions one can think of is that of a full periodic domain, which essentially consists on reproducing the exact same conditions at the beginning and end of the domain in all directions. It can also be thought as an approximation of large (infinite) system by using a small portion. For a single layer with halo size of 24, full periodicity can be stated for a generic variable as: For j∈ {1, ..., ny} ϕ−1,j =ϕnx−1,j ϕ0,j =ϕnx,j ϕnx+1,j =ϕ1,j ϕnx+2,j =ϕ2,j For i∈ {1, ..., nx} ϕi,−1=ϕi,ny−1 ϕi,0=ϕi,ny ϕi,ny+1 =ϕi,1 ϕi,ny+2 =ϕi,2 (4.7) where ϕ=u, v and η. More information on indices arrangement, see Figure 4.1. Double periodic domain conditions is quite useful for code verification purposes and to test simple cases, as can be seen in the next section. Another very interesting boundary condition refers to cases regarding frictional effects of flow running parallel to coastlines, which are typically implemented by means of an specified velocity shear near the coast. In particular, zero-gradient velocity parallel to the boundary is called full-slip and for the normal component is assumed to be zero, as if there was not flow penetration through boundaries. Full-slip condition for velocity components in the boundaries south and north, respectively, can be expressed as: For i∈ {1, ..., nx} ui,−1=ui,0 ui,0=ui,1 vi,−1= 0 vi,0= 0 For i∈ {1, ..., nx} ui,ny+1 =ui,ny ui,ny+2 =ui,ny+1 vi,ny=vi,ny−1 vi,ny+1 =vi,ny vi,ny+2 =vi,ny+1 (4.8) Generalization for west and east boundaries is not presented here, yet its deduction is fairly intuitive and immediate. The current version of the software supports all four boundaries with fullslip condition, which can be though as a domain confined within 4 walls. As another option, flow can vanish at the coastline under the assumption that the flow at the grid point on the other side of the coast line is anti-parallel to the coastal flow, so that the average value vanishes directly at 4Minimum extra nodes for second order advection terms. See Section 4.2
26 the coast. This is called zero-slip condition and its implementation is straightforward based on the actual code structure. For the study of atmospheric phenomena, the most convenient boundary condition is a combination of periodicity and full-slip. A typical atmosphere domain encompasses a large length (longitude) and medium width (latitude) stripe. This means that west and east boundaries should communicate through a periodic condition, as if a complete 360 degrees stripe were being simulated, and the south and north boundaries should not permit flow penetration, which can be modelled as a full-slip condition. We called this boundary constrain as the channel condition, whose implementation is the left hand side set of equations (4.7) and equations (4.8). Along with the channel condition, the surface elevation should also be indicated on the boundaries where full-slip is applied. Specifically, for our planetary atmosphere simulations we make use of η= 0 on the halo cell nodes. Notice that based on Figure 4.1, the surface elevation ηboundary condition has only effect on the evaluation of flux limiter for advection terms. In other words, the values of ηclose to the boundaries can be naturally different from zero. This type of boundary condition is simply chosen from experience of the research group. FIGURE 4.2 Configuration of channel (or zonal band) boundary conditions on Arakawa C-grid. Periodic on west and east sides, i.e. ϕeast =ϕwest. Full-slip velocity on south and north and η= 0 on the corresponding halo nodes. 4.6 Validaon In order to make sure that code functions are implemented correctly, i.e. within the error range of numerical methods employed, the Method of Manufactured Solutions (MMS) is applied. MMS consists in designing mathematical functions with certain boundary conditions, typically periodic boundary conditions, that are used to find the exact solution of a partial differential equation or a
27 particular term of it. For instance, with a user-defined function for velocity field, we can extract the mathematical function for both terms P1 and P2 in (4.3). The proposed functions are designed for a double periodic domain where the density is variable in the vertical direction and pressure field is obtained from hydrostatic condition: u(x, y, t) = sin(2πx/L) cos(2πy/W)t v(x, y, t) = cos(2πx/L) sin(2πy/W)t η(x, y, t) = cos(2πx/L) cos(2πy/W) cos(t) h(x, y, t) = D+η(x, y, t) ρ(z) = ρ0+ρmz P(x, y, z, t) = ρ(z)gη(x, y, t) (4.9) The dimensions of the domain used in the verification are L=W= 100 m and the constant values D= 10m, ρ0= 1.225kg/m3,ρm=−10−5kg/m4and g= 9.81m/s2. Notice that reference density and gravity are selected as those of the Earth at sea level and the density variation is a linear approximation in such a way that at 100km the density is zero. The latter is just chosen for convenience to assess density variation in the multi-layer model, other constant values are also valid. In the following plots we can check that the order of approximation of advection and pressure terms correspond to the numerical methods orders employed. The order of the P1 term in both centered and staggered mesh is second order with mesh density O(∆h2)while keeping constant the Co =U∆t/∆xnumber. The latter is important because as the mesh density ∆his decreasing, the ∆tshould decrease proportionally too. This assumption is quite fair, since the Courant number is a requirement to be imposed at any simulation. Using the same assumption, the P2 and gradient pressure terms raise up to third order approximation O(∆h3). If Co is not constant, the P2 and gradient pressure terms are just second order. It is worth mentioning that the total approximation of the advection term is just second order because is encompasses P1+P2, thus the total order is the lowest. The Adams-Bashforth integration method is more simple, the numerical method is third order O(∆t3)as its implementation (4.5) confirms. For the semi-implicit integration of the Coriolis term, we need additional functions to test: the Coriolis parameter and velocity field right after the implementation of advection and pressure gradients. For the sake of simplicity and assuming full periodic condition is required, the following
28 functions are proposed: f= sin(y·10−3+ 1) γ= 0.123 ˜u= sin(ft +γ) ˜v= cos(ft +γ) (4.10) Notice that Coriolis parameter fcomprises values that are in the order of the real values and it is variable in the ydirection as it is in the analytical form. The offset angle γis just implemented to make the solution more general. As one can expect, the approximation is a second order O(∆t2). All these tests are also verified to pass with non uniform mesh size ∆x= ∆yso that code implementation is consistent. 1 1.5 2 2.5 3 3.5 4 4.5 Element size h [m] 10-10 10-9 10-8 10-7 10-6 10-5 10-4 10-3 10-2 Maximum absolute error | sol-num|max P1u P2u P1v P2v dPu dPv P1h P2h O( h2) FIGURE 4.3 Maximum absolute error of P1, P2 and pressure gradients using MMS for both centered and staggered mesh nodes using constant Co = 0.01.
29 10-3 10-2 Time-step dt [s] 10-10 10-9 10-8 10-7 10-6 10-5 10-4 10-3 Maximum absolute error | sol-num|max Adams-Bashforth 3rd O( t3) FIGURE 4.4 Maximum absolute error of 3rd order Adams-Bashforth integration method using MMS. 10-2 Time-step dt [s] 10-6 10-5 10-4 10-3 10-2 Maximum absolute error | sol-num|max uC vC O( t2) FIGURE 4.5 Maximum absolute error of Coriolis semi-implicit integration method using MMS.
30 4.7 Solver At this point, the main code functions have been introduced and now we proceed to solve the Shallow-Water multi-layer model equations in the following fashion: Algorithm 1: Shallow-Water Multi-layer Result: Velocity field (u,v), surface elevation and interface displacements η, layer thickness h, dynamic pressure P, potential vorticity Πsand tracer on each layer. 1Input constant parameters: 2- Numerical: number of processors (npx,npy), initial time ti, end time te, time-step size ∆t, factor CFL fCF L 3- Physical: global domain dimensions (L,W), number of layers nLwith corresponding undisturbed layer thickness hk,0and density ρk, specific planet’s parameters (rotation frequency Ω, reference gravity gE, zonal winds, etc.),... 4Previous calculations: 5Mesh generation, save constant fields (e.g. gravity accelerations, zonal winds, etc.), vertical distribution of density and winds (if applicable) 6Solve: 7t=ti; 8while t < tedo 9Apply perturbation through ∆ηand impose tracer in region of application; 10 Apply layers interface relations for all layers (Pressure and layer thickness); 11 Compute advection ∆uk,ADV and ∆vk,ADV ; 12 Compute pressure gradients ∆uk,P and ∆vk,P ; 13 Explicit integration using Adams-Bashforth (4.5) and obtain ˜uand ˜v; 14 Apply semi-implicit integration of Coriolis force as (4.6) and obtain un+1 and vn+1; 15 Compute next time step of passive tracer (advection and integration); 16 Compute P1 term in continuity equation and explicit integration to obtain ηn+1; 17 Apply layers interface relations for all layers (Pressure and layer thickness); 18 Evaluate post-processing variables such as potential vorticity Πs; 19 Save variables for next time step, i.e. ϕn=ϕn+1; 20 end 21 Post-processing of binary files; 22 Present results; For comparison purposes discussed in the Section 6.2, next is shown the algorithm of resolution of the current research group software Shallow-Water mono-layer model SW2. The main difference
37 0 0.5 1 1.5 -150 -100 -50 0 50 100 150 200 Jupiter 0 0.05 0.1 0.15 0.2 -50 0 50 100 150 200 250 300 350 Saturn 0 20 40 60 80 0 20 40 60 80 100 120 140 160 180 Venus Density (kg/m3) Altitude (km) FIGURE 5.3 Density profiles along altitude found on planet atmospheres of Jupiter, Saturn and Venus. Raw data is collected from [5]. In the Shallow-Water model, the density is assumed to be constant through the layer and thus it must be representative of the entire thickness domain. A mean average of the density at the extremes of the layer could be an initial approach, however, a more sensible manner is taking into account the density profile through the layer. This is done by means of computing the mean of the density function along the layer, i.e.: ρk=1 h0,k Zzk zk−1 ρ(z)dz (5.5) where zkis the altitude at which the layer kends. FIGURE 5.4 Scheme of density evaluation on each layer. Mean of density function in region of layer k= 2 leads to ρ2. Notice that zero altitude is plausible for Venus since it has a solid terrain at about 9.1MPa atmospheric pressure, whereas for gaseous planets the altitude should be referred to a pressure reference, in our case Pref = 1mbar.
38 CHAPTER 6 Results 6.1 Benchmark cases As a preliminary study and with the aim of understanding the model, simple cases are programmed and verified with analytical solutions or mathematical relations than describe the physics. Moreover, the following cases were also tested with simple MATLAB codes as an introduction to the topic of planetary simulations and the Shallow-Water model. The most simple case that can be conducted with a mono-layer Shallow-Water model is the drop, which essentially consists on a single layer initially perturbed with a Gaussian shape surface elevation. Then, the system evolves as if a rain drop hit a shallow lake (or big surface). We may consider a square lake of dimensions 500 x500 m and D= 10 m depth. The boundaries are double periodic, which is the simplest case scenario. The mesh grid is generated uniformly (∆x= ∆y= 5 m) and fine enough to obtain significant results. Additionally, the time-step is also quiet low (∆t= 0.1s), which satisfies the CFL condition and reduces numerical diffusion. The initial surface elevation is zero except from the center where a symmetric Gaussian shape function is located with an amplitude A0= 1 m and standard deviation σ= 25 m with a range of application of 25 m as well. When the drop is released (start of simulation), the gravity wave spreads out in all direction with a phase velocity c=√gD, where the gravity acceleration is chosen as that of the reference on earth surface g= 9.81 m/s2. The results of the surface elevation ηon the drop simulation are depicted in Figure 6.1. From the first seconds, or images, we can clearly see how the drop is expanding in all directions equally. In fact, we can observe that at 20 sec the gravity wave almost reaches the frontiers. Then, the distance travelled by the wave is about 200 m, which is consistent with the wave phase velocity c=√gD = 9.9m/s computed from the initial configuration parameters. In the next frames, we can see that the dynamics of the system create constructive and destructive wave interference in different parts of the domain, resulting in waves of greater and smaller amplitudes, respectively. The type of interference derived is mainly dependant on the wave propagation direction and phase. Additionally, the entire system remains symmetric during the simulation and we can see how the waves leave from one side and appear on the opposite side. This initial case has the objective
39 of verifying the correct functionality of the code, the algorithm and boundary conditions (double periodicity). FIGURE 6.1 Surface elevation ηin meters (m) at different instants of time. The case initiates with a Gaussian shape function at the center of the double periodic domain. The color bar limits represent the range of amplitudes in the domain during the period of 1to 60 sec. Next case scenario is quite similar to the previous one but with the following changes. The boundary conditions are changed from periodic to non-slip condition, thus emulating as if the system in confined within 4 walls. Also, the number of drops is increased and applied at different times with the intention of simulating a rain effect on a shallow lake of great dimensions. The parameters of the Gaussian perturbation and time of application are shown in the following table. TABLE 6.1 Values of time of application, position and amplitude of the Gaussian shape functions with a standard deviation σ= 25 m and range of application 25 m for the benchmark case of drops confined within 4 walls. t0(s) x0(m) y0(m) A0(m) 0 250 250 0.5 10 155 151 0.6 20 355 151 0.7
40 As we can see in Figure 6.2 the initial drop spreads rapidly in all direction with a phase velocity exactly as in the previous case. The drop released at t= 10 sec makes a constructive interference and propagates in phase with the former, thus the intersection has a greater amplitude. On the frame corresponding to t= 30 sec we can observe the effects of the introduction of the third drop, on the right corner, which has a greater amplitude and is clearly predominant (more visibility) until the next frame shown. Unlike the previous case, here we can observe how the waves bounce against the 4 walls limiting the domain which results in a completely asymmetric final shape of the layer. This case is mainly used to verify the full-slip conditions and the introduction of different perturbations at different time steps. FIGURE 6.2 Surface elevation ηin meters (m) at different instants of time. The case is perturbed with 3 Gaussian shape functions applied at different time steps and locations (see Table 6.1) in a confined domain, i.e. 4 side walls with non-slip conditions. The color bar limits represent the range of amplitudes in the domain during the period of 1to 40 sec. In order to verify the multi-layer model, i.e. a stratified system, with the simplest possible case, the two-layer model is usually employed for analysis purposes since the variables in the set of equations are kept to a minimum. The governing equations of the two-layer model can be immediately deduced from the multilayer model already described in the general form (3.41). For added simplicity, the set of equations are linearized and the topography terrain is considered flat. In such a case, the set of six coupled
41 equations is decomposed in two sets of three coupled equations so that the dynamics and the solution can be found easily, as can be seen in [8]. Due to the algebraic similarity, we may seek for a solutions based on the hypothesis of proportionality of the variables of one layer to another: u1=λu2v1=λv2η2=µη1 FIGURE 6.3 Scheme of 2-layer model in 1 dimension. The density difference between one layer to another, i.e ∆ρ=ρ1−ρ2, is typically smaller than the reference density ρ0=ρ1which results in a small ratio ∆ρ/ρ0<< 1. This ratio retains the effect of stratification in some way and appears naturally in the two-layer model equations in the form of the so-called reduced gravity g′=g∆ρ/ρ0. By assuming the latter, the pair of solutions of the aforementioned system of equations can be readily found: λ=(H1−H2)±(H1+H2) 2H1 It is important to remark that Coriolis effect is not included since only 1-dimensional case is studied, thus no coupling between uand v. The selection of the plus sign, i.e. λ= 1, gives a uniform vertical flow, u2=u1and v2=v1, and a relation between the free surface elevation and interfacial displacements η2=µTη1, where µT=H1/H and H=H1+H2. This is called the barotropic mode and behaves as if the density difference were not present. Whereas, on the other hand, the negative sign gives another mode λ=−H2/H1, the socalled baroclinic mode. This solution presents vertical shear velocity, H2u2=−H1u1and H2v2=−H1v1, and a relation between surface elevations η2=µCη1with µC=−g′H1/gH. Unlike the barotropic mode, the baroclinic mode acts as a nearly rigid free surface thus compensating the flow vertically. This means that the free surface displacement is very week compared to the interfacial displacement, resulting in opposite velocities between layers and producing no net flow rate.
42 We shall take the barotropic solution and analyse the dimensional scales in both momentum and continuity equations, similarly as in Section 3.3, but instead, using 1/f as the time scale. This leads to define the barotropic (or external) length scale or radius of deformation: Rexternal =√gH f(6.1) with an external gravity-waves phase velocity c=√gH. Similarly, for the baroclinic mode we may also found out the internal radius of deformation: Rinternal =1 fsg′H1H2 H1+H2 =qg′¯ H f(6.2) which is significantly smaller than the external radius of deformation Rexternal because of the reduced gravity. The propagation speed of the internal waves is c=qg′¯ H. FIGURE 6.4 Schematic representation of barotropic (left) and baroclinic(right) modes. Barotropic mode produces surface elevations in phase, thus uniform velocities. Baroclinic mode presents the top layer with weaker and counter-phase displacements, thus opposite velocities. The distinction between external and internal is mainly due to the fact that bigger structures generated by the barotropic mode are more relevant in the system, whereas baroclinic mode acts in smaller scales and smaller velocity, which can be thought as having interior dynamics. It is also important to remark that the number of modes increases as the number of layers increases too. In the limit, an infinite number of layers produces an infinite number of modes, representing a continuous stratified system. In order to verify and visualize the barotropic and baroclinic modes, the software is used without any modification inside the code, but with an appropriate choice of input parameters. Specifically, to emulate the 1-dimensional case we use a mesh with only 1 grid point in the ydirection and 2 layers of equal undisturbed layer thickness H1=H2= 1000 m with H=H1+H2= 2000 m, bottom layer density ρ1= 1.225 kg/m3and density variation of ∆ρ= 0.05 kg/m3. The xdirection represents our main axis of calculations and solution convergence will depend on the number of
43 grid points in this direction and time-step. Acceptable results are obtained with nx= 800 grid points and ∆t= 0.5sec. The domain is chosen to be located at a certain latitude φon the Earth atmosphere. This parameter can take any value since its implications are only related with the Coriolis parameter, as for a 1-dimensional analysis it does not contribute to any calculation. As a representative domain, 3deg in the main axis is selected. We assume no zonal winds are present and the initial velocity field is at rest. The evolution of the system is triggered by an initial Gaussian perturbation in the center of both top and bottom layers. The Gaussian parameters, based on (5.1), are specified in Table 6.2 for each of the following cases to be analysed. The values of amplitude are chosen so that the relation between layer surfaces is that of the barotropic µTand baroclinic µCmodes. TABLE 6.2 Values of amplitude A0in meters (m) of the Gaussian with a standard deviation σ= 0.01 deg for the 2 layer model study cases. Barotropic Baroclinic Both modes Top layer 100 -1.204 50 Bottom layer 50 50 0 In order to stimulate the barotropic mode, we shall introduce the top and bottom layer amplitudes with the ration µT=H1/H = 0.5. After 1000 sec of simulation, the two layer surface elevations take the shape presented in Figure 6.5. We can observe that the initial perturbation is split symmetrically and a proportionality between layer surfaces is present, i.e. η2∝η1. We can also verify that the gravity waves travel a distance of approximate 1.3deg throughout the simulation, which is consistent with the phase velocity c=√gH ≈0.0013 deg/s computed with the initial configuration parameters of the system. We can also observe that the amplitude of the top layer is greater than that of the bottom layer, η2> η1, which is consistent with the aforementioned. The ratio of both amplitudes is not kept as the µTconstant due to the fact that the actual software contains all the dynamics and no assumptions are made as in the linearized solution. Additionally, the velocity field is verified to be u1≈u2, just as the linearized theory predicts.
44 0 0.5 1 1.5 2 2.5 3 Longitude (deg) -5 0 5 10 15 20 25 30 Surface elevation (m) 1 2 0 0.5 1 1.5 2 2.5 3 Longitude (deg) -2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5 Layer velocity u (m/s) u1 u2 FIGURE 6.5 Two-layer case results after 1000 sec of simulation with initial Gaussian perturbations on both layers in such a way η2=µTη1. Thus, barotropic mode is predominant in the system. On the other side, we can also stimulate only the baroclinic mode by initiating the system with appropriate top and bottom amplitudes that keep the ratio µC=−g′H1/gH ≈ −0.0204. The specific values can be found in Table 6.2 and the results after 1000 sec are presented in the following plots. 0 0.5 1 1.5 2 2.5 3 Longitude (deg) -2 0 2 4 6 8 10 12 14 16 18 Surface elevation (m) 1 2 0 0.5 1 1.5 2 2.5 3 Longitude (deg) -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 Layer velocity u (m/s) u1 u2 FIGURE 6.6 Two-layer case results after 1000 sec of simulation with initial Gaussian perturbations on both layers in such a way η2=µCη1. Thus, baroclinic mode is predominant in the system.
45 Comparing with the barotropic mode, it is clear that the gravity waves in the baroclinic mode travel at a lower speed. In the same amount of simulation time, these waves travel a distance of about 0.127 deg which is again consistent with the internal gravity waves phase speed c=qg′¯ H≈1.27 ·10−4deg/s. The amplitudes in this case are greater for the bottom layer in contrast to the barotropic mode. The velocity field is indeed as expected for the baroclinic mode, i.e. opposite velocities u1≈ −u2. Finally, a more general case is performed in which both modes are present. The initial perturbation is only applied on the top layer and the system evolves during 1000 sec. The results present a behaviour similar to a superposition of barotropic and baroclinic modes explained above. The bigger amplitude gravity waves have travel faster than smaller amplitude gravity waves, which remain in the vicinity of the center of the domain. The internal and external gravity waves speed is exactly the same as previous cases because the initial configuration parameters are not changed, which is also validated in the Figure 6.7. It is important to notice that surface elevations on barotropic and baroclinic modes are in counter-phase and also that the baroclinic amplitudes are smaller. This conclusion validates the relation found in the linearized theory of µT/µC<0. 0 0.5 1 1.5 2 2.5 3 Longitude (deg) -10 -5 0 5 10 15 Surface elevation (m) 1 2 0 0.5 1 1.5 2 2.5 3 Longitude (deg) -1.5 -1 -0.5 0 0.5 1 1.5 Layer velocity u (m/s) u1 u2 FIGURE 6.7 Two-layer case results after 1000 sec of simulation with an initial Gaussian perturbations on top layer with amplitude η2= 50 m. Thus, baroclinic and baroclinic modes are present in the system. 6.2 Comparison with previous codes In this section, the main differences of the actual software developed, the Shallow-Water multilayer or SW3, and the previous code (SW2) are highlighted. It is important to mention than the SW2 has been in production for the last year providing excellent results and participating in the
46 elaboration of scientific papers. The principal difference is that the SW2 has implemented the mono-layer model, thus a fair comparison should be conducted with one layer case. The case to be tested takes place in the Saturn’s atmosphere with several storms evolving simultaneously at the vicinity of 39 deg north latitude. These storms are characterized and implemented as Gaussian functions with the form (5.2) and are applied with a constant flow rate during a certain period of time. In such a way, the storms are introduced smoothly in the system and the transition duration is shorter. Additionally, the storms are moving at a relative zonal speed uηand limited to a range rη, i.e. Gaussian functions are only added within the range distance from the center of the storm. The storm parameters are collected in the Table 6.3. TABLE 6.3 Gaussian parameters of Saturn storms case, which refer to the general form of Gaussian shape (5.2) with σ=σx=σyand n= 1. t0∆tηλ0φ0uηQ σ rη (day) (day) (deg) (deg) (m/s) (m3/s) (deg) (deg) 0 1 22.5 39.5 -20 5 ·10950 2 0 1 22.5 39.5 -20 1 ·1090.5 0.5 1.5 1 24.5 38.5 -20 5 ·10950 2 1.5 1 24.5 38.5 -20 1 ·1090.5 0.5 3 1 26.52 39.5 -20 5 ·10950 2 3 1 26.52 39.5 -20 1 ·1090.5 0.5 The domain selected goes from 0to 45 deg in longitude and from 30 to 50 deg in latitude. The reason of making the longitude direction shorter than expected is because of computation reduction purposes. These storms will evolve and interact in a smaller range. Distant domain regions, where the dynamics may be easily neglected, would represent an extra domain with insignificant calculations. From the numerical point of view, the mesh density is 0.2deg/pixel and ∆t= 5 sec, which provide results accurate enough in a reasonable time. Additional parameters of Saturn such as rotation period can be found in Table 2.1 and zonal winds from Figure 5.1 The resulting potential vorticity at different time frames of both codes is presented in the Figure 6.8. This variable is a passive tracer showing the evolution of the storms as if the clouds on the atmosphere were transported by flow field simulated. We can observe that the 3 pair of storms are initially concentrated and separated from each other pairs. As the flow time goes by, these storms are travelling westward and getting away from each other. Moreover, these storms widen their shape and are slightly reallocated in latitude.
53 0 10 20 30 40 -500 0 500 1000 1500 Surface elevation (m) 1 2 0 10 20 30 40 -60 -40 -20 0 20 40 60 80 Meridional velocity v (m/s) v1 v2 Longitude (deg) FIGURE 6.15 Surface elevation and meridional velocity along a line of constant latitude of φ=−22.5deg for GRS in 2 layers when initial perturbation is introduced at −22.5deg at simulation day 30. The density ratio between layers is 5%. Finally, we setup a more common density ratio of 10%. It is a typical value for the kind of density profiles encountered in gaseous planets at the altitude pressures where most of the phenomenology, e.g. GRS, takes places. In such a case and considering Figure 6.16, the GRS generated is more alike to the actual storm in Jupiter. The elliptical shape is recovered and its zonal velocity matches quite good with the real value of 3.6m/s westward. In this case, any small disturbance is later re-conducted by the flow itself to only produce the GRS. We can also verify that, on the bottom layer, the height of the column of fluid is more inclined at the surroundings with a height of nearly 1500 m and it has not a sharp peak. On the top layer the amplitudes are smaller but maintaining the shape. From Figure 6.17 we can deduce that the barotropic mode is predominant on the GRS and the baroclinic mode on the outside, where opposite sign velocities exist. Similarly to the previous case, more intense perturbation is needed.
54 FIGURE 6.16 Potential vorticity maps for GRS in 2 layers when initial perturbation is introduced at −22.5deg latitude after 30 simulation days. The density ratio between layers is 10% and undisturbed layer thickness for bottom and top are h0,1= 1000 m and h0,2= 10000 m, respectively 0 10 20 30 40 -500 0 500 1000 1500 2000 Surface elevation (m) 1 2 0 10 20 30 40 -60 -40 -20 0 20 40 60 Meridional velocity v (m/s) v1 v2 Longitude (deg) FIGURE 6.17 Surface elevation and meridional velocity along a line of constant latitude of φ=−22.5deg for GRS in 2 layers when initial perturbation is introduced at −22.5deg at simulation day 30. The density ratio between layers is 10%. Based on previous results, now the intention is to generate the GRS through smooth injection of fluid for a certain period of time instead of a strong perturbation at the very beginning of the simulation as in previous cases. In this way the transition is shorter. The perturbation is estimated to be introduced for 7 days with a constant flow rate, which is also estimated based on previous experiments and experience. Notice that the perturbation is moving due to the planet’s characteristics,
55 thus the injection of fluid should be moving as well. All the parameters used for the next simulations are gathered in the following table. Additionally, since close to the north boundaries small swirls appear, the domain is enlarge in latitude, ranging now from −35 deg to 0deg. The mesh density, though, is kept with constant resolution, i.e. 0.25 deg/pixel. Other numerical parameters such as time-step are also equal to previous cases. TABLE 6.5 Gaussian parameters of Jupiter GRS case generated from smooth injection of fluid, which refer to the general form of Gaussian shape (5.2) with A=Q∆tand n= 1. t0∆tηλ0φ0uηQ σ rη (day) (day) (deg) (deg) (m/s) (m3/s) (deg) (deg) 0 7 22.5 -22.5 -3.6 1 ·1012 3.0 5.0 For one layer, we shall use the same undisturbed thickness D= 1000 m as in previous cases. The results in Figure 6.18 show a clearly smoother behaviour during the transition which ends in the GRS formation sooner, at about day 15. We still see that there is a small flow structure detached from main storm but rapidly disappears by joining to the principal rotating structure. If we have a closer look at the numbers on Figure 6.19, we see that the height of the resulting column of fluid is too high, producing rotating velocities for the GRS in the order of 200 −250 m/s, which is in disagreement with real observation. The main parameter to reduce the high rotating vortex is the flow rate Q. However, this value is not changed for multi-layer cases since as mentioned in previous experiments, the perturbation gets weaker in the presence of a second layer.
56 FIGURE 6.18 Potential vorticity maps for GRS in 1 layer when smooth perturbation is introduced for 7 days at −22.5deg latitude after 25 simulation days. 0 10 20 30 40 Longitude (deg) 0 1000 2000 3000 4000 5000 Surface elevation (m) 0 10 20 30 40 Longitude (deg) -300 -200 -100 0 100 200 300 Meridional velocity v (m/s) -30 -20 -10 0 Planetographic Latitude (deg) -300 -200 -100 0 100 200 300 Zonal velocity u (m/s) FIGURE 6.19 Potential vorticity map for GRS in 1 layer when smooth perturbation is introduced for 7 days at −22.5deg latitude on simulation day 30. At the same instant of time, on the right, the surface elevation and meridional velocity along a line of constant latitude of φ=−22.5deg and zonal velocity along a line of constant longitude λ= 19.5deg that crosses the storm. The multi-layer case now is performed with 3 layers of equal undisturbed layer thickness h1,0=h2,0=h3,0= 1000 m. The reason is that typical density ratios to be used, e.g. 10%, correspond to lower distance difference between layers. In the following figure we have the resulting potential vorticity of each layer on 3 cases with different density ratio on the simulation day 30. The transition is not shown since the dynamics are visually quite similar to those on the 1-layer case. As we can observe, the structure generated has more details with more complex dynamics than 1-layer case. For instance, the small swirls near the top boundary are developed in a large extension defining a periodic pattern. For very low density ratios such as 1% (not shown here) or
57 5%, the train of spirals move towards the big storm generating a non uniform flow. As the density ratio increases though, it presents a more stable condition. We can also see that the wake of the storm (connected to the train of swirls upwards) is a significant feature that is captured and is more relevant in the multi-layer model than the mono-layer. Furthermore, for upper layers we see that in the interior of the GRS, concentric hole structures are created providing similarities to the lower right image of Figure 6.22. The combined observations show that these bright (in infrared) areas are clearings or places where there is less cloud cover blocking heat from the interior. The potential vorticity represent somehow the clouds behaviour within the fluid flow, thus the difference of values in these regions insinuate that clouds are less present. FIGURE 6.20 Potential vorticity maps for GRS in 3 layers when smooth perturbation is introduced for 7 days at −22.5deg latitude at simulation day 30. Layers are ordered from bottom to top and densities from left to right 5%, 10% and 25%, respectively.
58 0 10 20 30 40 Longitude (deg) -1000 0 1000 2000 3000 4000 5000 Surface elevation (m) 1 2 3 0 10 20 30 40 Longitude (deg) -150 -100 -50 0 50 100 150 Meridional velocity v (m/s) v1 v2 v3 -30 -20 -10 0 Planetographic Latitude (deg) -150 -100 -50 0 50 100 150 Zonal velocity u (m/s) u1 u2 u3 FIGURE 6.21 Surface elevation and meridional velocity along a line of constant latitude of φ=−22.5deg and zonal velocity along a line of constant longitude accordingly to cross the storm by its center. The curves, for each layer, are referred to the case of GRS in 3 layers with density ratio 10% when smooth perturbation is introduced for 7 days at −22.5deg latitude at simulation day 30. FIGURE 6.22 These images of Jupiter’s Great Red Spot were made using data collected by the Hubble Space Telescope and the Gemini Observatory on 1st April 2018. Upper left (wide view) and lower left (detail): The Hubble image of sunlight (visible wavelengths) reflecting off clouds in Jupiter’s atmosphere shows dark features within the GRS. Upper right: A thermal infrared image of the same area from Gemini shows heat emitted as infrared energy. Lower middle: An ultraviolet image from Hubble shows sunlight scattered back from the hazes over the Great Red Spot. Lower right: A multi-wavelength composite of Hubble and Gemini data shows visible light in blue and thermal infrared in red. Reference: Hubble Space Telescope official web-page. As already mentioned in previous cases, the intensity of the flow variables are decreased in comparison to a 1-layer case and also they decrease from lower to upper layers. This fact can
59 be observed in Figure 6.21. We can verify numerically that surface elevation amplitude is being reduced a nearly 9% per layer and approximately a 4% per layer in both meridional and zonal velocities. The shape of the curves is maintained which states that barotropic modes are dominant. On the other hand, the variation of density ratio brings about significant results of the stratification effects. As we can see in Figure 6.23 the increase of density variation, i.e. more stratified system, slows down the great storm. From the surface elevation curve, we see that the least stratified system slightly distorts the Gaussian shape on its highest part. Nevertheless, the amplitudes seem to remain unchanged. The meridional and zonal velocities, which are related with the rotating speed of the vortex, are being decreased as the density ratio decreases too. This is mainly explained by the fact that for lower density ratios the system starts oscillating and becoming unstable, therefore the structure of the GRS is lost. The shape of these curves is pretty much constant, which means that the fluid flow is still well guided by the zonal winds and dynamics of the system. 0 10 20 30 40 Longitude (deg) -1000 0 1000 2000 3000 4000 5000 Surface elevation (m) 1.05 1.10 1.25 1/2 0 10 20 30 40 Longitude (deg) -150 -100 -50 0 50 100 150 Meridional velocity v (m/s) 1.05 1.10 1.25 1/2 -30 -20 -10 0 Planetographic Latitude (deg) -200 -150 -100 -50 0 50 100 150 Zonal velocity u (m/s) 1.05 1.10 1.25 1/2 FIGURE 6.23 Surface elevation and meridional velocity along a line of constant latitude of φ=−22.5deg and zonal velocity along a line of constant longitude accordingly to cross the storm by its center. The curves are referred to case of GRS in 3 layers with density ratio 5%, 10% and 25% when smooth perturbation is introduced for 7 days at −22.5deg latitude at simulation day 30. The last simulations presented before show quite accurate results of rotation velocity, however, the round-like shape is still not matching the actual GRS. From space observation, the GRS have an elliptical contour with an approximate major-axis of 15 deg and minor-axis of 10 deg positioned at −22.5deg. Additionally, from the non-dimensional Rossby number analysis in Section 3.2, the fluid structure in Jupiter’s atmosphere must be in geostrophic equilibrium, i.e. rotation is more dominant than relative inertial accelerations. Thus, the velocity field is determined by pressure gradient, as indicated in (3.24), which is also related with the perturbation shape ∆η. Introducing the storm through a geostrophic equilibrium of surface elevations and velocities exhibit a shaky system during the transition. Instead, the geostrophic parameters for the surface elevation (5.3) are computed and introduced smoothly for 7 days. The Gaussian parameters for the following cases are gathered in the Table 6.6 with maximum vortex rotation umax, semi-major as
60 and semi-minor bsaxes and factor n= 2. The later denotes a more flattened shape on the highest column of fluid, which agrees with previous results. In this occasion, we use a constant undisturbed thickness for all layers with a value of 1000 m and density ratio of 25%. Numerical inputs such as mesh density and time-step remain equal to previous cases. TABLE 6.6 Gaussian parameters of Jupiter GRS case generated from smooth injection of fluid with elliptical shape and geostrophic equilibrium parameters, which refer to the general form of Gaussian shape (5.2). t0∆tηλ0φ0uηumax asbsrηn (day) (day) (deg) (deg) (m/s) (m/s) (deg) (deg) (deg) (-) 0 7 22.5 -22.5 -3.6 -120 7.5 5.0 7.5 2 The results in Figure 6.24 show that the main fluid structure generated conserves the elliptical shape and flow pattern for 3 and 4 layers, as previous cases. However, from 5 layers on, unstable swirls appear near the north boundary forming a semi-arch, which is pulling matter out the main storm. Also, the wake of the storm seems to follow the semi-arch direction as the number of layers increases. Cases of 5and 6layers will end up destroying the great storm as the high rotating spirals on top will bend the semi-arch even more. What’s more, we can verify that the number of layers make the storm move at a faster zonal velocity and displace its center in latitude as well. Approximate values of the coordinates of the storm center at the same instant of simulation time of 30 days are collected in Table 6.7. If we depict the surface elevation along the horizontal line that crosses the storm by the center, as in Figure 6.25, we see that the maximum amplitude on the first layer is kept pretty constant in all cases. However, the shape changes significantly, as the number of layer increases the column of fluid gets narrower. Thus, it would be expected to have an increase of rotation velocity (meridional and zonal) but we actually observe the opposite, which explains the fact of flow matter leaving the center of the storm. Additionally, from the zonal velocity plot, it is clear that the instabilities near the equator are enlarged as the number of layers increases. This could be explained by the fact that barotropic modes are more predominant, thus the external gravity waves travel at a speed √gH, conceiving the total height as the sum of all the layers thicknesses. As described in (6.1), the length scales of the structures presented in the system, or radius of deformation, increases as the number of layers increases due to barotropic modes. Therefore, the dynamics of the system itself will make vanish the initial GRS in the cases of big number of layers, e.g. 5layers. It is also worth mentioning that the rotation velocities of the vortex are not accurate enough, with the current configuration tangential velocities around 50 m/s are achieved. The source of imprecision could be produced by the way of deducing the expression of geostrophic parameters (5.3), which is performed for a single layer case and using the surface elevation instead of the pressure. In addition, the geostrophic velocity field is not introduced directly but the corresponding amplitude for 7 days.
61 FIGURE 6.24 Potential vorticity maps of the first layer for GRS in 3, 4, 5 and 6 layers when smooth injection of fluid with elliptical shape is introduced with geostrophic parameters at simulation day 30. Horizontal and vertical lines cross the storm by its center, whose coordinates are collected in Table 6.7 TABLE 6.7 Coordinates of the center of GRS in 3, 4, 5 and 6 layers at simulation day 30 when smooth injection of fluid is introduced with elliptical shape and geostrophic equilibrium parameters. 3L 4L 5L 6L lon (deg) 19.5 15.5 12.5 9.5 lat (deg) -22.0 -21.5 -21.0 -20.5
62 0 10 20 30 40 Longitude (deg) -500 0 500 1000 1500 2000 2500 Surface elevation (m) 3 4 5 6 nL 0 10 20 30 40 Longitude (deg) -50 0 50 Meridional velocity v (m/s) 3 4 5 6 nL -30 -20 -10 0 Planetographic Latitude (deg) -80 -60 -40 -20 0 20 40 60 80 Zonal velocity u (m/s) 3 4 5 6 nL FIGURE 6.25 Surface elevation and meridional velocity along a line of constant latitude and zonal velocity along a line of constant longitude accordingly to cross the storm by the its center. Coordinates of the storm at simulation day 30 are indicated in Table 6.7. The curves are referred to bottom/first layer of GRS case simulated with 3, 4, 5 and 6 layers. Density ratio among layers is 25% and storm is generated from smooth injection of fluid with elliptical shape and geostrophic parameters. Finally, a more accurate solution is sought by using the pressure versus temperature profile of the Jupiter’s atmosphere in Figure 5.2 and a finer mesh. It should be noted that the GRS clouds that we can see from space are because of the ammonia cirrus at an altitude pressure of about 700 mbar. Considering 3 layers of equal undisturbed layer thickness from 700 mbar to 800 mbar, the resulting layer properties are obtained and they are collected in the following table. Remember that each layer density is computed as the mean density function along the layer thickness height, as formulated in (5.5). Additionally, the specific gas constant of the atmosphere is needed, which can be estimated from spacecraft missions data and its value is collected in Table 2.1. TABLE 6.8 Layers properties (undisturbed thickness and density) for the 3 layer case on the GRS using pressure vs temperature profile of Jupiter from Figure 5.2. Layer h0ρ (-) (m) (kg/m3) 3 1018.96 0.132894 2 1018.96 0.133558 1 1018.96 0.134221 On the other side, the mesh density resolution is increased to 0.125 deg/pixel and time step is reduced to 2.5sec. The rest of physical and numerical parameters remain the same. The perturbation application is again with a smooth injection of fluid with elliptical shape and geostrophic values as the previous case in Table 6.6 but with the amplitude value increased a factor of 2.1.
69 winds (transverse waves). Later on, these waves start diverging to the sides or lines defining the internal envelope, which forms an angle of approximate 31.8deg with a horizontal line. We can also observe that as soon as perturbations reach the north and south boundaries, these bounce and get back to the interior of the domain. This inconvenience may be solved by applying an sponge term that dissipates and vanishes the effect of having a wall boundary type. FIGURE 6.31 Evolution of the surface elevation of the first layer when atmospheric winds of 35 m/s are passing by the Amsterdam Island on a 3-layer model. After 4 hours and a half, the surface elevation of the first layer looks like in the Figure 6.32. We can say that the pattern generated by the orographic waves have a certain level of similarity with the actual phenomenon. We can verify that these waves are travelling much slower than internal and external gravity waves c << √gH. There are also some tiny waves along the centered line (black line) with amplitudes on the order of tens of meters. These are pretty negligible but do contribute
70 to the dynamics of the system. 77 77.5 78 78.5 Longitude (deg) 0 500 1000 1500 2000 2500 3000 3500 4000 Surface elevation (m) 1 2 3 FIGURE 6.32 Surface elevation map after 270 simulation minutes. On the right, the surface elevation of all 3 layers along the centered black line.
71 CHAPTER 7 Summary and Future Work 7.1 Summary The research study conducted and presented in this document demonstrates the high degree of complexity to model planetary atmospheres. The real physics involved covers phenomena such as thermal convection, turbulence or phase changes of matter, among other, which are obviously out of the scope in this project at this moment. However, by making reasonable assumptions of the Navier Stokes equations, we may build up a consistent model that allows for simulating different kinds of events occurring on extraterrestrial planets’ atmospheres. The principal hypothesis of the Shallow-Water model concern the fact of having a very thin layer of fluid, incompressibility and fictitious forces due to non-inertial reference frame, i.e. rotation of planets. Unlike previous software used by the research group, in this occasion the multi-layer extension is derived through a change of vertical or zindependent variable, leading to isopycnical coordinates, i.e. constant layer density. The implementation is carried out through the evaluation of the dynamic pressure or Montgomery potential and the layer thickness interfacial relations. With this feature, the intention is to simulate more realistic stratified atmospheres. Additionally, the formulation on Cartesian and Ellipsoidal coordinates is described, which provides versatility on cases of study. The coding development is done from scratch in the SA3 environment using previous codes as reference. In this way, the code grows in a coherent programming context with functions, structures and a parallelized system that is verified and improved from previous versions. The numerical implementation of the model equations is based on the Arakawa C-grid and finite difference method, which is applied on advection terms (using TVD schemes) and pressure gradients. The temporal integration is a third order and Coriolis force is applied as an incremental effect with a semi-implicit scheme. On the other hand, the boundary conditions put into practice are those of periodicity and slip walls, which permit the modelization of an atmospheric zonal band. Finally, all the primary code functions are validated with MMS. The algorithm of resolution is then presented with some differences with respect to previous codes. With the consolidated model, some of the most relevant phenomena on planetary atmosphere can be introduced. Vortices and storms are formed with initial perturbations on the surface eleva-
72 tion as Gaussian shape functions applied on certain locations of the domain. Zonal winds are also included as a constant velocity field from experimental data. Stratification of the atmosphere is included from the pressure versus temperature profile from experimental data and assuming hydrostatic conditions and ideal gas law. The software developed is eventually tested with benchmark cases. With the drop cases, we verify the correct functionality of the algorithm as well as the type of boundary conditions available. On the 2-layer model in 1-dimension, we are able to see the barotropic and baroclinic modes acting in an isolated manner and jointly as well. The main conclusion here is that the external gravity waves, generated by barotropic mode, are moving faster and with greater amplitude (radius of deformation) than those of baroclinic mode. The comparison between the previous code SW2, which provides reliable results, and the current software is carried out with the case of the storms in Saturn. Both codes present significant similarities although having differences in the order of applying momentum and continuity equations. Additionally, the new code turn out to reduce the computational time in a nearly 12%. Next, several experiments on the Great Red Spot case are conducted with the aim of understanding the phenomenology through the multi-layer characteristic. It is concluded that the vortex need to be introduced smoothly by injecting fluid during a period of 7 simulation days at a determined flow rate. In this way, the entire system is not distorted too much and transition from initial conditions is shorter. It is also concluded that the undisturbed layer thickness is limiting the model based on the initial hypothesis. As an initial idea we observed that the undisturbed layer thickness should be in the range of 1km with a maximum of 3 layers, mainly due to the external gravity waves, generated by the barotropic mode, that produces wave phase velocities proportional to the total atmospheric layer thickness (sum of all layers). Thus, the radius of deformation or flow structures length scale increase. This justifies the fact of having a more unstable behaviour when the number of layer increases with constant density ratio. Then, it seems reasonable to continue investigating to find a method to filter the barotropic mode. The capabilities of the software also extends for the inclusion of topography. The verification of the correct implementation is carried out though a 1-dimensional linearized case and a real case, the ship-wave-shaped waves of Amsterdam Island, is run with the intention of generating similar orographic gravity waves. The results show graphical similarities but boundary conditions, for such a case, need to be improved. 7.2 Future Work From this research experience, it is clear that the Shallow-Water model has a long journey of study, research and discoveries. The software is still under development and many actions need to be taken to improve the model. Here are described the most immediate implementations at the time of writing this document.
73 For the advection terms evaluation, the flux limiter employed so far is the Superbee TVD scheme. However, for high resolution cases, it performs worse and produces instabilities in the domain. Other flux limiters have been tested, such as MUSCL and Upwind, producing quite similar results and avoiding those kind of issues. The reason is because they are more diffusive. The implementation is readily direct since the flux limiter function is written as a MACRO given its simplicity, i.e. algebraic and minimum/maximum value operations. The temporal integration is prepared for a constant time-step ∆t, however a variable time step size could reduce the computational time. The motivation is given by the fact that other modules in SA3, such as the incompressible Navier-Stokes, uses a variable time step limited by a fraction of the local Courant number. This implementation simply requires a new expression for the third order Adams-Bashforth scheme, which is presumably more complex. Experimental data of zonal winds and pressure versus temperature profiles are interpolated for the generated mesh in the case of study. A linear method is employed so far, but higher order schemes could be easily implemented given the code strucutre defined beforehand. The mesh could also be improved so higher concentration of nodes is located where high gradients are expected. This feature could be of high interest in the case of the Amsterdam Island, where a high density of nodes is required for an accurate capture of terrain. It is worth mentioning that all the code functions are already prepared for a rectilinear mesh, which is useful for a rapid implementation of a variable mesh. Concerning the research studies and with the intention of acquiring a more profound understanding of the multi-layer model, the rigid-lid approximation is a potential candidate layered model that could provide better results than those presened here. The main hypothesis of the rigid-lid is that vertical velocity is zero at the free surface, which means that the free surface elevation is zero too, i.e. ηnL = 0. The major implication comes into play when continuity equation is solved numerically. Instead of marching forward the free surface elevation in time and then determining the dynamic pressure from it, we need to find a pressure field that assures the transport field (hu, hv) is non-divergent [8]. Future studies on the GRS, or other planetary atmospheres phenomena, could also incorporate zonal wind shear, i.e. variable intensity along vertical direction of zonal winds. This feature is already implemented and tested for simple cases as that of the Amsterdam Island, although further analysis of the results should still be carried out, e.g. using experimental data and test cases from [19]. For the same case study and as it was mentioned in the results section, a more sophisticated type of boundary condition has to be imposed. A relatively immediate action is to implement a sponge which essentially consist of a dissipative mechanism similar to a damper in a mass-spring system
74 CHAPTER 8 Budget and environment impact This section summarizes the most relevant expenses and costs regarding the realization of the author’s master thesis as well as an estimate of its carbon footprint. The salary of the author is assumed to be as that of a junior trainee in a research group, whose experience on numerical methods is based on previous internships and academia. The total number of hours is estimated assuming that dedication to the project is about 6-8h per working day from February to July 2020. The power consumption encompasses the power required for the author’s laptop XPS 15 9560, essential tool for code development, running test cases and preparation of documentation. This can be estimated as the power of 97 W (from the manufacturer specifications) and a typical electricity price. Additionally, the power utilized in the cluster JUNO is estimated based on the fact that it was extensively used during 2 months at its maximum capacity at single node, i.e. 24 CPU cores. The power of the system is estimated to 250 W given the amount of processors working together and the cooling systems infrastructure. The only license needed for the work presented here is for MATLAB and it was used for the first month as an introduction and familiarization of the Shallow-Water model. The educational license was sufficient for such a purpose. Additional software and OS were used, such as Paraview and Ubuntu, but all of them are open-source application. Finally, based on the most recent report of CO2 emission factors [20], an estimate of 0.2kg CO2/kWh leads to nearly 65 kg CO2 emitted in this project from electricity generation. TABLE 8.1 Estimation of budget for the realization of the author’s master thesis. Concept Amount Unit cost Total Research assistance 735 h11 €/h 8085 € Laptop power consumption 735 h0.12 €/kWh 9€ JUNO power consumption 1000 h0.12 €/kWh 30 € Total 8124 €
75 Bibliography [1] E. García-Melendo, J. Legarreta, A. Sánchez-Lavega, R. Hueso, S. Pérez-Hoyos, J. González, and J. Gómez-Forrellad, “The jovian anticyclone ba: I. motions and interaction with the grs from observations and non-linear simulations,” Icarus, vol. 203, pp. 486–498, Oct. 2009. [2] A. Sánchez-Lavega, E. García-Melendo, J. Legarreta, R. Hueso, T. del Río-Gaztelurrutia, J. F. Sanz-Requena, S. Pérez-Hoyos, A. A. Simon, M. H. Wong, M. Soria, J. M. Gómez-Forrellad, T. Barry, M. Delcroix, K. M. Sayanagi, J. J. Blalock, J. L. Gunnarson, and U. D. . S. Ewald, “A complex storm system in saturn’s north polar atmosphere in 2018,” Nature Astronomy, vol. 4, p. 180–187, Oct. 2019. [3] J. Kaempf, Ocean Modelling for Beginners. Springer, 2009. [4] B. W. Lerner and K. L. Lerner, The Gale Encyclopedia of Science: Planetary atmospheres. Gale, 2014. [5] A. Sánchez-Lavega, An Introduction to Planetary Atmospheres. CRC Press, 2011. [6] J. Pedlosky, Geophysical Fluid Dynamics. Springer, 1987. [7] E. García-Melendo and A. Sánchez-Lavega, “Shallow water simulations of saturn’s giant storms at different latitudes,” Icarus, vol. 286, p. 241–260, Apr. 2017. [8] J.-M. B. Benoit Cushman-Roisin, Introduction to Geophysical Fluid Dynamics. Academic Press, 2011. [9] A. P. Gasull, “Shallow water model code for applications to planetary atmospheres,” UPC, Jun. 2018. [10] A. S. Urgell, “Shallow water model code for applications to atmosphere dynamics,” UPC, Jun. 2018. [11] M. A. Carcasona, “Vortex introduction via geostrophic equilibrium using shallow worlds and sppde,” UPC, 2019.
76 [12] P. L. R. Boris Galperin, Zonal jets : phenomenology, genesis, and physics. Cambridge University Press, 2019. [13] P. Javier, M. Keishiro, H. Ricardo, H. Takeshi, S.-L. Agustín, M. Shin-ya, M. Pedro, Y. Eliot, L. Y. Joo, K. Toru, S. Hideo, M. Kevin, S. Takehiko, I. Takeshi, L. Sanjay, S. Takao, O. Kazunori, N. Masato, and L. David, “Nightside winds at the lower clouds of venus with akatsuki/ir2: Longitudinal, local time and decadal variations from comparison with previous measurements,” The American Astronomical Society, vol. 239, Dec. 2018. [14] J. Peralta, Y. J. Lee, R. Hueso, R. T. Clancy, B. J. Sandor, A. Sánchez-Lavega, E. Lellouch, M. Rengel, P. Machado, M. Omino, A. Piccialli, T. Imamura, T. Horinouchi, S. Murakami, K. Ogohara, D. Luz, and D. Peach, “Venus’s winds and temperatures during the messenger’s flyby: An approximation to a three�dimensional instantaneous state of the atmosphere,” Geophysical Research Letters, vol. 44, pp. 3907–3915, Apr. 2017. [15] J. Norbury and I. Roulstone, Large-scale atmosphere-ocean dynamics. Volume 1: Analytical Methods and Numerical Models. Cambridge University Press, 2002. [16] D. Choid, D. Banfield, P. Gierasch, and A. Showman, “Velocity and vorticity measurements of jupiter’s great red spot using automated cloud feature tracking,” Icarus, vol. 188, pp. 35–46, May 2007. [17] G.-M. E., L. J., S.-L. A., H. Ricardo, P.-H. Santiago, G. J., and G.-F. J., “The jovian anticyclone ba: I. motions and interaction with the grs from observations and non-linear simulations,” Icarus, vol. 203, p. 486–498, Oct. 2009. [18] B. R. Sutherland, Internal gravity waves. Cambridge University Press, 2010. [19] C. J. Nappo, An introduction to atmospheric gravity waves. Academic Press, 2002. [20] MITECO, “Factores de misión: Registro de huella de carbono, compensación y proyectos de absorción de dióxido de carbono,” Gobierno de España. Ministerio para la Transición Ecológica y el Reto Demográfico, Jun. 2020.