Model Task 5: Implementing the 2D model ATM 562 Fall 2015 Fovell (see updated course notes, Chapter 13) 1.

Slides:



Advertisements
Similar presentations
AP C UNIT 3 WORK & ENERGY.
Advertisements

Running a model's adjoint to obtain derivatives, while more efficient and accurate than other methods, such as the finite difference method, is a computationally.
Lecture 15: Capillary motion
Thrust bearings  Support the axial thrust of both horizontal as well as vertical shafts  Functions are to prevent the shaft from drifting in the axial.
Methods of solving problems in electrostatics Section 3.
RAMS/BRAMS Basic equations and some numerical issues.
Gravitational Attractions of Small Bodies. Calculating the gravitational attraction of an arbitrary body Given an elementary body with mass m i at position.
Chapter 30 Sources of the magnetic field
Free Fall Ch 2.5 WOD are underline. A special case of constant acceleration. The most common case of constant acceleration.
Lecture IV of VI (Claudio Piani) 3D N-S equations: stratification and compressibility, Boussinesq approximation, geostrophic balance, thermal wind.
Horizontal Convective Rolls Asai papers & Simulations w/ ARPS.
Chapter 9 Vertical Motion. (1) Divergence in two and three dimensions. The del “or gradient” operator is a mathematical operation performed on something.
Chapter 8 Coordinate Systems.
Super-granulation Scale Convection Simulations Robert Stein, David Benson - Mich. State Univ. Aake Nordlund - Niels Bohr Institute.
Experiment #1: Thermal By: Steven Van Horn A&OS C115/C228.
Chapter 7 Bits of Vector Calculus. (1) Vector Magnitude and Direction Consider the vector to the right. We could determine the magnitude by determining.
Finite Difference Methods Or Computational Calculus.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
MAGNETOSTATIC FIELD (STEADY MAGNETIC)
Induction and Inductance Chapter 30 Magnetic Flux.
Implementation of 2D FDTD
Section 5: The Ideal Gas Law The atmospheres of planets (and the Sun too) can be modelled as an Ideal Gas – i.e. consisting of point-like particles (atoms.
4.10 Reduction of a Simple Distributed Loading
– Equations / variables – Vertical coordinate – Terrain representation – Grid staggering – Time integration scheme – Advection scheme – Boundary conditions.
Session 4, Unit 7 Plume Rise
19 December ConclusionsResultsMethodologyBackground Chip HelmsSensitivity of CM1 to Initial θ' Magnitude and Radius Examining the Sensitivity of.
A control algorithm for attaining stationary statistics in LES of thermally stratified wind-turbine array boundary layers Adrian Sescu * and Charles Meneveau.
The simplest theoretical basis for understanding the location of significant vertical motions in an Eulerian framework is QUASI-GEOSTROPHIC THEORY QG Theory:
Smoothed Particle Hydrodynamics (SPH) Fluid dynamics The fluid is represented by a particle system Some particle properties are determined by taking an.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.
Presentation Slides for Chapter 3 of Fundamentals of Atmospheric Modeling 2 nd Edition Mark Z. Jacobson Department of Civil & Environmental Engineering.
Conservation of mass If we imagine a volume of fluid in a basin, we can make a statement about the change in mass that might occur if we add or remove.
Chapter 12 – Vectors and the Geometry of Space 12.2 – Vectors 1.
Introduction This chapter focuses on Parametric equations Parametric equations split a ‘Cartesian’ equation into an x and y ‘component’ They are used.
Advanced EM - Master in Physics Magnetic potential and field of a SOLENOID Infinite length N spires/cm Current I Radius R The problem -for.
Model Task 0A: Programming the 1D upstream scheme ATM 562 Fall 2015 Fovell 1.
Model Task 2: Calculating CAPE and CIN ATM 562 Fall 2015 Fovell (see updated course notes, Chapter 10) 1.
Model Task 0B: Implementing different schemes ATM 562 Fall 2015 Fovell 1.
FLUID ROTATION Circulation and Vorticity. Arbitrary blob of fluid rotating in a horizontal plane Circulation: A measure of the rotation within a finite.
Some Fortran programming tips ATM 562 Fall 2015 Fovell (see also PDF file on class page) 1.
1 Physics 8.02T For now, please sit anywhere, 9 to a table.
AOSS 401, Fall 2006 Lecture 9 September 26, 2007 Richard B. Rood (Room 2525, SRB) Derek Posselt (Room 2517D, SRB)
ELEC 3105 Basic EM and Power Engineering
Convective Roll Effects on Sea Breeze Fronts
Numerical simulations of inertia-gravity waves and hydrostatic mountain waves using EULAG model Bogdan Rosa, Marcin Kurowski, Zbigniew Piotrowski and Michał.
EMLAB 1 3D Update Equations with Perfectly Matched Layers.
Model Task 3: Grid setup, initial condition and visualization ATM 562 Fall 2015 Fovell (see updated course notes, Chapter 11) 1.
Photospheric MHD simulation of solar pores Robert Cameron Alexander Vögler Vasily Zakharov Manfred Schüssler Max-Planck-Institut für Sonnensystemforschung.
Model Task 4: Time stepping and the leapfrog scheme ATM 562 Fall 2015 Fovell (see updated course notes, Chapter 12) 1.
Adjoint models: Examples ATM 569 Fovell Fall 2015 (See course notes, Chapter 16) 1.
Mass Coordinate WRF Dynamical Core - Eulerian geometric height coordinate (z) core (in framework, parallel, tested in idealized, NWP applications) - Eulerian.
Formulation of 2D‐FDTD without a PML.
Adding two numbers together which have the same absolute value but are opposite in sign results in a value of zero. This same principle can be applied.
Compressible vs. anelastic (Elliptic equation example) ATM 562 Fovell Fall, 2015.
Model Task 1: Setting up the base state ATM 562 Fall 2015 Fovell (see course notes, Chapter 9) 1.
Adjoint models: Theory ATM 569 Fovell Fall 2015 (See course notes, Chapter 15) 1.
An exploration of basic aspects of modeling using the warm bubble Kim Wood May 7, 2008 a.k.a. A documentary of a newbie’s journey through the jungles of.
DENSITY RULES.
Temperature Advection
“Consolidation of the Surface-to-Atmosphere Transfer-scheme: ConSAT
thermal conductivity of a gas
Linear Equations in two variables
Coordinate Geometry in the (x,y) plane.
Eurocode 1: Actions on structures –
Work AP Physics C.
topic13_grid_generation
KS3 Mathematics A5 Functions and graphs
topic13_grid_generation
Steady-State Heat Transfer (Initial notes are designed by Dr
Electricity and Magnetism I
Presentation transcript:

Model Task 5: Implementing the 2D model ATM 562 Fall 2015 Fovell (see updated course notes, Chapter 13) 1

Outline The 2D model framework was established in MT3, along with initial conditions for  ’,  ’ MT4 added a time stepping loop for a single, simple equation For MT5, we remove that simple advection equation and: – Code in equations for our four prognostic variables – Apply rigid boundaries in the z direction – Simulate a thermal rising in a neutral environment – (Modifying NX, NZ, dx, dz, dt ) 2

Model equations 3 At this point, the model has no moisture, but I have retained mean virtual potential temperature where it appears.

Writing advection in flux form Flux form entails rewriting advection and forcing the anelastic continuity equation to be valid Example: take u equation, multiply by mean density: Use chain rule to form The bracketed term is zero if the anelastic continuity equation is valid. Presume this is so. That is flux form. 4

Model equations in flux form 5 Flux form not applied to base state potential temperature, as there’s no term to cancel out ∂w/∂z Divergence term in pressure equation also expanded.

6

The u equation, term by term 7 We will solve for u i,k n+1, so the other term moves to the RHS

8 Derivative NOT performed over 2∆x, but is still second-order accurate, owing to grid staggering u is averaged to scalar points before being subtracted

9 First two terms, in code up(i,k)=um(i,k)-.25*dtx*((u(i+1,k)+u(i,k))**2 & -(u(i-1,k)+u(i,k))**2) where dtx = d2t/dx

10 This term requires averaging w and u to points ∆dz/2 above and below u i,k n This term also demonstrates why it is useful to carry mean density at both u and w levels

11 This term requires averaging w and u to points ∆dz/2 above and below u i,k n This term also demonstrates why it is useful to carry mean density at both u and w levels -.25*dtz*(rhow(k+1)*(w(i,k+1)+w(i-1,k+1)) & *(u(i,k+1)+u(i,k)) & -rhow( k )*(w(i,k )+w(i-1,k )) & *(u(i,k )+u(i,k-1)))/rhou(k) where dtz = d2t/dz

12 The PGA term works out very neatly for this grid stagger -dtx*cpd*tbv(k)*(pi(i,k)-pi(i,k-1))

Put the u equation together 13 c loop over unique points: i=2,nx-1 and k=2,nz-1 do k=2,nz-1 do i=2,nx-1 up(i,k)=um(i,k)-.25*dtx*((u(i+1,k)+u(i,k))**2& -(u(i-1,k)+u(i,k))**2)& -.25*dtz*(rhow(k+1)*(w(i,k+1)+w(i-1,k+1))& *(u(i,k+1)+u(i,k))& -rhow( k )*(w(i,k )+w(i-1,k ))& *(u(i,k )+u(i,k-1)))/rhou(k) & -dtx*cp*tbv(k)*(pi(i,k)-pi(i-1,k)) enddo c zero gradient top and bottom over the unique points do i=2,nx-1 up(i,1)=up(i,2) up(i,nz)=up(i,nz-1) enddo c now k=1,nz has been done for the unique points c now apply periodic lateral boundaries for all k do k=1,nz up(1,k)=up(nx-1,k) up(nx,k)=up(2,k) enddo

Parts of the w equation 14

Parts of the w equation, continued 15 When you put it all together, don’t forget to multiply through by d2t.

 ’ in flux form 16 Note horizontal and vertical derivatives of  ’ are in flux form, but the vertical derivative of mean potential temperature is in advective form. See that flux form is the difference of averages, while advective form is the average of differences.

 ’ equation 17 Coefficient applied to terms on RHS. Sound speed should vary with height, but we will take it to be a fixed, externally supplied parameter.

Integration setup Base state and initial conditions as constructed for MT3 Sound speed = 50 m/s (too slow!) ∆t = 2 sec Integrate for 1200 sec Notes: – Upper boundary is a rigid plate. This is very artificial. – Initial condition is symmetric and centered in domain. Since initial u = 0, the bubble should retain symmetry axis at domain midpoint 18

19 Color:  ’ Contoured: p’ (dimensional) Airflow vectors skip 4 pts in x, 2 in z x10 sec

20 H LL H x10 sec

21

22 Initial condition from MT3

23 Hovmoller diagram of surface dimensional pressure cscs Look how quickly the magnitude of the initial p’ changed

MT5 Turn in your code and a plot of  ’ and p’ (or  ’) at 1200 sec Experiments to consider: – Does that reflection cause significant problems? Try expanding the domain – Did the initially supplied  ’ cause more harm than good? Run the model without it, and compare the results – For the given ∆x, ∆z, c s how sensitive are the results to the time step? – What happens if you improve time and space resolution? – How sensitive is the result to the specified c s ? – Does coding  ’ in flux form make any difference? – What if you made the base state stable instead of neutral? 24