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

66 Chapter 4 RAY ISOLINE POINTS NGRID to define a set of output locations along a depth or bottom contour line (with ISOLINE) to define a set of output locations along a depth- or bottom contour line (with RAY) to define a set of isolated output locations to define a set of output locations for a nested grid to be used in a subsequent SWAN run Commands FRAME, GROUP, RAY, ISOLINE and NGRID cannot be used in 1D-MODE and command GROUP cannot be used in case of unstructured meshes. If one gives one name for two sets of output locations, the first set is lost (first in the sequence in the command file). Two special names: BOTTGRID and COMPGRID are reserved for use by SWAN (see below). The user may not define sets with these names. 2. Write / plot commands defining data file output (write) at the above defined set(s) of output locations: BLOCK TABLE SPECOUT NESTOUT write spatial distributions (only for FRAMEs and GROUPs) write output for (set of) output location(s) write to data file the variance / energy (see command SET) density spectrum for (set of) output location(s) write to data file two-dimensional action density spectra (relative frequency) along the boundary of a nested grid (see command NGRID) to be used in a subsequent SWAN run. Commands BLOCK and NESTOUT cannot be used in 1D-MODE. 4.6.1 Output locations FRAme ’sname’ [xpfr] [ypfr] [alpfr] [xlenfr] [ylenfr] [mxfr] [myfr]) CANNOT BE USED IN 1D-MODE. With this optional command the user defines output on a rectangular, uniform grid in a regular frame. If the set of output locations is identical to a part of the computational grid, then the user can use the alternative command GROUP.

Description of commands 67 ’sname’ [xpfr] [ypfr] [alpfr] [xlenfr] [ylenfr] [mxfr] [myfr] name of the frame defined by this command x−coordinate of the origin of the frame in problem coordinates if Cartesian coordinates are used in m if spherical coordinates are used in degrees (see command COORD) y−coordinate of the origin of the frame in problem coordinates if Cartesian coordinates are used in m if spherical coordinates are used in degrees (see command COORD) direction of the x−axis of the frame (in degrees, Cartesian convention; must be 0 in case of spherical coordinates) length of the frame in x−direction if Cartesian coordinates are used in m if spherical coordinates are used in degrees (see command COORD) length of the frame in y−direction if Cartesian coordinates are used in m if spherical coordinates are used in degrees (see command COORD) number of meshes in x−direction of the rectangular grid in the frame (one less than the number of grid points in this direction) Default: [mxfr]=20 number of meshes in y−direction of the rectangular grid in the frame (one less than the number of grid points in this direction) Default: [myfr]=20 Some output may be required on a frame that is identical with the input (bottom/current) grid or with the computational grid (e.g. for test purposes or to avoid interpolation errors in the output). These frames need not be defined by the user with this command FRAME; the frames are always generated automatically by SWAN under the names ’sname’ = ’BOTTGRID’ (for the bottom/current grid) and ’sname’ = ’COMPGRID’ (for the computational grid). GROUP ’sname’ SUBGrid [ix1] [ix2] [iy1] [iy2] CANNOT BE USED IN 1D-MODE AND IN CASE OF UNSTRUCTURED GRIDS. With this optional command the user defines a group of output locations on a rectangular or curvi-linear grid that is identical with (part of) the computational grid (recti-linear or curvi-linear). Such a group may be convenient for the user to obtain output that is not affected by interpolation errors (which would occur when an output grid is used that is not identical with (part of) the computational grid). Command CGRID should precede this command GROUP. The subgrid contains those points (ix,iy) of the computational grid for which:

Description of commands 67<br />

’sname’<br />

[xpfr]<br />

[ypfr]<br />

[alpfr]<br />

[xlenfr]<br />

[ylenfr]<br />

[mxfr]<br />

[myfr]<br />

name of the frame defined by this command<br />

x−coordinate of the origin of the frame in problem coordinates<br />

if Cartesian coordinates are used in m<br />

if spherical coordinates are used in degrees (see command COORD)<br />

y−coordinate of the origin of the frame in problem coordinates<br />

if Cartesian coordinates are used in m<br />

if spherical coordinates are used in degrees (see command COORD)<br />

direction of the x−axis of the frame (in degrees, Cartesian convention; must be<br />

0 in case of spherical coordinates)<br />

length of the frame in x−direction<br />

if Cartesian coordinates are used in m<br />

if spherical coordinates are used in degrees (see command COORD)<br />

length of the frame in y−direction<br />

if Cartesian coordinates are used in m<br />

if spherical coordinates are used in degrees (see command COORD)<br />

number of meshes in x−direction of the rectangular grid in the frame (one less<br />

than the number of grid points in this direction)<br />

Default: [mxfr]=20<br />

number of meshes in y−direction of the rectangular grid in the frame (one less<br />

than the number of grid points in this direction)<br />

Default: [myfr]=20<br />

Some output may be required on a frame that is identical with the input (bottom/current)<br />

grid or with the computational grid (e.g. for test purposes or to avoid interpolation<br />

errors in the output). These frames need not be defined by the user with this command<br />

FRAME; the frames are always generated automatically by <strong>SWAN</strong> under the names<br />

’sname’ = ’BOTTGRID’ (for the bottom/current grid) and ’sname’ = ’COMPGRID’ (for<br />

the computational grid).<br />

GROUP ’sname’ SUBGrid [ix1] [ix2] [iy1] [iy2]<br />

CANNOT BE USED IN 1D-MODE AND IN CASE OF UNSTRUCTURED GRIDS.<br />

With this optional command the user defines a group of output locations on a rectangular<br />

or curvi-linear grid that is identical with (part of) the computational grid (recti-linear or<br />

curvi-linear). Such a group may be convenient for the user to obtain output that is not<br />

affected by interpolation errors (which would occur when an output grid is used that is<br />

not identical with (part of) the computational grid).<br />

Command CGRID should precede this command GROUP.<br />

The subgrid contains those points (ix,iy) of the computational grid for which:

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

Saved successfully!

Ooh no, something went wrong!