next up previous [pdf]

Next: Downloading and Installing IWAVE Up: Using IWAVE Previous: Bibliography

Annotated Parameter Files

All IWAVE applications are parameter-driven: that is, they accept as input a map or associative array, defined by a list of key = value pairs. These parameter specifications can be included on the command line. However, because the number of such parameter specifications is rather large, it's convenient to store them in a parameter file (``par file''). The use of a par file has the added advantage that the file may include annotations and white space to improve readability.

The examples displayed in this paper are created in the directory $TOP/demo/data. The par file parfile is a by-product of data creation - the SConstruct script text-processes it from prototype files including macros, which are resolved when the scripts are run. Four such prototype par files are present in data, each one defining a modeling task corresponding to a given level of grid refinement. The actual input to the modeling command is parfile.

The meaning of each parameter in the par file is described in the IWAVE web documentation (Terentyev et al., 2012). This appendix gives a brief description of the parameter assignments appearing in the parfile generated for the 20 m grid example. To run this example, and coincidentally generate its parameter file,

The file parfile groups job parameters into blocks. The first block looks like this:

INPUT DATA FOR iwave

------------------------------------------------------------------------
FD:

         order = 2          spatial half-order
           cfl = 0.4        proportion of max dt/dx
          cmin = 1.0
          cmax = 4.5
          dmin = 0.5
          dmax = 5.0
         fpeak = 0.010      central frequency
Note that comments, block labels, and typographical separators are all accommodated. The IWAVE parameter parser identifies parameter specifications by strings of the form
          key = value
consisting of a string with no embedded whitespace, followed by an = sign surrounded by any amount of whitespace on either side, followed by another string with no embedded whitespace. Strings with embedded whitespace are also allowed, provided that they are double-quoted - thus "this is a value" is a legitimate value expression. Other capabilities of the parser are described in its html documentation. All values are first read as strings, then converted to other types as required.

The parameters appearing in parfile are as follows:

The parameters described here represent one common use case of IWAVE's acoustic application. The web documentation describes a number of other use cases.


next up previous [pdf]

Next: Downloading and Installing IWAVE Up: Using IWAVE Previous: Bibliography

2012-10-17