SWAN model applications

Slides:



Advertisements
Similar presentations
C Language.
Advertisements

INWAVE: THE INFRAGRAVITY WAVE DRIVER OF THE COAWST SYSTEM
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.
Fluidyn FLOWCOAST FLOOIL 3D Fluid Dynamics Model to Simulate Oil slick movement in coastal waters or rivers FLOOIL.
Research Lead  The University of North Carolina at Chapel Hill CHC-R 5 th Annual Meeting January 31-February 1,
To Couple or Not To Couple John Warner, USGS. Overview of some recent advancements to ROMS –sediment transport components –wave/current interactions –model.
The main tools and functions of the system can be accessed via this side bar Allometric equations editor can be accessed under utilities, and user.
SWAN User's manual
Review of the NCEP production Suite: Recent Changes and Plans
This is the footer Running WRF on HECToR Ralph Burton, NCAS (Leeds) Alan Gadian, NCAS (Leeds) With thanks to Paul Connolly, Hector.
Version 1.3, Feb. 2013Time stepping 1/20WW Winter School 2013 Time stepping Hendrik Tolman The WAVEWATCH III Team + friends Marine Modeling and Analysis.
3D multi-fluid model Erika Harnett University of Washington.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
The H 2 O molecule: converging the size of the simulation box Objectives - study the convergence of the properties with the size of the unit cell.
Lesson 2 How To Create a MOHID Project 19 Março 2013
Assimilation of HF Radar Data into Coastal Wave Models NERC-funded PhD work also supervised by Clive W Anderson (University of Sheffield) Judith Wolf (Proudman.
National Center for Computational Hydroscience and Engineering The University of Mississippi Wave Model of CCHE2D-Coast For Model Training Course Yan Ding,
Chapter 7 File I/O 1. File, Record & Field 2 The file is just a chunk of disk space set aside for data and given a name. The computer has no idea what.
SWAN cx, cy = propagation velocities (x- and y- directions)  = relative frequency  = wave direction S = source/sink term for: - wind-wave generation.
MS 698: 2014 Implementing a Hydrodynamic Model - Part 2 Julia Moriarty 14 February 2014.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
TA SURVEY Have the TA write their name on the board Fill out the survey at: The TA should walk out 5 minutes.
_______________________________________________________________CMAQ Libraries and Utilities ___________________________________________________Community.
Files Tutor: You will need ….
An Overview of ROMS Code Kate Hedstrom, ARSC April 2007.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are used in programs so that values can be represented with.
What is Automatic mode? In Manual mode all commands and required data are entered by the user. These commands, data and main results are copied to the.
7. Electromagnetic Waves 7A. Plane Waves Consider Maxwell’s Equations with no sources We are going to search for waves of the form To make things as general.
Installing Windows 7 Lesson 2.
MULTI-STEPPING AND RESTARTING
The Little man computer
Development Environment
Multi-Axis Tabular Loads in ANSYS Workbench
Memory Management.
VAB™ for INFINITY Tutorial
Processes and threads.
SECTION 4 WASHING MACHINE.
Content Programming Overview The JVM A brief look at Structure
Introduction to Python
Importance of high-resolution modeling for storm surge, hurricane waves, coastal water levels, and currents in Puerto Rico and the U.S. Virgin Islands.
Status of the COSMO-Software and Documentation
CMIP5 Questionnaire Roadmap – beta
System Design Ashima Wadhwa.
Topics Introduction to Repetition Structures
Usecase Dynamo Moderate Requirements:
ENEE150 Discussion 02 Section 0101 Adam Wang.
Doing a Bond Screening Login to the computer Launch Microsoft Excel
Relates to machining and turning centers
SWAN model applications
What is Bash Shell Scripting?
Writing a WDSS-II Application using w2algcreator
Phil Tayco Slide version 1.0 Created Oct 2, 2017
Subject Name:Sysytem Software Subject Code: 10SCS52
하구및 연안생태Coastal management
This is where R scripts will load
Introduction to TouchDevelop
COAWST Applications: WRF only
Examples Example Problems, their Algorithms, and their C Source Code.
Natalie Laudier Operational Oceanography 13Feb2009
Introduction to the WASP Interface
This is where R scripts will load
University of Warith AL-Anbiya’a
Running a Java Program using Blue Jay.
Incremental Programming
WRF Application in COAWST
CSC/FAR 020, Computer Graphics, November 11, 2009
The COAWST Toolbox COAWST Workshop 2019 NCSU ONR.
SWAN model coupling Projects/Sandy.
Presentation transcript:

SWAN model applications Projects/Sandy

Outline SWAN model application overview How to create a SWAN only application (with refinement) How to create a SWAN coupled application

SWAN N = wave action density (energy density / relative frequency) cx, cy = propagation velocities (x- and y- directions) s = relative frequency = wave direction S = source/sink term for: - wind-wave generation - wave breaking - bottom dissipation - nonlinear wave-wave interactions SWAN accounts for shoaling, diffraction, partial transmission, and reflection. Booij, N., R.C. Ris and L.H. Holthuijsen, 1999, A third-generation wave model for coastal regions, Part I, Model description and validation, J.Geoph.Research, 104, C4, 7649-7666. Booij, N., R.C. Ris and L.H. Holthuijsen, 1999, A third-generation wave model for coastal regions, Part II, Model description and validation, Booij, N., Haagsma, IJ.G., Holthuijsen, L.H., Kieftenburg, A.T.M.M., Ris, R.C., van der Westhuysen, A.J., and Zijlema, M. (2004). SWAN Cycle III version 40.41 User Manual, Delft University of Technology.

SWAN User's manual http://swanmodel.sourceforge.net/online_doc/swanuse/swanuse.html

SWAN grid points ROMS grid For the SWAN grid, we set the SWAN points on the ROMS rho points. eta xi Borrowed from Marcel’s presentation

SWAN grid tiling SWAN ROMS SWAN tiles the grid by dividing the longest side into multiple sections. Don’t have any tiles that are all land mask. This may not work with the way we require the entire SWAN grid to be accounted for in the exchanges.

SWAN is driven by a series of 'KEYWORDS' in the input file. To run SWAN - Input file SWAN is driven by a series of 'KEYWORDS' in the input file. 'PROJECT' 'MODE' 'SET' 'CGRID' 'READGRID' etc Projects/Inlet_Test/Swanonly/swan_inlet_test.in

Keywords: Start-up

Keywords: model description

Keywords: model description

Keywords: Output and Run

How to create a SWAN only application 1) grids 2) wind forcing 3) boundary conditions 4) cppdefs.h 5) coawst.bash 6) INPUT 7) run it – to create init files 8) INPUT 9) run it – to run for multiday These steps are in the Users Manual Section 10

