Version 1.4, Jan. 2013Triangles 1/27WW Winter School 2013 Running WWATCH on triangular meshes Fabrice Ardhuin The friends of WAVEWATCH III Team Marine.

Slides:



Advertisements
Similar presentations
Programming for Beginners
Advertisements

Feb. 17, 2011 Midterm overview Real life examples of built chips
Intro to modeling April Part of the course: Introduction to biological modeling 1.Intro to modeling 2.Intro to biological modeling (Floor) 3.Modeling.
Chapter 1 An Overview of Computers and Programming Languages.
Running the model, single grid version
Operational Forecasting Wave Models. WaveWatch III (Tolman 1997, 1999a) Model description: – Third generation wave model developed at NOAA/NCEP. – Solves.
Version 1.1, Jan. 2013Obstructions 1/26WW Winter School 2013 Developing Obstruction grids Arun Chawla The WAVEWATCH III Team + friends Marine Modeling.
Alternate Software Development Methodologies
Fluidyn FLOWCOAST FLOOIL 3D Fluid Dynamics Model to Simulate Oil slick movement in coastal waters or rivers FLOOIL.
Version 1.2, Feb. 2013Quasi-stationary WW3 1/15WW Winter School 2013 Quasi-stationary WAVEWATCH III André van der Westhuysen The WAVEWATCH III Team + friends.
1 Internal Seminar, November 14 th Effects of non conformal mesh on LES S. Rolfo The University of Manchester, M60 1QD, UK School of Mechanical,
* Finally, along the lines of predicting system behavior, researchers may want to know what conditions will lead to an optimal outcome of some property.
Iterative closest point algorithms
Interactive Animation of Structured Deformable Objects Mathieu Desbrun Peter Schroder Alan Barr.
Individuals and interactions
Mesh refinement methods in ROMS Laurent Debreu INRIA, Grenoble, France In collaboration with Patrick Marchesiello and Pierrick Penven (IRD, Brest, France)
Parallel Mesh Refinement with Optimal Load Balancing Jean-Francois Remacle, Joseph E. Flaherty and Mark. S. Shephard Scientific Computation Research Center.
Lecture 4: Computer Memory
Consortium Meeting June 3, Thanks Mike! Hit Rates.
Geothermal Application 1 Summer School Heat extraction from a sloped sandstone aquifer Vertical cross section of the model domain.
Version 1.3, Feb. 2013Parallel implementation 1/28WW Winter School 2013 Parallel implementation Hendrik Tolman The WAVEWATCH III Team + friends Marine.
Numerical Grid Computations with the OPeNDAP Back End Server (BES)
Presented by Brian Griffin On behalf of Manu Goel Mohit Goel Nov 12 th, 2014 Building a dynamic GUI, configurable at runtime by backend tool.
A Circulation Model to Investigate the Movement of Wastes from an Open Ocean Aquaculture Site David W. Fredriksson U. S. Naval Academy NOAA Research -
Advanced Digital Circuits ECET 146 Week 3 Professor Iskandar Hack ET 221B,
1 What NOT to do I get sooooo Frustrated! Marking the SAME wrong answer hundreds of times! I will give a list of mistakes which I particularly hate marking.
An Assimilating Tidal Model for the Bering Sea Mike Foreman, Josef Cherniawsky, Patrick Cummins Institute of Ocean Sciences, Sidney BC, Canada Outline:
Extratropical Storm-Induced Coastal Inundation: Scituate, MA Robert C. Beardsley 1, Changsheng Chen 2, Qichun Xu 2, Jianhua Qi 2, Huichan Lin 2 2 School.
Version 1.2, Jan. 2013Grid generation 1/32WW Winter School 2013 Automated Grid Generation for WAVEWATCH III Arun Chawla The WAVEWATCH III Team + friends.
Version 1.3, Feb. 2013Time stepping 1/20WW Winter School 2013 Time stepping Hendrik Tolman The WAVEWATCH III Team + friends Marine Modeling and Analysis.
RDFS Rapid Deployment Forecast System Visit at: Registration required.
Version 1.2, Feb. 2013Modular structure 1/22WW Winter School 2013 Modular structure of WAVEWATCH III and general features Arun Chawla The WAVEWATCH III.
Chapter 3 Digital Representation of Geographic Data.
DigitalTerrainModelling: 1 Digital Terrain Model also known as –digital ground model (DGM) & –digital height model (DHM) a method of representing the.
Research and Development Division – Oceanography Group Implementing tides and self-attraction and loading effects in ECCO estimates Rui M. Ponte Atmospheric.
SURA Super-Regional Testbed on Coastal Inundation – Extra-tropical Storm Harry V. Wang, Yi-cheng Teng, Yanqiu Meng and Derek Loftis Virginia Institute.
SWARP: WP2, wave modelling
Touchstone Automation’s DART ™ (Data Analysis and Reporting Tool)
The european ITM Task Force data structure F. Imbeaux.
Discontinuous Galerkin Methods for Solving Euler Equations Andrey Andreyev Advisor: James Baeder Mid.
Soil moisture generation at ECMWF Gisela Seuffert and Pedro Viterbo European Centre for Medium Range Weather Forecasts ELDAS Interim Data Co-ordination.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
This document gives one example of how one might be able to “fix” a meteorological file, if one finds that there may be problems with the file. There are.
- Laboratoire d'InfoRmatique en Image et Systèmes d'information
NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005.
Project 2: Classification Using Genetic Programming Kim, MinHyeok Biointelligence laboratory Artificial.
1 Multi-Level Indexing and B-Trees. 2 Statement of the Problem When indexes grow too large they have to be stored on secondary storage. However, there.
Lecture 21 MA471 Fall 03. Recall Jacobi Smoothing We recall that the relaxed Jacobi scheme: Smooths out the highest frequency modes fastest.
Final Project Topics Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Welcome to the PRECIS training workshop
The Hashemite University Computer Engineering Department
CSE554Contouring IISlide 1 CSE 554 Lecture 5: Contouring (faster) Fall 2015.
CSE554Contouring IISlide 1 CSE 554 Lecture 3: Contouring II Fall 2011.
CSE554Contouring IISlide 1 CSE 554 Lecture 5: Contouring (faster) Fall 2013.
Version Control and SVN ECE 297. Why Do We Need Version Control?
Status of BDSIM Simulation L. Nevay, S. Boogert, H. Garcia-Morales, S. Gibson, R. Kwee-Hinzmann, J. Snuverink Royal Holloway, University of London 17 th.
Slide 1 NEMOVAR-LEFE Workshop 22/ Slide 1 Current status of NEMOVAR Kristian Mogensen.
Variational data assimilation for morphodynamic model parameter estimation Department of Mathematics, University of Reading: Polly Smith *, Sarah Dance,
1 Ullman et al. : Database System Principles Notes 5: Hashing and More.
AO-FVCOM Development: A System Nested with Global Ocean Models Changsheng Chen University of Massachusetts School of Marine Science, USA
Text2PTO: Modernizing Patent Application Filing A Proposal for Submitting Text Applications to the USPTO.
Complete Energetic Analysis of Tidal Power Extraction Elizabeth Brasseale February 17, 2016 Masters Defense Advised by Mitsuhiro Kawase.
The LHCb Calorimeter Triggers LAL Orsay and INFN Bologna.
Northwest Modeling Consortium
CSE 554 Lecture 5: Contouring (faster)
Subject Name: File Structures
Theory of nonlinear dynamic systems Practice 7
Kratos 3D Structural Analysis Tutorial
Procrustes Shape Analysis Verification Tool
Coding Concepts (Basics)
Presentation transcript:

