SMS:CMS-Wave Radiation Stress File

From XMS Wiki
Jump to navigationJump to search

CMS-Wave can create a solution consisting of wave radiation gradients at each cell in the domain. These values are stored in a single file for all input spectra. This file is the "rad" file. In SMS terminology, these are vector datasets on the grid.

When SMS reads the values from this file, it creates vector datasets for radiation stress gradient in world (x,y) coordinates. It must rotate the quantities from local (u,v) directions relative to the Cartesian grid. The user of SMS should be aware that the radiation stress gradient direction values displayed in the interface are computed by rotating from those stored in the "rad" solution file.

The "rad" file created by CMS-Wave is 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 "*.wav". 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. Since this file is only utilized for dataset values, the dimensions are not important here.

The second line of the file contains the index of the case or wave spectra that resulted in these solution values. This is typically either a coded date (YYMMDDHH or YYYYMMDDHHMM), a simple index (1, 2, 3, ...) or a bin number indicating principal direction and period.

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 values for the u component (in the I direction) are output first, followed by a block of values for v component.

CMS-Wave writes files with 5 values per row. The file format is the same as the "cur" file.

Related Topics