SMS:CMS-Wave Depth File: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
CMS-Wave requires a depth at each cell in the domain. In SMS terminology, the depth values comprise a dataset on the grid.
CMS-Wave requires a depth at each cell in the domain. In SMS terminology, the depth values comprise a dataset on the grid.


The depths are passed into CMS-Wave in the form of an ASCII data file.  There is no header or identifier as to what the data in the file is, other than the default extension of "*.dep".  However, that is not even required.  
The depths are passed into CMS-Wave in the form of an ASCII data file.  There is no header or identifier as to what the data in the file is, other than the default extension of ".dep".  However, that is not even required.  


The first line of the file contains the dimensions of the grid (number of columns, number of rows) and the default size of a grid cell (in the I direction and then the J direction).  If the
The first line of the file contains the dimensions of the grid (number of columns, number of rows) and the default size of a grid cell (in the I direction and then the J direction).  If the grid does not consist of cells of constant size, the size for the J direction will be written as 999.  In this case, the cell dimensions (width of each column and height of each row) are included at the bottom of the depth file.
 
The values in the file are organized in row major format, starting with the "top" row (farthest away from the grid origin) and ending with the "bottom" row (closest to the origin and following the I direction).
 
SMS writes files with five values per row.


===Sample File===
===Sample File===


:{|style = "background: #F9F9F9"
<blockquote>
|colspan="2" width="300px" |CMS-Wave 902500.0  4086600  135  || /* Key word, grid origin, grid orientation*/
{|style = "background: #F9F9F9"
|-
|width="300px" |25 12 10.000 999.000   || // number of columns, number of rows, cell dimensions
|DEP    || [[SMS:CMS-Wave Depth File|grid.dep]]   || /* Name of input file containing depth values for each cell */
|-
|OPTS  ||  [[SMS:CMS-Wave Control File|grid.std]]  || /* Name of input file containing model parameters */
|-
|CURR  || [[SMS:CMS-Wave Current File|curgrid.cur]]    || /* Name of optional input file containing current values (vx and vy) for each cell */
|-
|SPEC  || [[SMS:CMS-Wave Spectral Energy File|grid.eng]] || /* Name of input file containing energy density spectra (required in most cases) */
|-
|-
|WAVE  || [[SMS:CMS-Wave Spectral Energy File|grid.wav]]    || /* Name of output file for spatial wave conditions (height, direction) for each cell */
| 46.65  42.56  38.85  35.47  32.40      || // first 5 depths of cells on the top row
|-
|-
|OBSE  || [[SMS:CMS-Wave Spectral Energy File|grid.obs]]    || /* Name of output file to save full spectra at specified monitoring locations  */
| 29.61  27.07  24.77  22.67  20.76      || // next 5 values, second row will continue on same line
|-
|-
|NEST  || [[SMS:CMS-Wave Spectral Energy File|grid.nst]]    || /* Name of output file to save full spectra at specified nesting cells  */
| . . .                                  || // remaining depth values
|-
|-
|BREAK || [[SMS:CMS-Wave Spectral Energy File|grid.brk]]   || /* Name of output file to save wave breaking indices or energy disipations at each cell  */
7.97  7.25  6.55  5.99   5.44      || // first five column widths
|-
|-
|SPGEN || [[SMS:CMS-Wave Spectral Table File|grid.txt]]    || /* Name of spectral parameter file, contains parameters used to generate spectra  */
4.95  4.50  4.09  3.72  3.38      || // next 5 widths, heights will follow on same line
|-
|-
|RADS  || [[SMS:CMS-Wave Spectral Energy File|grid.rad]]    || /* Name of output file to save wave radiation stress gradients at each cell  */
| . . .                                 || // remaining widths and heights
|-
|STRUCT || [[SMS:CMS-Wave Spectral Energy File|grid.struct]] || /* Name of input file containing structure flags for each cell */
|-
|SUR    || [[SMS:CMS-Wave Spectral Energy File|grid.eta]]    || /* Name of optional input file containing spatially varied surge at each cell  */
|}
|}
 
</blockquote>
The number of particles must be  the same for each time step.


==Related Topics==
==Related Topics==
Line 43: Line 35:


{{Template:Navbox SMS}}
{{Template:Navbox SMS}}
[[Category:CMS-Wave]]
 
[[Category:CMS-Wave|D]]
[[Category:SMS File Formats|C]]

Latest revision as of 18:23, 15 February 2016

CMS-Wave requires a depth at each cell in the domain. In SMS terminology, the depth values comprise a dataset on the grid.

The depths are passed into CMS-Wave in the form of an ASCII data file. There is no header or identifier as to what the data in the file is, other than the default extension of ".dep". However, that is not even required.

The first line of the file contains the dimensions of the grid (number of columns, number of rows) and the default size of a grid cell (in the I direction and then the J direction). If the grid does not consist of cells of constant size, the size for the J direction will be written as 999. In this case, the cell dimensions (width of each column and height of each row) are included at the bottom of the depth file.

The values in the file are organized in row major format, starting with the "top" row (farthest away from the grid origin) and ending with the "bottom" row (closest to the origin and following the I direction).

SMS writes files with five values per row.

Sample File

25 12 10.000 999.000 // number of columns, number of rows, cell dimensions
46.65 42.56 38.85 35.47 32.40 // first 5 depths of cells on the top row
29.61 27.07 24.77 22.67 20.76 // next 5 values, second row will continue on same line
. . . // remaining depth values
7.97 7.25 6.55 5.99 5.44 // first five column widths
4.95 4.50 4.09 3.72 3.38 // next 5 widths, heights will follow on same line
. . . // remaining widths and heights

Related Topics