Presentation is loading. Please wait.

Presentation is loading. Please wait.

This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.

Similar presentations


Presentation on theme: "This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344."— Presentation transcript:

1 This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344. An Immersed Boundary Method Enabling Large-Eddy Simulations of Complex Terrain in the WRF Model Performance Measures x.x, x.x, and x.x Presented at: University of Utah April 4, 2012 Katherine A. Lundquist 1,2, Fotini K. Chow 2 1 Lawrence Livermore National Laboratory 2 University of California, Berkeley

2 Numerical Weather Prediction in Complex Terrain Vertical coordinate systems used in numerical weather prediction models. Non-orthogonal orthogonal sigma, or terrain-following eta, or “step mountain”

3 Numerical Weather Prediction in Complex Terrain Nested grids used in mesoscale models allow integration of physical processes across a range of scales 50 m grid1 km grid300 m grid

4 Numerical Weather Prediction in Complex Terrain Higher grid resolution leads to steeper slopes in complex terrain

5 Problems with Terrain-Following Coordinates in Complex Terrain Grid skewness leads to significant errors in horizontal derivatives Advection Diffusion Pressure gradient Mapping function for coordinate transformation (Gal-Chen and Sommerville,1975) New terms are introduced into the governing equations (metric terms) When discretized, the metric terms have additional truncation errors

6 Problems with Terrain-Following Coordinates in Complex Terrain In addition to truncation errors, numerical inconsistencies arise when: ht ΔzΔz In the transformed coordinate η, the horizontal derivative is: A first order finite difference approximation yields:

7 Problems with Terrain-Following Coordinates in Complex Terrain Numerically inconsistent derivatives are more likely at large aspect ratios Horizontal grid spacing of 1km with a vertical grid of 50 m leads to an aspect ratio of 20 Moral of the story: Don’t stretch grids too much Example: 1 km horizontal spacing, 50 m vertical -- max allowed slope is 3 degrees

8 How can we quantify numerical errors due to terrain-following coordinates?  Model fails at steep slopes, but when does solution quality deteriorate? What slope? What grid aspect ratio?

9 Numerical Weather Prediction in Complex Terrain Vertical coordinate systems used in numerical weather prediction models. Non-orthogonal orthogonal sigma, or terrain-following eta, or “step mountain” immersed boundary Use immersed boundary method Can eliminate the terrain-following coordinate transformation Quantify numerical errors through direct comparison of the two solutions

10 Scalar Advection Test Case (Schär et al. 2002) Domain Set-Up & Initialization  Peak Height = 3 km  Elevated Velocity Shear Layer at 5 km (terrain is very steep, but isolated)  Inviscid flow- no mixing  Stable Stratification  Domain size 300 km x 25 km  Grid spacing 1 km x 0.5 km  5 th order horizontal and 3 rd order vertical advection scheme is used

11 Scalar Advection Test Case Grid Configuration WRF IBM-WRF Grid distortion

12 Scalar Advection Test Case Velocity Comparisons WRF IBM-WRF WRF IBM-WRF U (m/s) at t = 10000 s W (m/s) at t = 10000 s Height (km) x (km) Height (km) x (km)

13 Scalar Advection Test Case Scalar Concentration and Error

14 Effects of terrain slope in WRF  Change max mountain height  Error = max(|WRF-exact|) Error Terrain slope (degrees)

15 Atmosphere At Rest  3D hill, quiescent atmosphere, no forcing  10 degree slope (not very steep!)  Stable atmosphere  No flow should develop at all

16 U (m/s) θ(K) Atmosphere at Rest Spurious Flow Develops WRF coord. diffusion WRF horiz. diffusion IBM-WRF U (m/s) θ(K) Max velocity 1.7 m/s Max velocity 0.28 m/s Max velocity 3.8 e-5 m/s

17 Flow Over 3D Hill  Compare WRF and IBM-WRF max slope of 10, 20, 30 deg, grid aspect ratio 1  Geostrophic pressure gradient forcing  No-slip boundary condition  Zero flux condition on temperature  Run to steady state

