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

38 Chapter 4 READinp < WInd > [fac] < > [idla] & | | | SERIes ’fname2’ | | FRiction | | -> FREe | | | | | ’form’ | | [nhedf] ([nhedt]) ([nhedvec]) < FORmat < > > | | [idfm] | | | | | UNFormatted | With this required command the user controls the reading of values of the indicated variables from file. This command READINP must follow a command INPGRID. Note that for each stationary or nonstationary field, one combination of INPGRID and READINP suffices if one has more than one COMPUTE command in a run. If the variables are in one file, then the READINP commands should be given in the same sequence as the sequence in which the variables appear in the file. BOTTOM WLEV CURRENT FRICTION WIND with this option the user indicates that bottom levels (m) are to be read from file (bottom level positive downward relative to an arbitrary horizontal datum level). The sign of the input can be changed with option [fac] = −1. (see below). with this option the user indicates that water levels (m) are to be read from file (water level positive upward relative to the same datum level as used in option BOTTOM). Sign of input can be changed with option [fac] = −1. If the water level is constant in space and time, the user can use the command SET to add this water level to the water depth. recti-linear (curvi-linear) input grid: with this option the user indicates that the x− and y−component (ξ− and η−component) are to be read from one and the same file (with one READINP command). With this option SWAN reads first all x−components (ξ−components), and then all y−components (η−components) (see below). The firs component (x− or ξ−component) is always eastward oriented and the second one (y− or η−component) is always northwise oriented. The components ξ and η are taken along the directions of the grid lines of the curvi-linear grid! If the current velocity is relatively large, i.e. the Froude number U/ √ gd is larger than 0.8, it will be reduced such that the Froude number becomes equal to 0.8. with this option the user indicates that friction coefficient is to be read from file for Collins: [cfw] and for Madsen: [kn] (no space- or time-variable coefficient for the Jonswap expression, see command FRICTION). If the coefficients are constant in space and time: see command FRICTION. recti-linear (curvi-linear) input grid: with this option the user indicates that

Description of commands 39 [fac] ’fname1’ SERIES ’fname2’ [idla] the x− and y−component (ξ− and η−component) are to be read from one and the same file (with one READINP command). With this option SWAN reads first all x−components (ξ−components), and then all y−component (η−components) (see below). The components ξ and η are taken along the directions of the grid lines of the curvi-linear grid! If the wind is constant, see command WIND. SWAN multiplies all values that are read from file with [fac]. For instance if the bottom levels are given in unit decimeter, one should make [fac]=0.1 to obtain levels in m. To change sign of bottom level use a negative value of [fac]. Note that [fac] = 0 is not allowed! Default: [fac]=1. name of the file with the values of the variable. with this option (only for MODE NONSTATIONARY) the user indicates that the names of the files containing the nonstationary variable(s) are located in a separate file with name ’fname2’ (see below). name of file that contains the names of the files where the variables are given. These names are to be given in proper time sequence. SWAN reads the next file when the previous file end has been encountered. In these files the input should be given in the same format as in the above file ’fname1’ (that implies that a file should start with the start of an input time step). prescribes the order in which the values of bottom levels and other fields should be given in the file. =1: SWAN reads the map from left to right starting in the upper-left-hand corner of the map (it is assumed that the x−axis of the grid is pointing to the right and the y−axis upwards). A new line in the map should start on a new line in the file. The lay-out is as follows: 1,myc+1 2,myc+1 ... mxc+1, myc+1 1,myc 2,myc ... mxc+1, myc ... ... ... ... 1,1 2,1 ... mxc+1, 1 =2: as [idla]=1 but a new line in the map need not start on a new line in the file. =3: SWAN reads the map from left to right starting in the lower-left-hand corner of the map. A new line in the map should start on a new line in the file. The lay-out is as follows: 1,1 2,1 ... mxc+1, 1 1,2 2,2 ... mxc+1, 2 ... ... ... ... 1,myc+1 2,myc+1 ... mxc+1, myc+1 =4: as [idla]=3 but a new line in the map need not start on a new line

Description of commands 39<br />

[fac]<br />

’fname1’<br />

SERIES<br />

’fname2’<br />

[idla]<br />

the x− and y−component (ξ− and η−component) are to be read from one and<br />

the same file (with one READINP command). With this option <strong>SWAN</strong> reads first<br />

all x−components (ξ−components), and then all y−component (η−components)<br />

(see below). The components ξ and η are taken along the directions of the grid<br />

lines of the curvi-linear grid! If the wind is constant, see command WIND.<br />

<strong>SWAN</strong> multiplies all values that are read from file with [fac]. For instance<br />

if the bottom levels are given in unit decimeter, one should make [fac]=0.1 to<br />

obtain levels in m. To change sign of bottom level use a negative value of [fac].<br />

Note that [fac] = 0 is not allowed!<br />

Default: [fac]=1.<br />

name of the file with the values of the variable.<br />

with this option (only for MODE NONSTATIONARY) the user indicates that the<br />

names of the files containing the nonstationary variable(s) are located in a<br />

separate file with name ’fname2’ (see below).<br />

name of file that contains the names of the files where the variables<br />

are given. These names are to be given in proper time sequence. <strong>SWAN</strong> reads<br />

the next file when the previous file end has been encountered. In these files the<br />

input should be given in the same format as in the above file ’fname1’ (that<br />

implies that a file should start with the start of an input time step).<br />

prescribes the order in which the values of bottom levels and other fields<br />

should be given in the file.<br />

=1: <strong>SWAN</strong> reads the map from left to right starting in the upper-left-hand<br />

corner of the map (it is assumed that the x−axis of the grid is pointing<br />

to the right and the y−axis upwards). A new line in the map should<br />

start on a new line in the file. The lay-out is as follows:<br />

1,myc+1 2,myc+1 ... mxc+1, myc+1<br />

1,myc 2,myc ... mxc+1, myc<br />

... ... ... ...<br />

1,1 2,1 ... mxc+1, 1<br />

=2: as [idla]=1 but a new line in the map need not start on a new line in<br />

the file.<br />

=3: <strong>SWAN</strong> reads the map from left to right starting in the lower-left-hand<br />

corner of the map. A new line in the map should start on a new line in<br />

the file. The lay-out is as follows:<br />

1,1 2,1 ... mxc+1, 1<br />

1,2 2,2 ... mxc+1, 2<br />

... ... ... ...<br />

1,myc+1 2,myc+1 ... mxc+1, myc+1<br />

=4: as [idla]=3 but a new line in the map need not start on a new line

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

Saved successfully!

Ooh no, something went wrong!