USER MANUAL SWAN Cycle III version 40.72A

USER MANUAL SWAN Cycle III version 40.72A USER MANUAL SWAN Cycle III version 40.72A

sci.buu.ac.th
from sci.buu.ac.th More from this publisher
28.06.2014 Views

40 Chapter 4 in the file. =5: SWAN reads the map from top to bottom starting in the lower-left-hand corner of the map. A new column in the map should start on a new line in the file. The lay-out is as follows: 1,1 1,2 ... 1, myc+1 2,1 2,2 ... 2, myc+1 ... ... ... ... mxc+1,1 mxc+1,2 ... mxc+1, myc+1 [nhedf] [nhedt] [nhedvec] FREE FORMAT ’form’ =6: as [idla]=5 but a new column in the map need not start on a new line in the file. Default: [idla]=1. is the number of header lines at the start of the file. The text in the header lines is reproduced in the print file created by SWAN (see Section 3.3). The file may start with more header lines than [nhedf] because the start of the file is often also the start of a time step and possibly also of a vector variable (each having header lines, see below, [nhedt] and [nhedvec]). Default: [nhedf]=0. only if variable is time dependent: number of header lines in the file at the start of each time level. A time step may start with more header lines than [nhedt] because the variable may be a vector variable which has its own header lines (see below [nhedvec]). Default: [nhedt]=0. for each vector variable: number of header lines in the file at the start of each component (e.g., x− or y−component). Default: [nhedvec]=0. With this option the user indicates that the values are to be read with free format. Free format is a standard of the computer programming language FORTRAN. The free format conventions in reading from a file are almost the same as the conventions for the command syntax given elsewhere in this manual; the most important differences are: 1. There are no continuation marks, reading continues until the required number of data has been read, or until a slash (/) is encountered. 2. Input lines can be longer than 80 characters (depending on the operating system of the computer). 3. Comment is not allowed. With free format empty fields, repetition factors, and closure of a line by a slash, can be used. with this option the user indicates that fixed format (FORTRAN convention) is to be used when reading the values from file. The format can be defined in one of two ways, by giving the format number [idfm] or the format string ’form’. a user−specified format string according to Fortran convention, e.g.

Description of commands 41 ’(10X,12F5.0)’. =1: Format according to BODKAR convention (a standard of the Ministry of Transport and Public Works in the Netherlands). Format string: (10X,12F5.0). =5: Format (16F5.0), i.e. an input line consists of 16 fields of 5 places each. =6: Format (12F6.0), i.e. an input line consists of 12 fields of 6 places each. =8: Format (10F8.0), i.e. an input line consists of 10 fields of 8 places each. UNFORMATTED is a form of reading without conversion (binary files). Not recommended for ordinary use. If the file does not contain a sufficient number of data (i.e. less than the number of grid points of the input grid), SWAN will write an error message to the PRINT file, and if [itest]>0 (see command TEST) it will reproduce the data in the PRINT file, using the lay-out according to [idla]=1. This echo of the data to print file is also made if the READINP command is embedded between two TEST commands in the command file as follows: TEST 120 READINP .... TEST 0 WIND [vel] [dir] With this optional command the user indicates that the wind is constant. [vel] [dir] wind velocity at 10 m elevation (m/s). wind direction at 10 m elevation (in degrees, Cartesian or Nautical convention, see command SET). Both quantities are required if this command is used. Note that SWAN converts U 10 to U ∗ (see Scientific/Technical documentation). 4.5.3 Boundary and initial conditions | -> JONswap [gamma] | | | | -> PEAK | BOUNd SHAPespec < PM > < > & | | | MEAN | | GAUSs [sigfr] |

Description of commands 41<br />

’(10X,12F5.0)’.<br />

=1: Format according to BODKAR convention (a standard of the Ministry of<br />

Transport and Public Works in the Netherlands).<br />

Format string: (10X,12F5.0).<br />

=5: Format (16F5.0), i.e. an input line consists of 16 fields of 5 places each.<br />

=6: Format (12F6.0), i.e. an input line consists of 12 fields of 6 places each.<br />

=8: Format (10F8.0), i.e. an input line consists of 10 fields of 8 places each.<br />

UNFORMATTED is a form of reading without con<strong>version</strong> (binary files). Not recommended for<br />

ordinary use.<br />

If the file does not contain a sufficient number of data (i.e. less than the number of grid<br />

points of the input grid), <strong>SWAN</strong> will write an error message to the PRINT file, and if<br />

[itest]>0 (see command TEST) it will reproduce the data in the PRINT file, using the<br />

lay-out according to [idla]=1. This echo of the data to print file is also made if the<br />

READINP command is embedded between two TEST commands in the command file as<br />

follows:<br />

TEST 120<br />

READINP ....<br />

TEST 0<br />

WIND [vel] [dir]<br />

With this optional command the user indicates that the wind is constant.<br />

[vel]<br />

[dir]<br />

wind velocity at 10 m elevation (m/s).<br />

wind direction at 10 m elevation (in degrees, Cartesian or Nautical<br />

convention, see command SET).<br />

Both quantities are required if this command is used. Note that <strong>SWAN</strong> converts U 10 to U ∗<br />

(see Scientific/Technical documentation).<br />

4.5.3 Boundary and initial conditions<br />

| -> JONswap [gamma] |<br />

| | | -> PEAK |<br />

BOUNd SHAPespec < PM > < > &<br />

| | | MEAN |<br />

| GAUSs [sigfr] |

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!