Version 1.4, Jan. 2013Triangles 1/27WW Winter School 2013 Running WWATCH on triangular meshes Fabrice Ardhuin The friends of WAVEWATCH III Team Marine Modeling and Analysis Branch NOAA / NWS / NCEP / EMC

Version 1.4, Jan. 2013Triangles 2/27WW Winter School 2013 Outline  Covered in this lecture: Why triangles? Grid structure & running ww3_grid Time integration & grid optimization Numerical schemes: spatial advection Post-processing Triangles + squares in 2-way nested runs What is not covered: Hands-on tutorial on grid generation for this : search for “tutorial” on Ifremer's wiki (using Polymesh) Next course at UMD or at Ifremer!

Version 1.4, Jan. 2013Triangles 3/27WW Winter School 2013 Background material The basic numerics story is summarized in Aron Roland's Ph.D. Thesis (T. U. Darmstadt 2008). Code identical to WWM See also Roland (2012, ECMWF workshop proceedings) One paper with specific numerics (for coastal reflection) Ardhuin & Roland (JGR 2012) Some other papers with just application Ardhuin & al. (JPO 2009: Stokes drift; JPO 2012: wave-current) All these are at And you can find forecasts and hindcasts there (just google IOWAGA)

Version 1.4, Jan. 2013Triangles 4/27WW Winter School 2013 Why triangles  Minimizing number of nodes … 1) Because we really need high resolution in some places 2) Because we want to use crazy expensive physics And better shoreline orientation From Roland et al. (JGR 2012) Extreme case: only 900 nodes, to use exact non-linear interactions (Ardhuin et al. JPO 2007)

