Waves
Activate the Wave Module
Section titled “Activate the Wave Module”The Graphical User Interface (GUI) for the Wave module in EE can be activated from the EFDC+ Modules, as shown in Figure 1.

Figure 1. Active Wave Modules.
After turning on the wave module in the Model Control GUI, an LMC on the waves menu will show a report of the current wave settings as shown in Figure 2. There are two major options for waves:

Figure 2. Wave module.
Internal Wave Model
Section titled “Internal Wave Model”In general, the influence of wind on the flow velocity field is vital while studying hydrodynamics and sediment transport in lakes, estuary, and coastal areas. Wind effects not only induce current but also generate surface waves with wave height up to several meters. To calculate the total bed shear stress in such areas, the model must take the wave factor into account. The wave parameters such as wave height, wave direction, and wave period are calculated by the SMB (Sverdrup, Munk, and Bretschneider, see Zhen-Gang Ji, 2008) model. The wave direction is the same as the wind direction. This means that the effects of refraction, diffraction, and reflection are not taken into account in this internal wave model.
The internal wave model option doesn't require an external wave to simulate wind-generated wave effects on bed shear stress and wave-induced currents (Dang Huu Chung and P.M.Craig, 2009). The fetch for each cell by wind sector may be viewed in the 2DH View
The Wave Parameter & Options frame allows the user to specify Ks, the Nikuradse sand roughness value as shown in Figure 1. This can be estimated as Ks = 2.5 x d50. The Nikuradse roughness is not the same as the hydrodynamic roughness (i.e., bottom roughness, Z0) used by EFDC to solve the hydrodynamic equations. The Nikuradse roughness is a grain roughness and represents more of a local scale phenomenon.
For the cases of ISWAVE=3 and ISWAVE=4, available only in EFDC+, the wind time series provided in the WSER.INP file is used to compute the instantaneous values of wave parameters with fetch calculated for each cell in sixteen directions. The effect of shoreline and EFDC internal masks are included in the fetch calculations. The resulting wave parameters are then used to calculate total bed shear stress, with bed shear stress linked to the current generated shear stress via the Grant Madsen approach.
From the release of EE5, there has been the ability to internally generate wind-induced waves for bed shears only (ISWAVE=3). This can also include the radiation stresses for the whole water column (ISWAVE=4). These options allow the simulation of wave effects and re-suspension of sediments inside EE.

Figure 1 Waves Module: Internal Wave Model.
As default, the number of wave cells is the same as the model active cells. However, the user can define the number of wave cells by using the Use Subset of Computational Grid checkbox option. When the option is checked, the user then needs to browse the polygon file. The wave cells are defined within the polygon. To allow EE to properly update the Number of Wave Cells, click OK button to exit the Wave form, then LMC to reopen the Waves module, then the Number of Wave Cells is updated on the Wave form as shown in Figure 2.

Figure 2 Waves Module: Internal Wave Model with using subset polygon.
Some parameters setting inside the Wave Parameters & Options as Rotational Radial Stress, Irrotational Radial Stress and Moving Bed Effectactivated options can be used by checking on the option checkboxes.
External Wave Model
Section titled “External Wave Model”This external wave model option allows the user to import wave parameter fields from other common wave models. There are two options that can be selected from the drop-down list for the External Wave Model: SWAN Model and Other Model as shown in Figure 1 and Figure 2.

Figure 1. External Wave Model: SWAN Model.

Figure 2. External Wave Model: Other Model.
External Wave Model: SWAN Model
When this option is selected, SWAN Model frame will appear with three options buttons including Generate Inputs Files, Run SWAN, Use Existing SWAN Results.
Generate Inputs Files: Click on this button to generate an input file for the SWAN model, the Create SWAN Input form pops up as shown in Figure 3.
Generate SWAN Input frame: There are several optional check-boxes
Time Options frame*:* Define the beginning day, end day, and time step for the SWAN model, this time period should be in the range of the EFDC Model running time.
SWAN Settings: Click on that button to show the SWAN settings as shown in Figure 4.
Boundary Conditions: If the Open Boundary Conditions check-box on the Generate SWAN Input frame is checked then the Boundary Conditions button is enabled, click on that button, form of SWAN Boundary Conditions appears as shown in Figure 5. There are three options to set Forcing Type from existing boundary conditions of the model as No wave (Figure 5), Constant (Figure 6), Time-Varying (Figure 7).
Export SWAN Input Directory: As default, the SWAN input file (swan_inp.swn) will be created and saved in the #analysis folder.