18 Flow Over 3D Hill Velocity Difference – WRF vs IBM-WRF Absolute velocity difference – slice through peak of hill x (km) 10 slope20 slope30 slope Max u diff 1.0 m/s Max u diff 1.8 m/s Max u diff 3.1 m/s ht (km)

19 Increased turbulent eddy viscosity  Overwhelms numerical errors  Absolute differences between WRF and IBM-WRF decrease Low viscosity Height (km) x (km) High viscosity x (km)

20 Immersed Boundary Method The effects of the body on the flow are represented by the addition of a forcing term in the momentum equation. The immersed boundary method is a technique for representing boundaries on a non-conforming grid

21 Immersed Boundary Method Formulation of the Forcing Term Source: Peskin (1977)  IBM was first used by Peskin (1972) and (1977) to simulate blood flow through the mitral valve of the heart.  Direct (or Discrete) Forcing proposed by Mohd-Yusof (1997) and used to model laminar flow over a ribbed channel where V Ω is the desired Dirichlet boundary condition

22 Immersed Boundary Method Boundary reconstruction Boundary is coincident with computational nodes Boundary effects must be interpolated to computational nodes Stair step or nearest neighbor grid Immersed Boundary Method grid

23 Immersed Boundary Method Boundary Reconstruction Using a ghost cell method, the forcing term is applied within the solid domain. UΩ2UΩ2 U2U2 U1U1 U ghost cell UΩ1UΩ1

24 Scalar Fluxes at the Immersed Boundary Use the immersed boundary method to impose boundary conditions on temperature, moisture, passive scalars, etc. Or a flux boundary condition can be imposed with IBM. A Dirichlet boundary condition

25 Immersed Boundary Method Boundary Reconstruction Neumann boundary conditions are set by modifying the interpolation matrix to include the boundary condition δΦ/δn Ω1 Φ2Φ2 Φ1Φ1 Φ ghost cell δΦ/δn Ω2

26 Idealized Valley Simulations  Thermal Slope flow induced by diurnal heating  Uncoupled simulations with specified surface heating  Coupled simulations using atmospheric parameterizations WARM

27 Idealized Valley Simulations Set-up and Initialization  ΔX = ΔY = 200 m, ΔZ ~100 m  (U,V,W) = (0,0,0)  Stable Potential Temp.  40% Relative Humidity  Sandy Loam, Savannah  Soil Moisture, 20% saturation rate  Soil Temperature, equal to atmospheric temperature

28 Uncoupled Ideal Valley  Integrate from 6:00 to 18:00 UTC  Specified heat flux  Zero moisture flux at surface  No atmospheric physics  No surface properties  Constant

29 Uncoupled Ideal Valley Evolution of Potential Temp. Potential Temp at Valley Center

30 Coupled Ideal Valley Comparison of Velocity Profiles Comparison of instantaneous velocity profiles for IBM-WRF (red) and WRF (black)

31 Coupled Ideal Valley  Fully Coupled Model RRTM Longwave Radiation MM5 Shortwave Radiation MM5 Surface Layer Model NOAH Land Surface Model  Each atmospheric physics module has been modified to account for the immersed boundary

32 Coupled Ideal Valley Initialization  Date: March 21, 2007  Location: 36°N, 0°E  Sandy Loam, Savannah  Soil Moisture, 20% saturation rate  Soil Temperature, equal to atmospheric temperature

33 Coupling IBM to the Atmospheric Physics Models  Surface physics models interact with the lowest coordinate level when terrain-following grids are used  The atmospheric physics models used here are column models  For radiation models the vertical integration limits are modified to exclude any portion of the atmosphere below the terrain  For surface physics a modified reference height is calculated and used with similarity theory

34 Coupled Ideal Valley Radiation Models Domain averaged incoming radiation (longwave and shortwave) differ by less than 0.43% during the simulation. Spatial variation in radiation at 12:00. Error from IBM coupling is negligible in comparison to changes with terrain height.

35 Coupled Ideal Valley Surface Physics Domain averaged heat flux differs by less than 5.4%, and moisture fluxes by less than 0.74%

36 Coupled Ideal Valley Land-Surface Properties IBM provides boundary condition to both WRF and NOAH simultaneously.

37 Complex Terrain Owens Valley, CA Valley terrain can be extremely steep with slopes of up to 60 degrees. IBM allows explicit resolution of this terrain.