1) Grids There are several ways to make a SWAN computational grid. you can use the CGRID Regular command in the SWAN INPUT file. This is for a regular grid, even spacings, perhaps on an angle. or 2) If you already have a ROMS grid then run COAWST/Tools/mfiles/mtools/ roms2swan(lon_rho(or x), lat_rho (or y), depth, mask) This creates 2 files: grid_coord.grd (goes with READGRID COORDS) swan_bathy.bot (goes with READINP BOTTOM)

SWAN Grids for Sandy

2) wind forcing Can use Tools\mfiles\mtools\ncei_2swan.m

2) wind forcing Enter values for steps 1 -4

2) wind forcing Usually pick a ‘user’ grid so the file can be used by multiple swan grids.

Create SWAN wind forcing for Sandy

3) boundary conditions: 2 choices If you use Tools\mfiles\swan_forc\ww3_swan_input.m, you have 2 choices: 1) TPAR files: These are parametric files of Hsig, Tp, Dir, Spr and SWAN recreates directional spectra. 2) Spec2d files: These contain wave energy as a function of direction and frequency (2d spectra). Generally the spec2d files have better information, but are a little more difficult to create. For both of these we use WaveWatchIII data. SWAN will also take 1D spectra, but we don’t have an m file for that. But sometimes that data is available from an ADCP or instrument.

3) boundary conditions Enter information for steps 1 - 4 Both methods are driven by ww3_swan_input.m Enter information for steps 1 - 4

3) boundary conditions Step 5) Here is where you select to create TPAR (field output) or Spec2D (partition) files. The next step is to get the files that are needed.

3) boundary conditions - TPAR Go here and get the README : ftp://polar.ncep.noaa.gov/pub/history/waves/ If you want to make TPAR files then we want to use the Field Data Output.

3) boundary conditions - TPAR Go here and get the data: Select multi_1, YYYYMM, gribs ftp://polar.ncep.noaa.gov/pub/history/waves/multi_1/201210/gribs/ Download the .grb2 data files that you need. *.dp.* *.hs.* *.tp.* These were ‘at’ = Atlantic, for H Sandy 2012. Yours will be different.

3) boundary conditions - TPAR Run the ww3_swan_input.m file This will produce several TPAR files. Example of a TPAR file Date Hsig Tp Dir Spr