Figure 3. Create SWAN Model Input.

Figure 4. SWAN Input Parameters.

Figure 5. SWAN Boundary Conditions: No Wave.

Figure 6. SWAN Boundary Conditions: Constant.

Figure 7. SWAN Boundary Conditions: Time-Varying.
Run SWAN
After the SWAN input file has been created, the user now can run SWAN by clicking on Run SWAN button (Figure 1), the SWAN Run Options form pops up as shown in Figure 8.
SWAN Model Input: Click the Browse button to browse to the input file in the #analysis folder (swan_inp.swn)
SWAN Executable Path: Click the Browse button to browse to the executable file in SWAN folder of the EEMS installation folder.
Finally, click Run button in Figure 8 to run SWAN model. Figure 9 shows a running SWAN model window.

Figure 8. Run SWAN model.

Figure 9. SWAN model Running.
Use Existing SWAN Result
Click on that button, the Import SWAN Results form will appear as shown in Figure 10. The user must define the type of SWAN model (Steady or Unsteady Wave) from the drop-down list. In the Get SWAN Results frame, the user select For Same Grid option (if the SWAN model and EFDC model have the same grid of model domain) or For Locations option ( if the SWAN model and EFDC model have a different grid of model domain) then browse to wave time file (wavetime.inp) and SWAN output file (swan_grp.out). In case the For Locations option is selected, the user needs to location file (swan_loc.inp) as shown Figure 11. Finally, click OK button to come back the Wave form. Note that the user needs to save the model again then the wave.inp file for the current model will be created.

Figure 10. Import SWAN Results: For Same Grid.

Figure 11. Import SWAN Results: For Locations.
External Wave Model: Other Model
When this option is selected, Wave Forcing from Other Wave Model frame will appear with two options buttons including Import from Existing WAVE. INP and Manual Assign Wave Parameters.
Import from Existing WAVE.INP: EE imports an available WAVE.INP file from another project into the current project (Note: two projects have exactly the same grids). When clicking on this button, a message will be popped up as shown in Figure 12. Click Yes button to proceed.

Figure 12. Message confirmation to import WAVE.INP
The Import WAVE.INP file form will appear, select the wave.inp then click Open button as shown in Figure 13. After clicking Open button, it comes back to the Wave form. Note that the user needs to save the model again then the wave.inp file for the current model will be created.

Figure 13. Import WAVE.INP file.
Manually Assign Wave Parameters
This option is not advised to be used due to the longer time required to prepare the input data. When this option is selected, an Interpolate Classed Data form will appear as shown in Figure 14. In the Grid Options frame, select one of two options: All grid cells or Only grid cells inside polygon (when this option is selected, the Add File button in the Polygon Files frame below will be enabled). There are three options for Interpolation Options frame (Replacement, Max and Min values). In the Values to Set frame, select Constant if the user wants to set wave parameters in grid cells with constant values. Select From Scatter (XYZ) Data if the user has a wave data file ( the file has three columns, the two first columns are coordinates, the third column is wave parameter value). When this option is selected, the Add File of Data File frame will be enabled). Next, select wave parameter from the drop-down list of the Parameters. Finally, Click Apply Defined Condition button then OK button. Note that the user needs to save the model again to create the wave.inp file for the current model.

