Tutorial:: Visual MODFLOW Flex 6.1
Tutorial:: Visual MODFLOW Flex 6.1
MODFLOW-USG Tutorial
1 MODFLOW-USG Tutorial
Objectives
· Open and review a VMOD Flex project that contains a conceptual model
· Define an UnStructured Grid, with refinement around the wells and boundaries
· Understand how Visual MODFLOW flex accommodates inputs and outputs for a
MODFLOW-USG model
Pre-requisites
Please Note: if you are unable to locate the project for this tutorial, you may
download a copy from our website
· Click on the 'Define UnStructured V-Grid' button, and the following window will
appear:
The first step in defining the Unstructured Grid is to provide the desired shape add-ins. These
are polylines, polygons, and points within the model boundary. The grid generator in VMOD
Flex will use these as control points (grid generator nodes) during creating the unstructured
grid. By default, the Add-ins List contains the model boundary (polygon) and any linear or
point boundary condition currently defined for the conceptual model. Additional add-ins may
be added to the list using data objects from the Data Explorer, and then clicking on [Add-In
Lines/Points/Polygons] button (For example, you may want to add-in the points that represent
your head observations (targets), so that these lie horizontally in the middle of an unstructured
grid cell. Likewise, you can conform the grid around geological features such as
faults/fractures). An Add-in may be included or excluded in the grid creation, by checking or
unchecking the corresponding check box, respectively. When an add-in is “checked” it will
also be displayed in the adjacent 2D Viewer preview window.
· Click the [Next>>] button to proceed.
In the second dialog, you can define various discretization settings for the horizontal grid and
adjust refinement levels and smoothing around the line and point add-ins.
· Click the [Generate] button (located in the bottom middle section of the window). A
preview of the USG grid will appear in the adjacent 3D viewer. If you are not satisfied
with the grid, you can modify the settings and regenerate the grid by selecting the
Generate button again.
· Click [Finish] to generate the numerical grid and close the window.
The Unstructured Grid will be added as a new data object to the Conceptual Model tree, under
the Simulation Domain folder, and should appear as shown below.
· Click the 'Convert to MODFLOW-USG Model' step in the list of workflow steps (if
you're not already there)
· Click the [Convert to Numerical Model] button
The conversion process will begin; this may take a few moments. Note that for larger grid
sizes and more complex boundary conditions, this conversion process may take several
minutes.
After the conversion is complete, a new workflow tab will appear, titled "UnStructuredGrid1-
Run1". This workflow will provide you the tools and displays for navigating the MODFLOW-
USG Numerical Model (keeping in mind that you were previously navigating and working with
a Conceptual Model). More details on the specifics of each step can be found in the section
MODFLOW-USG Numerical Modeling Workflow.
In addition, you will now see new items in the Model Explorer, under the UnstructuredGrid1
node (in the lower left corner of your window), with a Run folder containing Inputs (Properties
and Boundary conditions) and Outputs (Heads and Drawdown, which will be added after a
successful MODFLOW-USG run). For the boundary conditions, you will see nodes for groups
of boundary condition cells that were generated: Constant Head boundaries, River, and the
Pumping Wells.
Define Properties
The first step that appears in the workflow is Define Modeling Objectives step. This step
allows you to define type of model which will be run and to define many default property
values. These values should be identical to the values initially defined in the 'Define Modeling
Objectives' step during the conceptual modeling workflow. For now we will retain all the
default values.
The Define Properties workflow step will appear, which lets you edit Conductivity, Storage,
and Initial Heads values in your numerical model.
By default, Conductivity will be displayed in the 3D viewer. All UnStructured grid cells will be
drawn and colored by the Kx.
In order to gain a better perspective, you need to apply a Vertical Exaggeration and rotate the
3D Viewer.
Now you will rotate the 3D view to see the property zones from a side-view perspective.
· Left click with the mouse near the bottom middle section of the 3D display
· Hold down the left-mouse button, and drag your mouse upwards towards the top of the
VMOD Flex window, then release the mouse button. By clicking and dragging the
mouse in the viewer window you can position the image however you like. You may
need to select the rotate button from the toolbar on the right side before clicking and
dragging the mouse.
· Above the 3D Viewer, you will see a set of standard navigation tools for zoom in/out,
pan, and rotate which you can use to further manipulate the view.
In order to change how the parameter values are displayed, you need to load the settings.
(This step is optional in the Tutorial exercise) Right-click on 'Conductivity' in the Model
Explorer, and select [Settings]. This will allow you to render by the parameter value (eg. Kx)
instead of by ZoneID, and also show cross-sectional slices and color maps. Take a moment
to experiment with these Settings, and when you are finished, click the [OK] button to close
the Settings.
In order to see another parameter group, you need to de-select (remove the checkbox beside)
Conductivity in the Model Explorer, then select (add a check-box beside) the new parameter
group, eg. Initial Heads. Take a moment to experiment with these options.
Take a moment to zoom into the river and constant head cells to see the boundary condition
cell geometry. You may need to switch layers to see the boundaries.
Each boundary condition will be colored differently. All wells and line-based boundary
conditions will be shown by default.
The display settings for a group of boundary condition cells can be adjusted through the
settings. We will turn on the Cell ID for the well cells.
· Locate 'PumpingWell1' in the Model Explorer, under 'Run1/Input/Boundary
Conditions/Wells'
· Ensure 'PumpingWell1' is being displayed by activating the checkbox ( ) þ
· Right click on this item and select [Settings...]
· Expand [Style]>[Cells]
· þ beside 'Show Cell ID labels'
· Click [OK]
· You should now see the Cell ID drawn beside the two well cells in the 3d viewer. If these are
hard to read, try changing the grid color by editing the 'UnstructuredGrid1' settings. You
can also change the background color by right-clicking in the 3D viewer and selecting
'Background Color'. You will need to zoom into the two pumping wells in order to see the
Cell ID label. The Cell ID can assist when editing the numerical values, or when cross-
checking the values in the .WEL package. For more details on editing the numerical values
for boundary conditions, see View and Edit Boundary Conditions
· Click the 'Select Next Step' workflow step in the workflow navigator
· Click the 'Define Zone Budget Zones' button
· Under the toolbox, click 'Assign' > 'Using data object...'
· From the 'Data Tree' select the 'river' data object
· Click on the [ ] button in the 'Select geometry object' window
· Click OK
· The 'Create new zone budget zone' window will appear
· Click 'New' to create a new zone budget zone (i.e. Zone 2, blue)
· Ensure 'Layer 2' and 'Layer 3' are selected in the 'Assign to layer' frame
· Click OK
· Now assign the zone budget zone for our pumping wells
· Zoom to the location of the pumping wells (lower-right corner)
· Under the toolbox, click 'Assign' > 'Single'
· Click both cells containing pumping wells (i.e. the two 'central' cells)
· Click 'Finish' under the toolbox
· Click 'New' to create a new zone budget zone (i.e. Zone 3, green/teal)
· Ensure 'Layer 2' and 'Layer 3' are selected in the 'Assign to layer' frame
· Click OK
In the Model Explorer, you can activate the 'Zone Budget1' object to display the distribution of
zone budget zones. If you turn this object on and zoom to the lower-right corner of the model
you should be able to view all three zone budget zones at once (see image below):
Define Particles
You should now see the 'Select Next Step' workflow step. At this stage you can define several
optional model elements such as particles (for mod-PATH3DU simulations), Zone Budget
Zones (for ZoneBudget-USG simulations), and observation wells (for calibration charts).
Let's define some backward tracking particles around our pumping well objects. These will
help us to delineate a capture zone for these wells.
You should see a circle of particles appear around the pumping wells in the lower-right corner
of the model, as shown below (note: background color changed, and image is zoomed to
location of the particles):
· Click [ ] (Next Step) to proceed to the 'Select Run Type' workflow step
· Click [ ] (Next Step) to proceed to the 'Single Run' workflow step
· Activate Zone Budget and particle tracking:
· ZONEBUDGET-USG
· Particle Tracking
· Click [ ] (Next Step) to proceed to the 'Translate' workflow step
The translation will begin, it should complete in approximately 5-10 seconds. At this stage, if
any errors or warnings are encountered with any of the packages, you will be notified. Take a
moment to preview the MODFLOW-USG input files; each package will appear as a separate
tab across the top of the window.
· When you are finished, you can proceed to the run step.
Run MODFLOW-USG
The MODFLOW-USG Engine will start running and show progress of the model run in the
main viewer window. After the model converges you can view the summary of the mass
balance for the last time step in each stress period.
· By default the view is plan (from above); take a moment to rotate the view as previously
described, and apply the desired vertical exaggeration (40 is ideal for this example). The
default option is to the selected layer as a slice. You can display heads along a specific
layer, or cross-section by adjusting the settings.
· Right-click on 'Heads' from the Model Explorer (under 'Run1/Output/Flow'), and
select [Settings] from the pop-up menu:
· Next from the 'Settings' tree on the left, expand 'Slice', turn on the check box beside
'Show Slice', and change the Slice Type to 'Row'. You will also change the 'XZ Slice
Position' to '50'. This indicates that a cross-section will be displayed in the X direction,
including all cells which intersect the desired location. The XZ slice position value is
expressed as a percentage of the entire distance in the selected direction.
· Click the [OK] button to apply these changes to the 3D View, and close the 'Settings'
window.
· You should then see cells rendered along the X direction, approximately half-way
through the model domain, as shown below:
· For Transient models, the 3D Displays can be updated to display calculated heads (or
drawdown) from different time steps. Use the time-step picker menu above the 3D
viewer to choose from the available time-steps. Additional options for time steps are
located in the 'Settings'.
· Repeat the same steps above to load the 'Settings' window. Expand 'Style', and
select the 'Time' node from the tree, and you should see the following display:
· In the 'Settings' window, activate the ' Show time label' checkbox
· In the main window, above the 3D View, you should see a 'Time-Step Picker' menu,
which lists available output times. Choose the desired output time from this list and the
3D View will update with the calculated heads from that time step. Take a moment to
experiment with these options.
· If you select the final time step, the resulting view should look like the following image:
Export
The calculated heads and drawdown can be exported to shapefile (point or polygon) or .CSV,
for further post-processing. This option is available by right-clicking on the 'Heads' item on
the Model Explorer, and selecting [Export...]. The heads can be exported to either point or
polygon shapefiles, with attributes. This option is not covered in this Tutorial exercise.
· Select the [View Charts] item from the workflow tree, under 'View Results'
· Select the 'All Obs' check box in the Charts panel, as shown below.
· Click the [Apply] button. You will then be presented with the graph for Calculated vs.
Observed Heads.
You can change the chart type to display 'Time Series' graph, and see the corresponding
charts for the desired observation points. An example is shown below, with "All Obs." visible.
· Click the 'Zone Budget' button located above the 'Chart Type' menu
· You should see the following window open (the four sub-windows have been
rearranged to better display the contents of the Zone Budget window):
Zone budget analyses are an easy way for you to better understand the water budget in areas
of interest within your model.
· Once you have reviewed the Zone Budget results you may close the Zone Budget
window
If, after running the numerical model for your project, you
find that the grid is not suitable or stable, you can return
back to the "Define UnStructured Grid" step, create a new
grid (with different refinement levels), and generate a new
numerical model. You can then translate and run this
model. In this fashion, you can evaluate multiple numerical
models, with very little effort, in order to find the best
balance between model run times and accuracy.
· At the top of the grid view you will see a list of active tabs. Click the 'Conceptual Model
2' tab to return to the conceptual modeling workflow.
· Return to the 'Select Grid Type' workflow step, as shown below
The 'Create Unstructured Q-Grid' window includes a list of the data objects which have
been used to define model elements (e.g. polyline, polygon or points data objects used to
define boundary conditions). Using the 'Refine' and 'Refine to Min' buttons in the table allow
you to perform successive refinements around the selected data object. The 'Refine' button
will split all cells containing the selected data object into four equally sized cells. The 'Refine
to Min' button will perform successive refinements until a given minimum area threshold
(user defined, in the 'Min Area' column) is reached. Experiment with these options and
perform some refinements around the pumping well, river and constant head boundary
objects.
· Click OK
The unstructured Q-grid is now available for the conceptual to numerical model conversion.
Follow the same steps as above to convert the conceptual model to a numerical model,
review properties and boundary conditions, apply zone budget zones and/or particles, and
finally translate and run the unstructured Q-grid model.
Once you have completed these steps you should see results similar to the following images
displaying head distributions, particle pathlines and zone budget results, respectively (note:
results are displayed for a steady-state simulation):