This page describes how an existing configuration can be extended to accommodate output displays of the DRA and/or the RIV package.

Pre-condition:
Use the Modflow Module Adapter version from 16-09-2008 or later (1,970,290 byte if compiled with GNU95): Check the attachments on http://public.deltares.nl/display/NGMS/Step+4.++Setup+ModuleDataSets+and+Module+Adapter
Use Diagnostic_Search_Strings.dat dated 18-10-2008 (2,819 byte)

Step 1. Preparation

  1. Replace MFma_support.exe in c:\ngms\<region>\modules\bin\mf
  2. Replace Diagnostic_Search_Strings.dat in c:\ngms\<region>\modules\<model>\Mf<vkd>

Step 2. Update locations and grid specification

While the output of the RIV and DRA package can be produced as a grid covering the full model area, it is recommended to create a sparse grid (similar to the StreamCells-sparse grid), to save disk space. The Module Adapter contains functionality to accommodate the generation of such sparse grid. Once generated, this sparse grid needs to be copied to the main grids.xml file. In addition, the locations.xml file needs to hold a location-id which points to this grid.

Step 2.1 Update grids.xml

  1. extend module Adapter instructions for config preparation (XXX_prepare.in) by adding the following command(s):
    • RIV_OUT QRIV (creates a sparse grid of river cells)
    • DRN_OUT QDRA (creates a sparse grid of drainage cells)
    • GHB_OUT Q_GHB (creates a sparse grid of boundary cells)
  2. for each of the generated grids.xml:
    • copy the irregular grid-definition into the main grids.xml
    • rename the locationId into "<model>_DrainageCells_sparse_grid", resp. "<model>_RiverCells_sparse_grid", resp."<model>_BoundaryCells_sparse_grid".
    • replace the number of rows by 1
    • replace the number of columns by the number of grid-cells

Example generated)
<irregular locationId="EK_QDRA_Cells">
<description>EK_QDRA_Cells</description>
<rows>178</rows>
<columns>146</columns>
<geoDatum>Ordnance Survey Great Britain 1936</geoDatum>
<cellCentre>
<x>629057.56</x>
<y>139131.19</y>
<z>2.</z>
</cellCentre>
...
</irregular>

Example (Corrected)
<irregular locationId="EK_DrainageCells_sparse_grid">
<description>model grid placeholder</description>
<rows>1</rows>
<columns>353</columns>
<geoDatum>Ordnance Survey Great Britain 1936</geoDatum>
<cellCentre>
<x>629057.56</x>
<y>139131.19</y>
<z>2.</z>
</cellCentre>
...
</irregular>

Step 2.2 Update locations.xml

  • Add locationId for each new sparse grid

Example
<location id="EK_DrainageCells_sparse_grid" name="East Kent drainage cells">
<description>model grid placeholder</description>
<shortName>East Kent drainage cells</shortName>
<toolTip>East Kent drainage</toolTip>
<x>595600</x>
<y>194900</y>
<z>1</z>
</location>
<location id="EK_BoundaryCells_sparse_grid" name="East Kent boundary cells">
<description>model grid placeholder</description>
<shortName>East Kent boundary cells</shortName>
<toolTip>East Kent boundaries</toolTip>
<x>595600</x>
<y>194900</y>
<z>1</z>
</location>

Step 3. Update/verify the parameters list in the IdMap-files

  • Add parameter mapping for each idMap-file (except import_observerd)
    <parameter external="QDRA" internal="QDRA.xxxx"></parameter>
    where xxx refers to the scenario type (hist, nat, recact, fullic, lta, fullicS, whatif)
  • Save file with a new version number

Step 4. Update Module Adapter output Instructions file (XXX_output.in)

  • For each scenario, extend BINARY MAPSTACKS MERGE command with QDRA and QRIV

    Example
    BINARY_MAPSTACKS MERGE H, QX, QY, QZ, QSTR, QSTR_ACCU, QSTOR, Q_GHB, Q_HBND,

Step 5. Update Module Instances

  • Open the ModuleInstances spreadsheet for this model as well as the generator-spreadsheet with the macro's

Step 5.1. Update General Adapter import activities

  • add importMapstacksActivity for QDRA, QRIV using <model>_merged as a temporary time series (synchLevel 9, expires in 16 hour)

Example row in spreadsheet:

import

EK_QDRA_merged_MapStacks.xml

MapStacks

EK

runMF

grid

QDRA

EK_merged

9

hour

16

daysOfMonth="01 16"

Step 5.2. Add interpolation from full model grid to sparse river/drainage cells grid

  • add interpolation for QDRA, QRIV, Q_GHB, Q_HBND using <model>_xxxCells_sparse_grid as output

Example row in spreadsheet

EK

runMF

QDRA

drainage_QDRA

closestdistance

EK_merged

grid

QDRA

EK_DrainageCells_sparse_grid

grid

21

daysOfMonth="01 16"

EK

runMF

Q_HBND

boundary_Q_HBND

closestdistance

EK_merged

grid

Q_HBND

EK_BoundaryCells_sparse_grid

grid

21

daysOfMonth="01 16"

Step 5.3. Update compare between scenarios

  • add compare for QDRA, QRIV and Q_GHB, Q_HBND using <model>_xxxCells_sparse_grid as output

Example row in spreadsheet

interpolate

grid

QDRA

QDRA

EK_DrainageCells_sparse_grid

21

daysOfMonth="01 16"

interpolate

grid

Q_HBND

Q_HBND

EK_BoundaryCells_sparse_grid

21

daysOfMonth="01 16"

Step 5.4. Regenerate new Module instances

  • run the macro's
  • update file version before copying into the Config-directory

Step 6. Update displays

Typically, only an update of the GridDisplay will be needed.

Update grid display

  • Copy the row-set holding the display specification for Recharge
  • Paste after the last input parameter
  • Replace all references to recharge by the references to Drainage or River properties
    • Folder name
    • Parameter
    • LocationId

Example row in spreadsheet

level2

EK

swflow

out: Drainage flows

(m3/d)

 

 

 

 

 

 

 

 

level3

EK

QDRA_def

Default Scenarios

 

 

 

 

 

 

 

 

 

level4

 

QDRA_def_abs

Simulated Values

 

 

 

 

 

 

 

 

 

loc

EK

Naturalized

QDRA.nat

interpolate

ref(Naturalized)

 

EK_DrainageCells_sparse_grid

simulated historical

daysOfMonth="01 16"

week

0

1040

...

loc

EK

Comparison: Historic - Naturalized

QDRA.diff

compare

ref(Historic)_to_ref(Naturalized)

HN

EK_DrainageCells_sparse_grid

simulated historical

daysOfMonth="01 16"

week

0

1040

...

level3

EK

QDRA_mod

Modified Scenarios

 

 

 

 

 

 

 

 

 

level4

 

QDRA_mod_abs

Simulated Values

 

 

 

 

 

 

 

 

 

loc

EK

Modified Historic

QDRA.whatif

interpolate

whatif(Historic)

 

EK_DrainageCells_sparse_grid

simulated forecasting

daysOfMonth="01 16"

week

0

1040

...

loc

EK

Comparison (Historic): whatif - ref

QDRA.diff

compare

whatif(Historic)_to_ref(Historic)

HH

EK_DrainageCells_sparse_grid

simulated forecasting

daysOfMonth="01 16"

week

0

1040

...

  • No labels