next up previous index
Next: Command syntax and input Up: Description of commands Previous: List of available commands   Index


Sequence of commands

SWAN executes the above command blocks (a,...,j) in the above sequence except (f), (i) and (j). The commands of the blocks (f) and (i) may appear anywhere before block (j), except that TEST POINTS must come after READINP BOTTOM. The commands of block (j) may appear anywhere in the command file (all commands after COMPUTE are ignored by SWAN, except HOTFILE and STOP). A sequence of commands of block (g) is permitted (all commands will be executed without overriding). Also a sequence of commands of block (h) is permitted (all commands will be executed without overriding).


Within the blocks the following sequence is to be used:

In block (a) : no prescribed sequence in block  
In block (b) : READGRID after CGRID  
In block (c) : READINP after INPGRID (repeat both in this sequence for each quantity)  
In block (d) : BOUND SHAPE before BOUNDSPEC, otherwise no prescribed sequence in block  
In block (e) : use only one GEN command; use command OFF only after a GEN command  
  (note that GEN3 is default)  
In block (f) : no prescribed sequence in block  
In block (g) : ISOLINE after RAY (ISOLINE and RAY can be repeated independently)  
In block (h) : no prescribed sequence in block  
In block (i) : no prescribed sequence in block  
In block (j) : HOTFILE immediately after COMPUTE, STOP after COMPUTE  

It must be noted that a repetition of a command may override an earlier occurrence of that command.


Many commands provide the user with the opportunity to assign values to coefficients of SWAN (e.g. the bottom friction coefficient). If the user does not use such option SWAN will use a default value.


Some commands cannot be used in 1D-mode (see individual command descriptions below).


next up previous index
Next: Command syntax and input Up: Description of commands Previous: List of available commands   Index
The SWAN team 2017-10-26