swan.in

From WikiROMS
Jump to navigationJump to search

ROMS and SWAN have been coupled to run in a concurrent fashion, using the Model Coupling Toolkit. See the model coupling page (https://www.myroms.org/wiki/index.php/Model_Coupling). SWAN is a very complicated model. There is an extensive user's manual located on the SWAN web site http://vlm089.citg.tudelft.nl/swan/index.htm To use the current coupling formulation, users need to have certain keywords activated in their swan.in file. This information is provided below. Please note that this is NOT an all inclusive list of SWAN parameters. There are many other SWAN options and users should become familiar with that model.

Below is the text for the Inlet Test case distributed with the ROMS code.


&***************************************************************************

&& THESE 4 LINES ARE REQUIRED FOR THE COUPLING. &&

&& Top line must be 'PROJECT', with a total of 4 lines of comments. &&


PROJECT 'Inlet Test' ' '

'INLET test'

'Bathymetry: flat bottom'

'COMMENTS'


&& THESE NEXT 2 LINES ARE REQUIRED FOR THE COUPLING. &&

MODE NONSTATIONARY TWODIMENSIONAL

SET DEPMIN 0.10 INRHOG 1 NAUTICAL


&& THIS NEXT LINE CAN BE CARTESIAN OR SPHERICAL. SEE SWAN MANUAL.&&

COORDINATES CARTESIAN


&& KEYWORDS TO CREATE AND READ COMPUTATIONAL GRID &&

&& THESE NEXT 2 LINES ARE REQUIRED FOR THE COUPLING. &&

CGRID CURVILINEAR 76 71 EXC 9.999000e+003 CIRCLE 36 0.04 1.0 20

READGRID COORDINATES 1 'Waves/SWAN/External/inlet_test_grid_coord.grd' 4 0 0 FREE


&& KEYWORDS TO CREATE AND READ BATHYMETRY GRID &&

&& THESE NEXT 2 LINES ARE REQUIRED FOR THE COUPLING. &&

INPGRID BOTTOM CURVILINEAR 0 0 76 71 EXC 9.999000e+003

READINP BOTTOM 1 'Waves/SWAN/External/inlet_test_bathy.bot' 4 0 FREE


&& KEYWORD TO CREATE CURRENT GRID &&

&& THIS NEXT LINE IS REQUIRED FOR THE COUPLING. &&

&& SET DATES TO BE THE START AND END DATES OF THE SIMULATION. &&

&& THE 'DT' TIME INCREMENT IN NOT USED, but any value is required. &&

INPGRID CURRENT CURVILINEAR 0 0 76 71 EXC 9.999000e+003 &

NONSTAT 20000101.000000 25 DAY 20000126.000000


&& KEYWORD TO CREATE WATER LEVEL GRID &&

&& THIS NEXT LINE IS REQUIRED FOR THE COUPLING. &&

&& SET DATES TO BE THE START AND END DATES OF THE SIMULATION. &&

&& THE 'DT' TIME INCREMENT IN NOT USED, but any value is required. &&

INPGRID WLEV CURVILINEAR 0 0 76 71 EXC 9.999000e+003 & NONSTAT 20000101.000000 25 DAY 20000126.000000


&& KEYWORD TO CREATE FRICTION GRID &&

&& THIS NEXT LINE IS REQUIRED FOR THE COUPLING. &&

&& SET DATES TO BE THE START AND END DATES OF THE SIMULATION. &&

&& THE 'DT' TIME INCREMENT IN NOT USED, but any value is required. &&

INPGRID FRIC CURVILINEAR 0 0 76 71 EXC 9.999000e+003 & NONSTAT 20000101.000000 25 DAY 20000126.000000


&& BOUNDARY FORCING &&

&& USERS NEED TO READ SWAN MANUAL and set their own BC's. &&

BOUNDPAR1 SHAPESPEC JONSWAP 3.3 PEAK DSPR DEGREES

BOUNDPAR2 SEGMENT IJ 0 71 76 71 CONSTANT PAR 1.0 10.0 0. 20.


&& READ SWAN MANUAL &&

& Restart name **********************************

&INIT HOTSTART 'swan_restart.dat'

&& READ SWAN MANUAL &&

& PHYSICS **************************************

GEN3

FRICTION MADSEN 0.05

OFF QUAD


&& KEYWORDS TO ACTIVATE INTERNAL COMPUTATION OF EXCHANGED FIELDS. &&

&& THE FOLLOWING LINES ARE REQUIRED FOR EACH FIELD THAT YOU WANT &&

&& SENT TO ROMS. &&

&& SET THE OUTPUT DATES TO BE ANY USER TIME INCREMENT TO HAVE SWAN &&

&& WRITE OUT DATA. IF YOU DO NOT WANT SWAN TO WRITE OUT THE DATA, &&

&& THEN SET THE OUTPUT TIME INCREMENT TO BE 10000 HR OR SOMETHING LARGE. &&

&& THE TIMES HERE HAVE NOTHING TO DO WITH THE &&

&& SYNCHRONIZATION EXCHANGE TIMES BETWEEN MODELS. THAT TIME IS SET IN THE &&

&& coupling.in file. &&


BLOCK 'COMPGRID' NOHEADER 'depth.mat' LAY 4 DEPTH 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'dissip.mat' LAY 4 DISSIP 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'force.mat' LAY 4 FORCE 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'hsig.mat' LAY 4 HSIGN 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'rtp.mat' LAY 4 RTP 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'tmbot.mat' LAY 4 TMBOT 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'ubot.mat' LAY 4 UBOT 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'vel.mat' LAY 4 VEL 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'wdir.mat' LAY 4 DIR 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'wlen.mat' LAY 4 WLEN 1. OUTPUT 20000101.000000 1 HR

BLOCK 'COMPGRID' NOHEADER 'xp.mat' LAY 4 XP 1.

BLOCK 'COMPGRID' NOHEADER 'yp.mat' LAY 4 YP 1.


&& OUTPUT TESTS, not required, but optional. &&

POINTS 'point1' 5000.0 10000.0

SPECOUT 'point1' SPEC2D 'point1.spc2d' OUTPUT 20000101.000000 1 HR


&& SEE SWAN MANUAL.&&

PROP BSBT

&& THIS NEXT LINE IS REQUIRED FOR THE COUPLING. &&

&& THE COUPLING MUST BE NONSTATIONARY MODE. &&

COMPUTE NONSTATIONARY 20000101.000000 60 SEC 20000103.000000


&& REQUIRED&&

STOP

&***************************************************************************