Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly defining the fields of mean wave parameters in shel.inp file (WW3) #371

Open
BilalYasirAlvi opened this issue Mar 3, 2025 · 1 comment

Comments

@BilalYasirAlvi
Copy link

Hello

I am having trouble in defining the shel.inp file correctly for WW3. For type 1 (Fields of mean wave parameters), I have tried both the F/T flag (as given in the manual) and Namelists option, but the file is not running correctly.

I have never used the F/T flag option before so I find it hard to get it right. I have seen the issues on WW3 forum and they recommend namelists option v6.07 onwards. But, in my experience with COAWST so far, the traditional options are more appropriate and same has been defined in the manual as well so I want to understand this F/T option.

If I only need the group 2 (Standard mean wave parameters) then should I just apply T for all its parameters and comment out all other groups?

My shel.inp file is as follows:

$ -------------------------------------------------------------------- $
$ WAVEWATCH III shell input file $
$ -------------------------------------------------------------------- $
$ Define input to be used with F/T/C flag for use or nor or coupling and
$ T/F flag for definition as a homogeneous field.
$
$ Include ice and mud parameters only if IC1/2/3/4 used :
F F Water levels
F F Currents
T F Winds
F F Ice concentrations
F Assimilation data : Mean parameters
F Assimilation data : 1-D spectra
F Assimilation data : 2-D spectra
$
$ Time frame of calculations ----------------------------------------- $
$ - Starting time in yyyymmdd hhmmss format.
$ - Ending time in yyyymmdd hhmmss format.
$
20140501 000000
20140502 000000

$
$ Define output data ------------------------------------------------- $
$
$ Define output server mode. This is used only in the parallel version
$ of the model. To keep the input file consistent, it is always needed.
$ IOSTYP = 1 is generally recommended. IOSTYP > 2 may be more efficient
$ for massively parallel computations. Only IOSTYP = 0 requires a true
$ parallel file system like GPFS.
$
$ IOSTYP = 0 : No data server processes, direct access output from
$ each process (requires true parallel file system).
$ 1 : No data server process. All output for each type
$ performed by process that performs computations too.
$ 2 : Last process is reserved for all output, and does no
$ computing.
$ 3 : Multiple dedicated output processes.
$
1
$
$ Five output types are available (see below). All output types share
$ a similar format for the first input line:
$ - first time in yyyymmdd hhmmss format, output interval (s), and
$ last time in yyyymmdd hhmmss format (all integers).
$ Output is disabled by setting the output interval to 0.
$
$ ------------------------------------------------------------------- $
$
$ Type 1 : Fields of mean wave parameters
$ Standard line and line with logical flags to activate output
$ fields as defined in section 2.4 of the manual. The logical
$ flags are not supplied if no output is requested. The logical
$ flags can be placed on multiple consecutive lines. However,
$ the total number and order of the logical flags is fixed.
$ The raw data file is out_grd.ww3,
$ see w3iogo.ftn for additional doc.
$
20140501 000000 1800 20140502 000000
$
N
WND HS T02

