Mohid Swan
From MohidWiki
In this wiki it would be commented how to implement the Swan model into the Mohid modelling software.
Contents
Software Needed
In addition to the Mohid model it will be needed the following software to achive the goal.
Bathymetry
The bathymetry should be converted from the Mohid format to the Swan format using the software mohidbatim2swan.m. that would convert the file from the extension .dat to the extension .bty
The bathymetry resolution should be betwwen 1 km or 2 km while for the WaveWatch III software the resolution is around 5 km.
The bathymetry should be visualised using notepad or a software called sigma that needs to be localed in the root directory c:\
Sigma -> Task File -> Show so far -> Linha CGWID
Boundary Conditions
The Swan model would need of wind, tide and deep-Ocean swell as boundary conditions.
Wind
Wind vectors should also be provided from other model results (i.e. MOHID, MM5 or WRF) and then converted to the SWAN format using ConvertToHDF5 using the option "ConvertHDF5ToSWANorMOHID" that will provide a hourly file with values for x and y directions, be aware of the file size.
Tide
The tide sould be obtained from other models (i.e. PCOMS), or calculated (i.e. Tideprev) and interpolated to the grid.
Swell
SWAN Model Input
Sect 3 CGRID is the origin, starting from the lower left corner 0 -> Rotation (0 no inclination) 1.3 -> Grid step x in degrees 2 -> Grid step y in degrees 130 -> cells -1 in X direction 200 -> cells -1 in Y direction CIR -> Whole circle of directions 36 -> Number of directions 0.04 -> Minimum frequency 0.5 -> Maximum frequency 50 -> Number of frequencies -1 (in total then 51)
Sect 4 Equal to Sect 3 but dx = 0.01 = dy wlevel.in wind.in
Sect 5 WavewatchIII BOUN (boundary) SIDE W CONST PAS 5 10 210 30 H T Dir Dispersion
Sect 6 Physics Do not change
Sect 8 Time series To obtain a window it should be edited NGRID Indicating the lower left cell for the new grid, the size of the grid in x and y and the number of cells SUBG Indicates the subgrid and in should be provided the lower left corner of the father grid
Sect 10 It makes the domain 4 times and when reach the 98% probability then stops. Defines the initial and final date It should be defined a day as the initial date
Running Swan
Input and the exe file should be located in the same folder.
SWAN Model Output
To be viewed in Matlab .tbl X Y DEP HS DIR PER FOR WIND
Also can be used the ConvertToHDF5 with the option ConvertToAndFromSWAN