Figure 14. Interpolate Classed Data form.
Note that EFDC+ calculates the wave number using the equation: k = 2pi/wave_length. This means that if the wavelength at some cells in the wave.inp is zero, then the run will crash a “floating divide by zero” error.
The wavetime.inp contains a time series in days for the application of the wave just like a boundary condition. For each day in Julian time, information about wave parameters such as wave length and wave height is written in the wave.inp file. These values of the wave parameters are needed for every grid cell at every time introduced in the wavetime.inp file. To generate the wave parameters for use in the External Wave Model option in EEMS, there are different tools available, including:
- STWAVE (Steady State Spectral Wave Model)
- MIKE 21 SW
- WAVEWATCH III
- SWAN (Simulating Waves Nearshore)
If a user needs to write the script to determine the parameters, it is recommended that they SWAN directly from EEMS.
Wave Visualization
Section titled “Wave Visualization”2DH View
Section titled “2DH View”The wave parameters can be visualized and animated in 2DH View. These can be added to the 2DH View by clicking the Add button in the 2DH View’s Layer Control then select Primary Group: Wave Parameters and the Parameters are available including Wave Height, Wave Period, Wave Direction, Wave Length, Wave Vector, and Wave Cell as shown in Wave Visualization#Figure 1.
Figure 1. Wave Layer in 2DH View.
Time Series
Section titled “Time Series”The graphic of wave time series can be visualized by click the Time Series button or the icon
of the main toolbar. The Extract Time Series Data tab appears as shown in Wave Visualization#Figure 2. It is possible to plot the time series for a single cell or multiple cells. Firstly, defying the cells to plots is in the box under Selected Cells. Entering the L index, and then press the Enter key, the corresponding I and J indices are filled automatically. The parameter should be defined in the box, Primary Group: Wave Parameters. Add and remove the parameter can be adjusted by the left and right arrow button. The user may define the start and stop day for the time series in Time Series Start/Stop frame (note that the start and stop days should be within the model's start and end date). Clicking OK plots the selected graphs.

Figure 2. Extract Time Series Data.

Figure 3. Wave Height Time Series.
Longitudinal Profiles
Section titled “Longitudinal Profiles”The graphic of wave longitudinal profiles can be visualized by click the Longitudinal Profile button or the icon
of the main toolbar. Wave Visualization#Figure 4 show the Data Extraction for Longitudinal Profile form. This form is similar to the Data Extraction for 2DV View form. Firstly, it is necessary to define the profile using the drape file or I, J indices and then define the parameter to the plot. The parameter should be defined in the box, Primary Group: Wave Parameters . Add and remove the parameter can be adjusted by the left and right arrows. Once everything is ready, click OK to generate the plot. Wave Visualization#Figure 5 shows a longitudinal profile for wave height along with the profile I=56.

Figure 4. Data Extraction for Longitudinal Profile.
Figure 5. Longitudinal Profile.
Waves (EEMS10.2)
Section titled “Waves (EEMS10.2)”After turning on the wave module in the Model Control GUI, an LMC on the waves menu will show a report of the current wave settings as shown in Figure 1. There are two major options for waves: internal wind waves and external wind waves. Within each of these two options are several sub-options which are summarized here and explained in detail in the following sections:
- Internally Generate Windwaves – without Radiation Stress (ISWAVE=3 and available in EFDC+ only)
- Internally Generate Windwaves – with Radiation Stress (ISWAVE=4 and available in EFDC+ only)
- External Linkage – without Radiation Stress (ISWAVE=1, requires WAVEBL.INP and WV00N.INP, n=1, 2, 3, and uses a new format of WAVE.INP)
- External Linkage – with Radiation Stress (ISWAVE=2, requires the new format of WAVE.INP, the same input file as for ISWAVE=1)