Version 1.4, Jan. 2013Triangles 5/27WW Winter School 2013 Why triangles  There are other alternatives 1) Nesting regular grids 2) Curviliear grids 3) Quad-trees or “SMC” grids 4) Hexagons … It is a matter of taste (and practicality and CPU time)… but I do not know how to help you with those. So let's go back to the simplest grid element: a triangle

Version 1.4, Jan. 2013Triangles 6/27WW Winter School 2013 The grid structure  Basic triangle stuff  Basic numerical solution techniques:

Version 1.4, Jan. 2013Triangles 7/27WW Winter School 2013 The grid structure  The input file: built on “Gmsh” format 1) Nodes 2) Elements - Active boudary points (element type 15) - Triangles (element type 2) The input file was kept to a minimum, we did not include further info: neighbour lists... That extra info is recomputed when running ww3_grid and stored in mod_def.ww3 … which can take minutes with more than 100K nodes ! Internal storage in WWATCH is unchanged, we just have NY = 1 This carries into output files from ww3_outf & ww3_ounf

Version 1.4, Jan. 2013Triangles 8/27WW Winter School 2013 The grid structure  Running ww3_grid for triangles Only a few things in ww3_grid.inp are different from other grids: 1) You have to tell ww3_grid that your grid is a triangle mesh: $ Define grid $ 'UNST' T F ! NB: T T for a global grid... never tried yet! 2) Define the depth threshold and scale factor + mesh file name '(20f10.2)' 'NAME' 'hawaii_v5.msh' That's it! Nothing else NB: no need to change the switches …

Version 1.4, Jan. 2013Triangles 9/27WW Winter School 2013 The grid structure  Defining list of input boundary points OK, but listing the active input points (MAPSTA=2) is very cludgy! You can do it … but you can also tell ww3_grid to figure it out. Otherwise, just add these two namelist parameters near the top of ww3_grid.inp &UG UGOBCAUTO = T, UGOBCDEPTH = -20. ! or any other depth This means that ww3_grid will turn boundary points into active boundary points if the local depth (before water level added) is more than 20 m (yes, z is positive up in ww3_grid.inp )

Version 1.4, Jan. 2013Triangles 10/27WW Winter School 2013 Time integration and grid optimization  Time integration Because it is not so simple to define the proper advection time step, in the case of 'UNST' grid, the time step is not set to the value defined in ww3_grid.inp but instead it is dynamically adjusted (for explicit schemes). This time step will be different for each spectral component and will vary with current speed and water level. So if your grid has just one very flat or very tiny triangle this time step could well be 0.1 s (instead of 10 or 20 s) and the run grinds to a halt! So how do I know about it? Option 1) check the CFL numbers in the model output (not so easy) Option 2) – my choice - Run a version of the code compiled with the “T” switch (for test output). The screen output (or, in the future, some file fort.994) will list the “bad guys”, the nodes that cause the time step to be so small.