$
$ Actual active parameter selection section
$
$ (1) Forcing Fields
$ T
$ DPT CUR WND AST WLV ICE IBG TAU RHO D50 IC1 IC5
$ T F T F F F F F F F F F
$ (2) Standard mean wave Parameters
$ T
$ HS LM T02 T0M1 T01 FP DIR SPR DP
$ T T T T T T T T T
$ (3) Frequency-dependent parameters
$ F
$ EF TH1M STH1M TH2M STH2M WN
$ F F F F F F
$ (4) Spectral Partition Parameters
$ F
$ PHS PTP PLP PDIR PSPR PWS TWS PNR
$ T T T T T T T T
$ (5) Atmosphere-waves layer
$ T
$ UST CHA CGE FAW TAW TWA WCC WCF WCH WCM
$ T T T T T T T T T T
$ (6) Wave-Ocean layer
$ T
$ SXY TWO BHD FOC TUS USS P2S USF P2L TWI FIC
$ T T T T T T T F F F F
$ (7) Wave-bottom layer
$ T
$ ABR UBR BED FBB TBB
$ T T T T T
$ (8) Spectrum parameters
$ T
$ MSS MSC WL02 AXT AYT AXY
$ T T T T T
$ (9) Numerical diagnostics
$ T
$ DTD FC CFX CFD CFK
$ T T T T T
$ (10) User defined (NOEXTR flags needed)
$ F
$ U1 U2
$ T T
$
$----------------------------------------------------------------
$
$ Type 2 : Point output
$ Standard line and a number of lines identifying the
$ longitude, latitude and name (C*10) of output points.
$ The list is closed by defining a point with the name
$ 'STOPSTRING'. No point info read if no point output is
$ requested (i.e., no 'STOPSTRING' needed).
$ Example for spherical grid.
$ The raw data file is out_pnt.ww3,
$ see w3iogo.ftn for additional doc.
$
$ NOTE : Spaces may be included in the name, but this is not
$ advised, because it will break the GrADS utility to
$ plots spectra and source terms, and will make it more
$ difficult to use point names in data files.
$
20140501 000000 3600 20140502 000000
$
144.77552 -37.98414 'WERIBEEv01'
144.77603 -37.98284 'WERIBEEv02'
144.77513 -37.98504 'WERIBEEv03'
144.77525 -37.98489 'WERIBEEv04'
144.86673 -38.06339 'CENTRALv01'
144.86675 -38.06309 'CENTRALv02'
144.75291 -38.13586 'INDHEADv01'
144.75288 -38.13573 'INDHEADv02'
145.05433 -38.16221 'MTELIZAv01'
145.05434 -38.16212 'MTELIZAv02'
145.05411 -38.16213 'MTELIZAv03'
144.87280 -38.30147 'ROSEBUDv01'
144.87284 -38.30158 'ROSEBUDv02'
144.87237 -38.30140 'ROSEBUDv03'
144.87254 -38.30132 'ROSEBUDv04'
144.99476 -37.97897 'SANDHAMv01'
$
0.0 0.0 'STOPSTRING'
$----------------------------------------------------------------
19680606 000000 0 19680606 013000
$
$ Type 4 : Restart files (no additional data required).
$ The data file is restartN.ww3, see
$ w3iors.ftn for additional doc.
$
20140502 000000 1 20140502 000000
$
$ Type 7 : Coupling. (must be fully commented if not used with switch COU)
$ Namelist type selection is used here.
$ Diagnostic fields to exchange. (see namcouple for more information)
$
$ 19680606 000000 3600 20010102 000000
$ N
$
$ - Sent fields by ww3:
$ - Ocean model : T0M1 OCHA OHS DIR BHD TWO UBR FOC TAW TUS USS LM DRY
$ - Atmospheric model : ACHA AHS TP (or FP) FWS
$ - Ice model : IC5 TWI
$
$ CHA
$
$ - Received fields by ww3:
$ - Ocean model : SSH CUR
$ - Atmospheric model : WND
$ - Ice model : ICE IC1 IC5
$
$ WND
$
$ Homogeneous field data --------------------------------------------- $
$ Homogeneous fields can be defined by a list of lines containing an ID
$ string 'LEV' 'CUR' 'WND', date and time information (yyyymmdd
$ hhmmss), value (S.I. units), direction (current and wind, oceanogr.
$ convention degrees)) and air-sea temperature difference (degrees C).
$ 'STP' is mandatory stop string.
$ Also defined here are the speed with which the grid is moved
$ continuously, ID string 'MOV', parameters as for 'CUR'.
$
$ 'LEV' 19680606 010000 1.00
$ 'CUR' 19680606 073125 2.0 25.
$ 'WND' 19680606 000000 20. 145. 2.0
$ 'MOV' 19680606 013000 4.0 25.
'STP'
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $

@jcwarner-usgs
Copy link
Collaborator

use the full list of to parameters, as with Projects/Sandy/WW3/ww3_shel.inp

F F Ice parameter 1
F F Ice parameter 2
F F Ice parameter 3
F F Ice parameter 4
F F Ice parameter 5
F F Mud parameter 1
F F Mud parameter 2
F F Mud parameter 3
F F Water levels
F F Currents
T F Winds
F F Ice concentrations
F F Atmospheric momentum
F F Air density
F Assimilation data : Mean parameters
F Assimilation data : 1-D spectra
F Assimilation data : 2-D spectra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants