Making Custom Water Balances

The first combobox in the Post-processing dialogue contains a list of all the available water balance types. This list is read from the water balance config­uration file, MSHE_Wbl_Config.pfs, which is found in the MIKE SHE instal­lation \bin directory. The default location of this directory depends on the operating system of your computer.

You can add extra items to the list of available water balance types by defin­ing additional water balances at the end of the configuration file.

To illustrate how you could add an additional water balance type, the table below describes the format for each line of the water balance type definition. The example is for an extra water balance type to calculate the net vertical flow in a specified SZ layer. This water balance type can only be used with the single-cell resolution and specified output layers options.

Table 6.9             MSHE_Wbl_Config.pfs - example section to edit to customize the water balances

Line item

Comment

// Created: 2004-06-2 16:28:48

// DLL id : C:\WINOWS\System32\pfs2000.dll

// PFS version: Mar 3 2004 21:35:12

 

[MIKESHE_WaterBalance_ConfigFile]

  FileVersion = 3

  NoWblTypes = 31

File header

 

 

NoWblTypes = the number of water balance types in the configuration file. Remember to change this number if you add a water bal­ance item to the file

  [WblTypeDefinition]

      Name = 'TOTAL'

     ...

      Group = 'SZ Storage(sz.szsto)'

  EndSect  // WblTypeDefinition

Existing water balance definitions

  [WblTypeDefinition]

First line of the water balance definition

      Name = 'SZ_LAYER_NET_VERT_FLOW_MAP'

Internal name. No spaces allowed

      DisplayName = 'Map output: Net Vertical Saturated Zone Flow - layer(s)'

Name displayed in the combobox

      Description = 'Distributed output: Saturated zone Stor­age (specified layer)'

Description displayed under the combobox

     NoGroups = 1

Number of calculation groups in the output file

      Group = 'SZ Vertical Flow(sz.qszzpos+ sz.qszzneg)'

Definition of the calculation group, consisting of a name and a sum of the particular water balance items (no spaces) from Table 6.1 to Table 6.7. Map items can only have one group (NoGroups = 1)

     EndSect  // WblTypeDefinition

 

EndSect  // MIKESHE_WaterBalance_ConfigFile

last line in the file

   

When making custom water balance types the format of the default water bal­ance configuration file must be maintained. Variable names, including names in square brackets, are case sensitive and the number of spaces in variable names must be consistent with the default configuration file.