Version 1.4, Jan. 2013Triangles 11/27WW Winter School 2013 Time integration and grid optimization  Test output to find the bad guys This test output comes from w3profsmd.ftn

Version 1.4, Jan. 2013Triangles 12/27WW Winter School 2013 Time integration and grid optimization  Test output to find the bad guys This test output comes from w3profsmd.ftn I know what you think … this ought to be easier. This is why Aron Roland is trying to get the ww3_shel interacting with Polymesh via a GUI

Version 1.4, Jan. 2013Triangles 13/27WW Winter School 2013 Numerical schemes  General principles :  Contour Residual Distribution Advection equation : Discrete form : Update of spectrum = sum on dual cell

Version 1.4, Jan. 2013Triangles 14/27WW Winter School 2013 Numerical schemes  4 schemes implemented : 1) « Narrow sencil » scheme (N) : EXPFSN (Csik et al. 2002, Roland 2008), CPU cost of full model : 12 2) « Positive Streamline Invariant » EXPFSPSI (Abgrall 2001) CPU cost of full model :15 3) « Flux Corrected Transport » : EXPFSFCT (Csik et al. 2002, Roland 2008), CPU cost of full model : 29 (Lax-Wendroff kind of scheme) 4) Implicit N scheme : IMPFSIMP Higher order = more expensive and less numerical diffusion

Version 1.4, Jan. 2013Triangles 15/27WW Winter School 2013 Numerical schemes Higher order = more expensive and less numerical diffusion N PSI FCT

Version 1.4, Jan. 2013Triangles 16/27WW Winter School 2013 Numerical schemes Higher order = more expensive and less numerical diffusion N PSI FCT

Version 1.4, Jan. 2013Triangles 17/27WW Winter School 2013 Numerical schemes Higher order = more expensive and less numerical diffusion PSI N

Version 1.4, Jan. 2013Triangles 18/27WW Winter School 2013 Example applications  with currents & water levels Ardhuin & al. (2012) : Important code change : « refraction filter » on total refraction (now PR3 only) In the pipeline : - use of tidal constituents (saves disk space!!) : OK in tide branch

Version 1.4, Jan. 2013Triangles 19/27WW Winter School 2013 Example applications  with currents & water levels Ardhuin & al. (2012) : Important code change : « refraction filter » on total refraction (put in March 2011, v. 4.04, now PR3 only) In the pipeline : - use of tidal constituents (saves disk space!!) : OK in tide branch

Version 1.4, Jan. 2013Triangles 20/27WW Winter School 2013 Example applications  Coastal reflection : Hawaii grid used in tutorial Ardhuin & Roland (JGR 2012) : Shoreline orientation is easier to define : reflection AT shoreline nodes Different with regular grid : shoreline BETWEEN nodes

Version 1.4, Jan. 2013Triangles 21/27WW Winter School 2013 Example applications  Coastal reflection : Hawaii grid used in tutorial validation at Waimea buoy 51201

Version 1.4, Jan. 2013Triangles 22/27WW Winter School 2013 Example applications  Hawaii grid used in tutorial Boundary conditions from Ifremer's hindcast

Version 1.4, Jan. 2013Triangles 23/27WW Winter School 2013 Example applications  Hawaii grid used in tutorial

Version 1.4, Jan. 2013Triangles 24/27WW Winter School 2013 Summary  Advection schemes in WWATCH taken straight from WWM II → several validation and comparison study → 2 year of routine forecasts → 20 year hindcast for test area, now expanding to full France 4 different schemes to chose from. Personally the N scheme works great. If you are a daredevil, maybe the IMP is for you