3) boundary conditions - TPAR When you run the ww3_swan_input.m file It will also produce some text to enter to the INPUT file BOUND_spec_command You need to copy this to the INPUT file (we will show that in a few steps)

3) boundary conditions – Spec2D Go here and get the README : ftp://polar.ncep.noaa.gov/pub/history/waves/ If you want to make 2DSpec Files then we want to use the Partitioned Data Output.

3) boundary conditions – Spec2D Reconstruct the wave spectra based on the approach here: Kumar, N., D.L. Cahl, S.C. Crosby, and G. Voulgaris, 2017: Bulk versus Spectral Wave Parameters: Implications on Stokes Drift Estimates, Regional Wave Modeling, and HF Radars Applications. J. Phys. Oceanogr., 47, 1413–1431, https://doi.org/10.1175/JPO-D-16-0203.1 For example, Data at one spatial location and for one instant in time is saved as: Partition 1 Partition 2 Partition 3 Total

3) boundary conditions – Spec2D Go here and get the data: Select multi_1, YYYYMM, partitions ftp://polar.ncep.noaa.gov/pub/history/waves/multi_1/201210/gribs/ Download the tarred ASCII file. It is only 2.1GB More recent files are in netcdf. if (use_partition_data) % Enter name of wave watch 3 partition file partfile='multi_1.partition.glo_30m.201210'; end

3) boundary conditions - TPAR Run the ww3_swan_input.m file This will produce several 2DSpec files WW3part_01.spc2d Example of a 2D Sepc file Scroll down and see the Dirs. File contains time dependent 2D spectra

3) boundary conditions - TPAR When you run the ww3_swan_input.m file It will also produce some text to enter to the INPUT file BOUND_spec_command You need to copy this to the INPUT file (we will show that in a few steps)

4) Projects/sandy.h Just define SWAN model and for this application we have a nested grid.

5) coawst.bash Set application, project dir, and compiler options.

6) Input file - control commands Proejcts/Sandy/swan_sandy.in PROJECT - 4 text lines MODE NONSTAT TWOD SET - DEPMIN to be same as Dcrit - INRHOG 1 !!!! - NAUTICAL !!!! COORDINATES - SPHERICAL or CARTESIAN NSGRIDS - required Next slides

NSGRIDS – COAWST specific We modified the SWAN code so that all the nested grids run concurrently (at the same time). NSGRIDS tells us how many SWAN grids there are. You need to have a separate INPUT file for each grid. Example of Sandy test case Showing Hsig_20121029_120000 For both parent and child grids.

Input file – CGRID and READGRID CGRID and READGRID: Defines the computational grid in x, y, freq, and theta space.

Input file – INPGRID and READINP INPGRID and READINP: Input grid for variables of bottom, waterlevel, currents, winds, etc. This is for the BOTTOM (bathymetry)

Input file - INPgrid INPGRID and READINP: Input grid for other variables of [bottom], waterlevel, currents, winds, etc. These INPGRID commands create a varying grid for that field in SWAN. Since we are not reading in any values with a READINP command, and not coupling to ROMS, they will not be used.

Input file – INPgrid for WIND INPGRID and READINP: Input grid for other variables of [bottom], waterlevel, currents, winds, etc. This WIND INPGRID command creates a wind grid for SWAN. The READINP command reads wind from a file. We showed a few slides ago how to get these values.

Input file - Boundary inputs BOUND SHAPE BOUND SIDE or BOUND SEGMENT Constant TPAR 2DSpec You only need one type. Pick one, or nothing.

Input file - Init files Can start SWAN with data from an init file. This file can be created from a STATIONARY run. We are going to create the init files, so just set it as INIT.

Input file - Physics

Input file - Output and run - Ouputs - Restart : COAWST specific command to create restarts during run. - COMPUTE – do a stationary run now to get init files. HOTFILE – output files at end of run to use as init files. STOP – we are done.

Input file for refined grid Need to create the swan_ref3 input files also. This is basically the same as the parent grid but: Different grid size NO Boundary files. - Different names for Output files.

7) run coawst Run it by pointing to the 2 SWAN input files: mpirun -np X ./coawstM Projects/Inlet_test/Swanonly/swan_inlet_test.in Projects/Inlet_test/Swanonly/swan_inlet_test_ref5.in This created the SWAN init files.

8) INPUT files for multiday simulation Point to new INIT file Change run times Also for refined grid input file.

9) run coawst Run it by pointing to the 2 SWAN input files: mpirun -np X ./coawstM Projects/Inlet_test/Swanonly/swan_inlet_test.in Projects/Inlet_test/Swanonly/swan_inlet_test_ref5.in This created the multiday SWAN ouput.