Figure 1. Wave module report.
Internal Wave Model (EEMS10.2)
Section titled “Internal Wave Model (EEMS10.2)”In general, the influence of wind on the flow velocity field is vital while studying hydrodynamics and sediment transport in lakes, estuary, and coastal areas. Wind effects not only induce current but also generate surface waves with wave height up to several meters. To calculate the total bed shear stress in such areas, the model must take the wave factor into account. The wave parameters such as wave height, wave direction, and wave period are calculated by the SMB (Sverdrup, Munk, and Bretschneider, see Zhen-Gang Ji, 2008) model. The wave direction is the same as the wind direction. This means that the effects of refraction, diffraction, and reflection are not taken into account in this internal wave model.
The internal wave model option doesn't require an external wave to simulate wind-generated wave effects on bed shear stress and wave-induced currents (Dang Huu Chung and P.M.Craig, 2009). The fetch for each cell by wind sector may be viewed in the 2DH View
The Wave Parameter & Options frame allows the user to specify Ks, the Nikuradse sand roughness value as shown in Internal Wave Model (EEMS10.2)#Figure 1. This can be estimated as Ks = 2.5 x d50. The Nikuradse roughness is not the same as the hydrodynamic roughness (i.e., bottom roughness, Z0) used by EFDC to solve the hydrodynamic equations. The Nikuradse roughness is a grain roughness and represents more of a local scale phenomenon.
For the cases of ISWAVE=3 and ISWAVE=4, available only in EFDC+, the wind time series provided in the WSER.INP file is used to compute the instantaneous values of wave parameters with fetch calculated for each cell in sixteen directions. The effect of shoreline and EFDC internal masks are included in the fetch calculations. The resulting wave parameters are then used to calculate total bed shear stress, with bed shear stress linked to the current generated shear stress via the Grant Madsen approach.
From the release of EE5, there has been the ability to internally generate wind-induced waves for bed shears only (ISWAVE=3). This can also include the radiation stresses for the whole water column (ISWAVE=4). These options allow the simulation of wave effects and re-suspension of sediments inside EE.

Figure 1. Waves Module: Internal Wave Model.
By default, the number of wave cells is the same as the model active cells. However, the user can define the number of wave cells by using the Use Subset of Computational Grid checkbox option. When the option is checked, the user then needs to browse the polygon file. The wave cells are defined within the polygon. To allow EE to properly update the Number of Wave Cells, click OK button to exit the Wave form, then LMC to reopen the Waves module, then the Number of Wave Cells is updated on the Wave form as shown in Internal Wave Model (EEMS10.2)#Figure 2.

Figure 2. Waves Module: Internal Wave Model with using subset polygon.
Some parameters setting inside the Wave Parameters & Options are on/off switches. Such as Rotational Radial Stress and Irrotational Radial Stress, users can enter 1 to activate the calculation and 0 to de-activate. Moving Bed Effect calculation only takes action when users set to include radiation stress (ISWAVE = 2/4), input 2 to have the moving bed effect, and 0 not to include this effect.
External Wave Model (EEMS10.2)
Section titled “External Wave Model (EEMS10.2)”EE currently supports the use of SWAN as the external wave model. SWAN (Simulating Waves Nearshore) as a third-generation wave model is suitable for wind-generated surface gravity wave simulation in coastal, lakes, and estuaries. EE provides several options to ensure a smooth transition between EE and SWAN, users can either use EE to generate a new SWAN model and run it or import an existing SWAN model result.
The Steady Wave /Unsteady Wave option corresponds to the types of waves being imported into the EFDC model. The steady wave option means that the waves are not changing with time so the EE will not read the WAVETIME.INP file. The unsteady wave option does require the WAVETIME.INP input file. The setting in the frame reflects the way the user has imported the external waves.

Figure 1. Waves Module: External Wave.
SWAN Model
Generate Inputs: Click on this button to generate input file for the SWAN model, the Create SWAN Input form pops up as shown in External Wave Model (EEMS10.2)#Figure 2. There are several optional check-boxes in Generate SWAN Input
Time Options: Define begin day, end day, and time step for the SWAN model, this time period should be in the range of the EFDC Model running time.
SWAN Settings: Click on this button to show the SWAN settings as shown in External Wave Model (EEMS10.2)#Figure 3.
If the check-box Open Boundary Conditions checked, then the button Boundary Conditions button is enabled, click on that button, form of SWAN Boundary Conditions appears as shown in External Wave Model (EEMS10.2)#Figure 4. There are three options to set Forcing Type from existing boundary conditions of the model as No wave (External Wave Model (EEMS10.2)#Figure 4), Constant (External Wave Model (EEMS10.2)#Figure 5), Time Varying (External Wave Model (EEMS10.2)#Figure 6).
Export SWAN Input Directory: As default, the SWAN input file (swan_inp.swn) will be created and saved in the #analysis folder.

Figure 2. Create SWAN Model Input.

Figure 3. SWAN Input Parameters.

Figure 4. SWAN Boundary Conditions: No Wave.

Figure 5. SWAN Boundary Conditions: Constant.

