.

Syntax of Input

Keywords

The input is given in a free format using predefined keywords. Keywords starting with double arrow allow to structure the input. The input following a >>keyword, is related to this >>keyword until an other >>keyword is specified, e.g.

>>source
  discharge  10.
  node       9823
>>compute
  start   0.5
  stop    1.5
>>

A double-arrow without a keyword ends the input reading, i.e. all the input that follows is ignored. Lines starting with a slash (/) in the first column are considered as comments and are ignored. The keywords are given in the same order as they should appear in the input file. If a number has to be specified, r denotes a real number and i denotes an integer number. String lengths are limited to 32 characters unless explicitely specified.

Include Files

The syntax also allows for include-files. Example: If you have stored polygon information on a file called 'data.ply', you can refer to this file in your input file with: 

 include 'data.ply'

The program then reads from the file 'data.ply' until an end_of_file marker appears or the keyword '>>'. Then the program continues to read from the input file.

Options (since 11-2006)

Options allow to specify the input that is being read. They are defined in the input file with parenthesis

 {name_of_option
  ....
  ....
 }

The options are invoked on the command line using the prefix @, e.g.

flumen name_of_input_file  @name_of_option

 Example: A model should be run with different inflow conditions

>>boundary
{hq30  inflow 150. }
{hq100 inflow 250. }
{hq300 inflow 370. }

Starting the program with :

flumen input_file @hq30

the program takes the value 150 as the model inflow.


(c) 2007 fluvial.ch