2 Input files
The input data of SWAP are divided over 4 different file types:
- Main input file (*.swp)
- Meteorological file (*.met, *.rain or *.yyy)
- Crop growth file (*.crp)
- Drainage file (*.dra)
Appendix A provides an overview of the information in these input files. The main input file and the meteorological data file are always required. Input files of crop growth and drainage are optional. The extensions of the files are fixed. The names of the input files are free to choose and are specified in the main input file. As listed in Appendix A, the main input file contains general information with regard to the simulation, meteorology, crop rotation scheme, irrigation, soil water flow, heat flow and solute transport. For meteorological data, commonly a file with daily data is used, but also more detailed input of evapotranspiration and rainfall fluxes is possible. The detailed crop growth input file is required to simulate crop development and biomass assimilation. As an alternative, the development of crop parameters such as leaf area index or rooting depth can be prescribed in the simple crop growth input file. The drainage input file contains two sections. The basic drainage section provides input for drainage towards ditches and/or drains. The extended drainage section provides input for drainage including simulation of surface water levels.
Tip 2.1 gives an example of a part of the *.swp input file. General rules for the format of input files are:
- free format with the structure ‘variablename’ = ‘value’ or in a table with variable names in the first line;
- order of variables is free;
- comment in lines is allowed starting with ‘*’ or ‘!’;
- blank lines are allowed;
- tabs are not allowed.
In the input files, of each parameter the symbolic name, a description and numerical information is given. The numerical information between square brackets consists of:
- range
- unit
- data type
For example: [-5000 .. 100 cm, R] means: value between -5000 and +100 with a unit in cm, given as a Real data type. In general SWAP uses for time the unit DAY and for length the unit CENTIMETER. These are practical units for soil physical quantities and fluxes. Exceptions are meteorological data such as rainfall, irrigation and evapotranspiration, which are specified in MILLIMETER. In case of real data, the number should at least include a dot. Other data types are integer and character.
In case of data series as function of time or depth such as groundwater levels or initial pressure heads, SWAP will apply linear interpolation. Outside a specified range, the closest value will be adopted. For instance in Tip 2.1, the rainfall intensity (rainflux) will gradually increase from 2 to 4 cm d-1 between t = 1.0 and t = 360.0. At t > 360.0, the rainfall intensity will be 4 cm d-1.