Figure 6. SWAN Boundary Conditions: Time Varying.
Run SWAN
After the SWAN input file has been created, the user now can run SWAN by clicking on Run SWAN button (External Wave Model (EEMS10.2)#Figure 1), the SWAN Run Options form pops up as shown in External Wave Model (EEMS10.2)#Figure 7.
SWAN Model Input: Click the Browse button to browse to the input file in the #analysis folder (swan_inp.swn)
SWAN Executable Path: Click the Browse button to browse to the executable file in SWAN folder of the EEMS installation folder.
Finally, click Run button in External Wave Model (EEMS10.2)#Figure 7 to run SWAN model. External Wave Model (EEMS10.2)#Figure 8 shows a running SWAN model window.

Figure 7. Run SWAN model.

Figure 8. SWAN model Running.
Wave Forcing from an External Wave Model:
Use Existing WAVE.INP: If the user already has a WAVE.INP file and this file must be located in the model folder then the wave data is imported first time by checking the Use Existing WAVE.INP checkbox as shown in External Wave Model (EEMS10.2)#Figure 9.
Create WAVE.INP: The user can create wave.inp file by using this option. When this option is selected, three sub-options will appear as shown in External Wave Model (EEMS10.2)#Figure 10. They include Import from Existing WAVE.INP, Convert from SWAN results and Manually Assign Wave Parameters. These three buttons are described below:

Figure 9. Wave forcing from external wave model: Use Existing WAVE.INP

Figure 10. Wave forcing from external wave model: Create WAVE.INP
- Import from Existing WAVE.INP: EE imports an available WAVE.INP file from another project into the current project (Note: two projects have exactly the same grids). When clicking on this button, a message will be popped up as shown in External Wave Model (EEMS10.2)#Figure 11. Click Yes button to proceed with the process. The Import WAVE.INP file form will appear, select the wave.inp then click Open button as shown in External Wave Model (EEMS10.2)#Figure 12. After clicking Open button, it comes back to the Wave form. Note that the user needs to save the model again then the wave.inp file for the current model will be created.

Figure 11. Message confirmation to import WAVE.INP

Figure 12. Import WAVE.INP file.
- Convert from SWAN results: EE will create wave.inp file by converting from SWAN output. Selecting this option, the Import SWAN Results form will appear as shown in External Wave Model (EEMS10.2)#Figure 13. The user must define the type of SWAN model (Steady or Unsteady Wave) from the drop-down list. In the Get SWAN Results frame, the user selects For Same Grid option (if the SWAN model and EFDC model have the same grid of model domain) or For Locations option ( if the SWAN model and EFDC model have a different grid of model domain) then browse to wave time file (wavetime.inp) and SWAN output file (swan_grp.out). In case the For Locations option is selected, the user needs to browse to table file (swan_tbl.out) and location file (swan_loc.inp) as shown External Wave Model (EEMS10.2)#Figure 14. Finally, click OK button to come back the Wave form. Note that the user needs to save the model again then the wave.inp file for the current model will be created.

Figure 13. Import SWAN Results: For Same Grid.

Figure 14. Import SWAN Results: For Locations.
- Manually Assign Wave Parameters: This option is not advised to be used due to the longer time required to prepare the input data. When this option is selected, an Interpolate Classed Data form will appear as shown in External Wave Model (EEMS10.2)#Figure 15. In the Grid Options frame, select one of two options: All grid cells or Only grid cells inside polygon (when this option is selected, the Add File button in the Polygon Files frame below will be enabled). There are three options for Interpolation Options frame (Replacement, Max, and Min values). In the Values to Set frame, select Constant if the user wants to set wave parameters in grid cells with a constant value. Select From Scatter (XYZ) Data if the user has a wave data file ( the file has three columns, the two first columns are coordinates, the third column is wave parameter value). When this option is selected, the Add File of Data File frame will be enabled). Next, select wave parameter from the drop-down list of the Parameters. Finally, Click Apply Defined Condition button then OK button. Note that the user needs to save the model again to create the wave.inp file for the current model.

Figure 15. Interpolate Classed Data form.
Use SWAN Output: EE will use the SWAN output directly instead of creating wave.inp. When this option is selected, the Select SWAN Output button will appear as shown in External Wave Model (EEMS10.2)#Figure 16. Click this button, the Import SWAN Results form will be displayed as shown in External Wave Model (EEMS10.2)#Figure 13. Usage of options on this form is described above. After the configuration is completed, the EFDC.INP file will be updated. EFDC+ will then look for the appropriate files in the root level of the project directory.

Figure 16. Wave forcing from external wave model: Use SWAN Output.
Creating SWAN Model Output
Section titled “Creating SWAN Model Output”EE allows the user to build input files for SWAN and then run SWAN directly from within EE. Note that this is not a fully integrated dynamic coupling between SWAN and EFDC at this stage. Instead, EFDC will use the final SWAN output as input for the external wave model.
The steps to run SWAN from EE are as follows: First it is necessary to create a SWAN input file. This can be done from Model Control window, RMC on Wave sub-tab under Modules tab*| SWAN Model* frame | Generate Inputs as shown in Creating SWAN Model Output#Figure 1.
After selecting this option, the Export to SWAN file form is opened as shown in Creating SWAN Model Output#Figure 2.

Figure 1. External Waves: SWAN Model options.
The user should select which input data is required for their SWAN model, as shown in Create SWAN Model Output#Figure 2.
Figure 2. External Waves: Create SWAN Input Files.
If the user also intends to export the wind series for use in SWAN, the start and end times should be selected as well as the time step under Time Options frame for this data.
The SWAN Settings button provides further options for generating the SWAN inputs as shown in Figure 3. The SWAN User's Guide should be consulted for details on how to select these parameters as they can have important impacts on the model results (http://www.swan.tudelft.nl/ ).

Figure 3. External Waves: SWAN Settings.
EE also facilitates setting the offshore boundary conditions for SWAN with the Boundary Conditions button. Selecting this opens the form shown in Creating SWAN Model Output#Figure 4. Besides the local wind-generated waves which are computed in the model domain by providing wind data for each model grid cell and turning on wind growth in SWAN, the user can also take into account the influence of external waves (i.e., swells) acting on the model domain. EE detects the open boundary locations and lets the user edit each boundary condition for the SWAN model. There are three options for each boundary condition group:
- No Wave, i.e. no external wave actions are taken into account at the selected boundary group.
- Constant: constant wave parameters in time including waves wave height, wave period, wave direction, and directional spreading are provided for the selected boundary group.
- Time Varying: wave parameters for the selected boundary group are varying in time and are provided in files for at least two points lying on the boundary section. The distance indicates the location along the boundary of the data point with respect to the first grid cell (I1,J1) of the boundary group. The total length of the boundary is provided in the text box Length (m). The data file format is the TPAR file described in SWAN User’s Manual. Wave parameters at every grid cell along the boundary group will be interpolated by SWAN based on the given data files.

Figure 4. External Waves: SWAN Boundary Conditions.
The user should also ensure they have selected the correct path to generate the SWAN input files. If the path is incorrect, use the Browse button in the Export SWAN Input Directory frame (Creating SWAN Model Output#Figure 2) to navigate to the folder that you want to create the SWAN input files. Finally, select the OK button to create the SWAN input files.
Once the SWAN input files have been created the user should proceed to the Wave setting window by RMC on Wave sub-tab under the Modules tab of Model Control window. Whenever the External Wave Model option has been selected, the Run SWAN button is displayed. As explained earlier, this provides the option of running SWAN directly from within EE (though not at the same time as EFDC is running, i.e., it is not dynamically linked).
Selecting the Run SWAN button displays the form shown in Figure 5. If necessary, the user should browse the work path for the SWAN input files. They should then browse to the SWAN executable file. The SWAN exe is installed as part of the installation package for EE. SWAN is freeware under the GNU license and the executable and source code may be downloaded from the University of Technology, Delft http://www.swan.tudelft.nl/
The user should then select the Run button to run the SWAN model. After the SWAN model has finished running, the user should select the Create a New Data Set checkbox under Wave Forcing from an External Wave Model frame and use the Convert from SWAN Results option to import SWAN output into EE.

Figure 5. External Waves: Run SWAN internally from EE.