SMS:CMS-Wave Current File

From XMS Wiki
Revision as of 16:09, 17 November 2016 by Jcreer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

CMS-Wave supports an option of using an input file containing spatially varying currents (flow) at each cell in the grid and computing the influence of this flow field on the resultant wave field.

This file requires a flow vector (x,y) at each cell in the domain. In SMS terminology, the depth values comprise a vector dataset on the grid.

The currents 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 "*.cur". 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. Cell dimensions are not important for this file because they are used from 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). The current value is defined as a U (in the I direction) value and a V (in the J direction) value. The values are stored in a block similar to the output "wav" format storing height period and direction.

SMS writes files with five values per row.

See the "wav" file for a sample format.

Related Topics