38 Verification with Field Campaign Dataset Joint Urban 2003 Oklahoma City Field Campaign Source: Allwine and Flaherty (2006)

39 Joint Urban 2003 Oklahoma City Terrain

40 Problems with Boundary Reconstruction Matrix is singular Flux is prescribed in the incorrect direction Cannot find eight appropriate neighbors UΩ2UΩ2 U2U2 U1U1 U ghost cell UΩ1UΩ1

41 Immersed Boundary Method Boundary Reconstruction Inverse distance weighing is an interpolation method developed for scattered data (Franke 1982)

42 Immersed Boundary Method Boundary Reconstruction Inverse Distance Weighting is used for the interpolation which determines the forcing applied at the ghost node to enforce the Dirichlet boundary condition

43 Immersed Boundary Method Boundary Reconstruction Inverse Distance Weighting preserves local maximum and minimum values. For Neumann boundary conditions, the probe length must be extended, so that the ‘image’ point is surrounded by neighbors.

44 Verification with Flow Over 3D Hill  Geostrophic pressure gradient forcing  No-slip boundary condition  Zero flux condition on temperature  Run to steady state

45 Verification Geostrophic Flow over a 3D Hill Differences are larger for inverse distance weighing than for trilinear interpolation, however both methods produce accurate results. Inverse distance weighting has the added advantages of being easier to implement and using a flexible interpolation stencil.

46 Verification Geostrophic Flow over a 3D Hill Changing the vertical grid in WRF produces much larger differences than those seen between WRF and IBM-WRF

47 Joint Urban 2003 Oklahoma City Terrain

48 Joint Urban 2003 Oklahoma City Nested Domain Mesoscale models are usually run in a nested mode. Here the mesoscale domain is nested down to an urban domain,

49 Joint Urban 2003 Oklahoma City One-way Nested Domain One-way nesting is used to run the Oklahoma City domain within a channel flow simulation Parent Domain Nested Domain

50 Joint Urban 2003 Oklahoma City Set-Up and Parent Domain Flow IOP 3 Outer Domain: ΔX, ΔY = 6 m and ΔZ is stretched form 1 to 3 m Inner Domain: ΔX, ΔY = 2 m and uses the same ΔZ Δt = 1/20 s on the outer domain, and 1/60 s on the inner domain Domains are run in concurrent mode No atmospheric physics Static Smagorinsky closure

51 Joint Urban 2003 Oklahoma City Instantaneous Velocity Field IBM-WRF (LES) FEM3MP (RANS)

52 Joint Urban 2003 Oklahoma City Verification with Observations IBM-WRF FEM3MP

53 Joint Urban 2003 Oklahoma City Verification with Observations FACx = Predictions within a factor of X FB = Fractional bias MG = Geometric mean bias NMSE = Normalized mean square error SAA = Scaled average angle

54 Joint Urban 2003 Oklahoma City Verification with Observations IBM-WRF FEM3MP

55 Joint Urban 2003 Oklahoma City Verification with Observations FACx = Predictions within a factor of X FB = Fractional bias MG = Geometric mean bias NMSE = Normalized mean square error

56 Summary  An immersed boundary method was developed in WRF that eliminates numerical errors caused by terrain- following coordinates  Errors arising from terrain-following coordinates were quantified  Two different interpolation cores were developed for use in the IBM, each with different strengths  The IBM has been verified for use in both 2D and 3D terrain through canonical cases  JU2003 was used for verification for real urban terrain  Atmospheric physics parameterizations have been coupled to the IBM to provide surface fluxes of heat and moisture

57 Immersed Boundary Method Nearest Neighbor Algorithm  A) Numerical instabilities in previous IBMs are avoided by choosing the nearest neighbors of an image point (instead of the ghost point)  B & C) By choosing boundary points (and not ghost points) as nearest neighbors the solution for the ghost point is independent. Iterative procedures used in previous IBMs are not necessary.  D) With isobaric coordinates this point often moves between the fluid and solid domain. Flexibility is added to the algorithm, so that a fluid point in close proximity to the boundary can be a ghost point.


Download ppt "This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344."

Similar presentations


Ads by Google