Go to:


Organization of the Modules-directory organization.

The Modules directory is the place where the majority of the data sets are held and where the models are executed. The directory structure is organized as follows:

  • At the top level, a distinction is made between the binaries and the models.
  • the \bin-directory holds the executables and libraries for Modflow, PCRaster and possibly other codes.
  • Each model has its own directory which will hold all relevant model data for Modflow and the recharge model.
  • The Modflow directory holds the Modflow data sets organized by scenario type:
    • \Nat is the workspace for the Naturalized run
    • \Hist is the workspace for the Calibrated Historic run and its what-if runs
    • \RecAct is the workspace for the RecentActual run
    • \FulLic is the workspace for the FullyLicenced run
    • \Lta is the workspace for the LongTermAverage run
  • Each workspace holds five directories.
    • the \baseData directory holds the Modflow data files which remain fixed for all runs
    • the \fromNGMS directory is used to exchange data from the system towards the Modflow Module Adapter to be converted
    • the \logs directory holds all the log files which are dumped in case of failure
    • the \toNGMS directory is used to hand back data from the Module Adapter towards the NGMS
    • the \workMF directory is the place where e the execution of Modflow is conducted and where the native output is placed.
    • the root holds the instruction-files and MsDos-batch files to run Modflow and the moduelAdapter
  • The Modflow-root directory also holds some files for the moduelAdapter:
    • ParameterIds.dat defines the parameters as recognized and used by the moduel Adapter
    • diagnostics_search_strings.dat defines the strings that filter dedicated diagnostics information from the Modflow.OUT file. This data is written to a diagnostics.xml file which can be visualized in the log of NGMS.
    • residual_search_strings.dat defines the strings that filter the residual flow and head convergence information from the Modflow.OUT file. This data will be written to a time series-file.

All model-related directories use abbreviations to keep the path length sufficient short, such that it can be handled by the Modflow-executable.

ModuleDataSet.zip-files.

To ensure that each workflow starts with the original Modflow data files, a mechanism has been defined where the files that may be modified by the Module Adapter (i.e. the BAS, WEL and RCH file) are being refreshed from an original 'source'.

Therefore, the WEL and RCH file are contained in a so-called ModuleDataSet.zip-file. At the start of each workflow, the FEWS-General Adapter module unpacks this file - stored in directory \Config\ModuleDataSetFiles - and places it into the workMF directory.

Model states.

A model state

Modflow Module Adapter

The purpose of Modflow Module Adapter is to convert data from the Modflow native format into the FEWS-Published Interface format (i.e. a set of XML-file defines also referred to as PI) and vice versa.

The exact details of the Modflow Module Adapter are described in a Word-document, but this section highlights the main files needed for its operation:

  • the IN file (instructions)
    The IN file provides the instructions to the Module Adapter, as well as pointers to the files and directories it needs to execute its tasks.
    Note 1: the Module Adapter stops executing all commands if it hits a blank line.
    Note 2: the Module Adapter expects a new line after the last command
  • the OFS file (offset)
    Since the FEWS software needs geographic and calendar information to hold and visualize the Modflow data, a so-called offset-file (OFS) has been defined which provides this data to the Module Adapter. The OFS file is different for each model (due to the geographic information) and may vary between runs as well (due to the calendar information).
    The IN-file refers to the OFS file that needs to be used.
  • the ParameterIDs.dat file
    The ParameterIDs.dat file is required which informs the Module Adapter on the Parameter-Ids to be used in its data exchange.
  • the .._search_string.dat file
    The FEWS software can only accept logging information in its diagnostics.xml format. This _search_string.dat file identifies which portions of the Modflow.OUT file should be communicated to the NGMS.


OFS file

WMW working sample

fully populated example (WMW)

explanation

371000, 260000

371000, 260000

X,Y-coordinate Lower Left Corner

0

0

rotation

1970-01-01 00:00:00

1970-01-01 00:00:00

start date time (yyyy-dd-mm hh:mm:ss)

m

m

length unit

Ordnance Survey Great Britain 1936

Ordnance Survey Great Britain 1936

geoDatum (to be copied into location-files)

 

 

(optional) X,Y-coordinate Upper Left Corner

 

 

(optional) cell dimensions

 

daysOfMonth="1"

(optional) XML time step descriptor




IN file

sample

explanation

logs\XXX_input_diag.xml

Filename (+ relative path) of the Diagnostic file

XXX.nam

Filename (+ relative path) of the Name file

XXX

Location ID of the model (i.e. model abbreviation)

workMF\XXX.ofs

Filename (+ relative path) of the Offset file

..\ParameterIDs.dat

Filename (+ relative path) of the file containing parameter IDs

fromNGMS

Name (+ relative path) of the 'From NGMS' directory

toNGMS

Name (+ relative path) of the 'To NGMS' directory

-1e-10

Missing data value

see below + guide

List of Module Adaptor commands to be executed

Note 1: the Module Adapter stops executing all commands if it hits a blank line.
Note 2: the Module Adapter expects a new line after the last command


Module Adapter commands

Look in the Word-document for the details

  • Extracting model inputs
    • AQUIFER_PROPS (to obtain aquifer properties)
    • GRID_OUT (to obtain grid cell coordinates in grids.xml format)
    • STREAM_DIRECTIONS (to transfer drainage network as defined in STR file into PCRaster format)
    • RECHARGE_OUT (to obtain recharge as defined in RCH input file)
    • WELLS_OUT (to obtains abstractions as defined in WEL file)
    • WELLS_OUT *MERGE* (to obtain abstractions merged by RowColumn position)
    • STR_DISCH_OUT (to obtain the runoff and discharges/abstractions as defined in STR input file, also used to provide stream cell coordinates in grids.xml format)
    • RIV_OUT (to obtain the river cell coordinates in grids.xml format)
    • DRA_OUT (to obtain the drainage cell coordinates in grids.xml format)
    • GHB_OUT (to obtain the boundary cell coordinates in grids.xml format)
  • Extracting model outputs
    • DIAGNOSTIC (to obtain logging information)
    • BINARY_MAPSTACKS (to obtain output for all individual layers)
    • BINARY_MAPSTACKS *MERGE\ (to obtain output of all layers merged in one data set, e.g. upper water table)
    • WATER_BALANCE (to obtain water balance as compute by Modflow)
    • BAS_TEMPLATE (to put heads from an HDS-file as initial heads in BAS-file)
  • Updating inputs
    • BAS_IN (to set stress periods)
    • RECHARGE_IN (to update recharge)
    • EVT_IN (to update evaporation rates)
    • STR_IN (to update time series in stream file)
    • WELLS_IN (to update time series in WEl file)
    • WELLS_ADD (to add new abstractions to WEL file)



  • No labels