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

32 Chapter 4 READgrid COORdinates [fac] ’fname’ [idla] [nhedf] [nhedvec] & | -> FREe | | | | | ’form’ | | < FORmat < > > | | [idfm] | | | | | UNFormatted | CANNOT BE USED IN 1D-MODE. This command READGRID COOR must follow a command CGRID CURV. With this command (required if the computational grid is curvi-linear; not allowed in case of a regular grid) the user controls the reading of the co-ordinates of the computational grid points. These co-ordinates must be read from a file as a vector (x−coordinate, y−coordinate of each single grid point). See command READINP for the description of the options in this command READGRID. SWAN will check whether all angles in the grid are > 0 and < 180 degrees. If not, it will print an error message giving the coordinates of the grid points involved. It is recommended to use grids with angles between 45 and 135 degrees. | -> ADCirc | READgrid UNSTRUCtured < TRIAngle | | > ’fname’ | EASYmesh | CANNOT BE USED IN 1D-MODE. This command READGRID UNSTRUC must follow a command CGRID UNSTRUC. With this command (required if the computational grid is unstructured; not allowed in case of a regular or curvi-linear grid) the user controls the reading of the (x,y) co-ordinates of the vertices including boundary markers and a connectivity table for triangles (or elements). This table contains three corner vertices around each triangle in counterclockwise order. This information should be provided by a number of files generated by one of the following grid generators currently supported by SWAN: • ADCIRC (http://www.adcirc.org) • Triangle (http://www.cs.cmu.edu/afs/cs/project/quake/public/www/triangle.html)

Description of commands 33 • Easymesh (http://www-dinma.univ.trieste.it/nirftc/research/easymesh/easymesh.html) After setting up the vertices and the connectivity tables for cells and faces (automatically done in SWAN), SWAN will print some information concerning the used mesh, among others, number of vertices, cells and faces and minimum and maximum gridsizes. Furthermore, SWAN will check at two levels for a possible occurence of badly shaped triangles. Firstly, the number of triangles that meet at each vertex inside the mesh should not be smaller than 4 or larger than 10. Secondly, the angles inside each triangle should not be higher than 143 o . If, at least, one of these two situations occur, SWAN will print an error message. ADCIRC TRIANGLE EASYMESH ’fname’ the necessary grid information is read from file fort.14 as used by ADCIRC. This file also contains the depth information that is read as well. the necessary grid information is read from two files as produced by Triangle. The .node and .ele files are required. The basename of these files must be indicated with parameter ’fname’. the necessary grid information is read from two files as produced by Easymesh. The .n and .e files are required. The basename of these files must be indicated with parameter ’fname’. basename of the required files, i.e. without extension. Only meant for Triangle and Easymesh. 4.5.2 Input grids and data | BOTtom | | | | WLEVel | | | | | CURrent | | < | | | VX | | | VY | | | INPgrid (< >) & | FRiction | | | | | WInd | | < | | | WX | | | WY |

32 Chapter 4<br />

READgrid COORdinates [fac] ’fname’ [idla] [nhedf] [nhedvec] &<br />

| -> FREe |<br />

| |<br />

| | ’form’ | |<br />

< FORmat < > ><br />

| | [idfm] | |<br />

| |<br />

| UNFormatted |<br />

CANNOT BE USED IN 1D-MODE.<br />

This command READGRID COOR must follow a command CGRID CURV. With this command<br />

(required if the computational grid is curvi-linear; not allowed in case of a regular grid)<br />

the user controls the reading of the co-ordinates of the computational grid points. These<br />

co-ordinates must be read from a file as a vector (x−coordinate, y−coordinate of each single<br />

grid point). See command READINP for the description of the options in this command<br />

READGRID. <strong>SWAN</strong> will check whether all angles in the grid are > 0 and < 180 degrees. If<br />

not, it will print an error message giving the coordinates of the grid points involved. It is<br />

recommended to use grids with angles between 45 and 135 degrees.<br />

| -> ADCirc<br />

|<br />

READgrid UNSTRUCtured < TRIAngle |<br />

| > ’fname’<br />

| EASYmesh |<br />

CANNOT BE USED IN 1D-MODE.<br />

This command READGRID UNSTRUC must follow a command CGRID UNSTRUC. With this command<br />

(required if the computational grid is unstructured; not allowed in case of a regular<br />

or curvi-linear grid) the user controls the reading of the (x,y) co-ordinates of the vertices<br />

including boundary markers and a connectivity table for triangles (or elements). This<br />

table contains three corner vertices around each triangle in counterclockwise order. This<br />

information should be provided by a number of files generated by one of the following grid<br />

generators currently supported by <strong>SWAN</strong>:<br />

• ADCIRC (http://www.adcirc.org)<br />

• Triangle (http://www.cs.cmu.edu/afs/cs/project/quake/public/www/triangle.html)

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

Saved successfully!

Ooh no, something went wrong!