Navigation:  Quick Start Tutorials >

Importing Visual MODFLOW/MODFLOW Models Tutorial

 

The following example is a quick walk-through of the basics of importing an existing Visual MODFLOW Classic or MODFLOW data set.

 

Objectives

Learn how to create a project and import an existing numerical model

Become familiar with navigating the GUI and steps for numerical modeling

Learn how to view and edit properties and boundary conditions, in a variety of views

Translate the model inputs into MODFLOW packages and run the MODFLOW engines

Understand the results by interpreting heads and drawdown in several views

Check the quality of the model by comparing observed heads to calculated heads

 

Required Files

This tutorial is designed to allow you to work with the provided example files or you can select your own Visual MODFLOW Classic or MODFLOW project, and follow through the steps. If you wish to use the model that is shown in the following example, it can be found in the Visual MODFLOW Flex documents folder, which is typically:

C:\Users\Public\Documents\Visual MODFLOW Flex\Tutorials\VMOD Import\vmod-model-import\vmod-model

 

If you cannot locate these files, they are also available to be downloaded from our website.

 

Importing a Visual MODFLOW Classic Project

The release of Visual MODFLOW Flex v5.0 introduced a new method of importing Visual MODFLOW Classic projects. This new method simplifies the process to import an existing Visual MODFLOW Classic project. The new method combines the 'Create a new project' and 'import model files' processes into a single step. This section describes the new procedure for importing Visual MODLFOW Classic projects. The old/customary method of importing Visual MODFLOW Classic and other MODFLOW projects is covered in the next section (Create the Project and Import Model Files).

 

If you import your Visual MODFLOW Classic project using this new method, please follow the steps in this section and then skip ahead to the 'View/Edit Grid' section. Please note that this method does not work for other MODFLOW projects, it is specific to the import of Visual MODFLOW Classic projects.

Launch Visual MODFLOW Flex

Select [File] then [Import Project..].

Browse to the location of your Visual MODFLOW Classic project and select the Visual MODFLOW Classic file (i.e. wellhead-capture-zone.VMF file). This project file will be contained in the folder:
 
       C:\Users\Public\Documents\Visual MODFLOW Flex\Tutorials\VMOD Import\vmod-model
 

Click [Open].

The 'Import Visual MODFLOW Classic Project' window will open:

 


 

Enter a project name for the Visual MODFLOW Flex project (by default it will enter the same project name as the Visual MODFLOW Classic project).  In this example the project has been named 'VMOD Import Tutorial'

Select a data repository for the Visual MODFLOW Flex project, select whether to create a folder for the project, and provide a description as required.

Click [Import]

A dialogue window will load showing the progress of the model import:

 

 

The dialogue window should indicate that all model elements have been imported successfully. Note that there may be some warning messages that are generated indicating that there are no distributed concentrations. Dismiss the warning. The following model components will be loaded: grid, model properties, boundary conditions, MODPATH/ZoneBudget inputs (i.e. zones, particles) and observation data.

 

Click [Close]

The new numerical model should be fully loaded, and the 'Define Modeling Objectives' workflow step will be active:

 

 

You can now continue with the regular numerical modeling workflow by proceeding to the section of this tutorial titled View/Edit Grid.

Creating the Project and Import Model Files

This section describes the procedure for importing MODFLOW project files (developed independently of the Visual MODFLOW Classic/Flex interface) into the Visual MODFLOW Flex interface. This procedure can also be used to import Visual MODFLOW Classic projects, but the procedure outlined in the previous section (for Visual MODFLOW Classic projects) is more streamlined.

 

Launch Visual MODFLOW Flex .

Select [File] then [New Project..]. The Create Project dialog will appear.

Type in the project name 'Import Tutorial'.

Click the [] button, and navigate to a folder where you wish your projects to be saved, and click [OK].

Define your coordinate system and datum (or just leave the local Cartesian as defaults).

For this project, the default units will be fine.

 
The Create Project dialog should now look like this (units may be different):

 

 

Click [OK].  The workflow selection screen will appear.

Select [Numerical Modeling] and the Numerical Modeling workflow will load.

In this step, you define the objectives of your model and the default parameters.

 

 

For the Start Date, expand the date picker, and select 1/1/2000
 
Please Note: the start date for the numerical model is only relevant should you decide to import pumping well or observation data in absolute times; MODFLOW always uses relative time, with a start time = 0 (days or seconds)
 

Click [] (Next Step) to proceed.

At this step, you can choose to create a new empty numerical grid, or import an existing project.

 

 

Click the [Import Model] button.

Navigate to the folder that contains your Visual MODFLOW or MODFLOW project.

Or you can open the project located in: C:\Users\Public\Documents\Visual MODFLOW Flex\Tutorials\VMOD Import

Select the file (.VMF [VMOD Classic] or .NAM [MODFLOW] file) and click [Open] to continue. The import will start and you will see the status in the progress window.

oFor VMOD Classic projects, it is usually easier to follow the steps listed in the section above (i.e. simply click File > Import Project... from the main menu, and browse to and select a VMOD Classic project file (.VMF))

oIf the project was built in a different groundwater modeling program than the model name file (.NAM) must be selected instead

During the import, there are a few things to observe:

Flex runs a series of validation checks on the MODFLOW projects you import and will display warnings for any anomalies it finds. In the example project provided for this tutorial, Flex will warn you that the wellheads-capture-zone.mbu file is missing from the project you are importing.

Hit [OK] to continue.

 

 

The status of each model element import is shown in the main window; any detected errors will be shown here.

After the import, you will see the 'Model Explorer' is populated in the bottom left corner of the screen; from here, you can show/hide different model inputs/outputs.
 
Please Note: You can add other data objects to the model, such as an image or other raw data (polyline/polygon shapefiles). These files need to first be imported, then they can be displayed at the one of the subsequent steps ('View Grid', 'Define Properties', 'Define Boundary Conditions') or in a 3D viewer by selecting [Window] then [New 3D Window], then checking on the box beside the appropriate data object.
 

Click [] (Next Step) to proceed, where you will arrive at the View/Edit Grid step.

 

View/Edit Grid

At this step, you can view the numerical grid in layer (plan) view, cross-sectional (along row or column), and 3D view.

There are numerous tools available to control and manipulate the grid views:

 

 

Under 'Views', select the various views you want to see in the Flex viewer; VMOD Flex allows you to simultaneously show a layer, row, column and 3D Views.  Place a check box beside the desired view and it will appear on the screen.

Adjust a specific layer, row, or column using the up/down arrows.  Alternatively, click on the [] button then click on any specific row, column, or layer in any of the 2D views, and the selected row, column, or layer will be set automatically.

 

The standard navigation tools allow you to zoom, pan, and in the case of 3D view, rotate.

Click [] (Next Step) to proceed to the Properties step.

Define Properties

At the this step, you can view/edit the flow properties for the model, including hydraulic conductivity, storage parameters, and porosity. If you are simulating transport, then transport related properties such as bulk density, dispersion coefficients, sorption, and reaction parameters can also be viewed and edited at this step.

 

 

Under the Toolbox, use the combo box to select from the various Property Groups: Conductivity, Storage, and Initial Heads.

For each parameter group, you can choose to render by Zones or by a selected attribute. Based on your selection, the color rendering in the views will change.

Click [Edit...] button to see the conductivity zones that exist in your model and the values in each individual cell.  

Use the same tools as described in the previous step to manipulate the views.

The display tools will allow you to switch from discrete cells rendering to color shading/contours.
 

The display tools will allow you to switch from discrete cells rendering to color shading/contours (note, this is available only when you are rendering by an attribute and not when you are rendering by ZoneID)
 

Show/hide grid lines

Show as cells

Show as Surface

 

At the bottom of the display, you will see in the status bar the position of your mouse cursor in the current view (XY) grid position (Layer, Row, Column), grid dimension (cell width, length, and thickness), and the Zone ID or attribute value for the selected cell.

Click [] (Next Step) to proceed to the Boundary Conditions step.

Define Boundary Conditions

At this step, you can view/edit the flow (and transport) boundary conditions for the model.  By default, Constant Heads (if any) will be displayed in the model. In order to see other boundary conditions, you can set these to visible from the Model Explorer (check on the appropriate cell groups or boundary condition category).  All cells in a visible (checked) boundary condition will be displayed in a 3D view; however, you will only see in boundary condition cells in the current layer, row, or column in the layer, row, or column views respectively. Also, when you choose another boundary condition from the Toolbox (e.g. River), then this set of boundary condition cells will become visible.

 

 

From the toolbox, select the desired boundary condition group (Constant Head, Rivers, etc..)

Then select [Edit...].  

Click on a cell that belongs to the boundary you are interested in; a dialog will appear where you can see the parameters for all cells in that boundary. If you want to switch to see values in a different boundary, you can select it in the grid view and the dialog will automatically update to show the new boundary.

For Recharge or Evapotranspiration, you need to select this Boundary Condition type from the list under the Toolbox, and the Recharge/EVT zonation will appear. A [Database] button will be enabled allowing you to view the zonation.

You can also assign new boundary conditions to the model using the [Assign] options; for more details, please see Define Boundary Conditions

Click [] (Next Step) to proceed. You will arrive at the "Select the Next Step" options screen

Proceed to Run or Define Optional Model Elements

You will arrive at a choice screen; where you can proceed to define some of the “non-essential” inputs for the model, such as Zone Budget Zones, Particles, and Observation Wells.  Or, you can proceed to setting up a model simulation run.

 

 

Click the [Select Run Type] button to proceed (Mouse over this and you will see the blue [] arrow appear on top; just left click once to select this option.  (Alternatively, the []  (Next step) button will take you to this step, as it is pre-defined as the default step.)

 

Click the [Single Run button] to proceed. (Alternatively, the [] (Next step) button will take you to this step, as it is pre-defined as the default step.)

 

 

You will arrive at the 'Select Engines' step.  Here you can choose which engine(s) you want to run (i.e. what version of MODFLOW-2000, -2005, etc.., and if you want to include MODPATH and ZoneBudget in the run.

The version of MODFLOW that you used in the Visual MODFLOW Classic model should be selected by default; if you wish to run MODPATH and ZoneBudget, be sure to select these engines as well.
 
Please Note: ***De-select MT3DMS engine.*** since transport inputs are not fully defined for this model.
 

Click [] (Next Step) to proceed.

Translate Packages

You will arrive at the 'Translation Step'.

At this step, you can choose:

owhether to run the simulation as steady-state or transient,

othe numerical solver you want to use, and

odefine other MODFLOW package/run settings, such as cell-rewetting, etc.
 

Some of the translation settings are not fully imported from the Classic model, including the option to run the model as Steady-State vs. Transient (although all of the schedule will be preserved) and the solver settings.  These will need to be reviewed and set.For more details, see MODFLOW Translation Settings.

 

Click the MODFLOW-2005 > Settings node in the translation tree and verify the following settings:

oProperty Package = BCF6

oRun Type = Transient

 

 

Click the MODFLOW-2005 > Solvers node in the translation tree and verify the following settings:

oSelected Solver =  BiCGSTAB-P Matrix Solver (WHS)

oMax. inner iterations (ITER1) = 50

oResidual criterion (RCLOSE) = 0.001
 

 

Click the [] button to proceed; this will read the input from the numerical model and “translate” this into the various input files needed by MODFLOW and the other engines. The files will be created in a file directory in the project structure that is accessible by pressing the folder [] button in the toolbar.

 

 

Click the []  (Next step) button to proceed. You will arrive at the “Run Engines Step”.

 

Run Engines

Click the [] button on the main workflow toolbar to start running the engines.  You will see a tab for each Engine that includes feedback on the progress of the simulation. Flow and transport engine windows also include a chart of the mass balance residuals and maximum cell value changes as reported by the engine solver.  Engine runs that complete successfully with include a green checkmark to the left of the engine tab label.

 

 

Note that after a successful run, the Heads, Pathlines and other output items will be added to the tree in the model explorer.

Once finished, Click the []  (Next step) button to proceed.

View Results

You can then choose to view results in the form of Maps (Contours and Color shading) or Charts.

 

View Maps

Click the [View Maps] button.

You will then see color shading of the calculated heads, in layer view.

 


 

You can display heads along a row, and along a column, and in 3D, using the same tools as you used earlier. (refer to View/Edit Grid section)

If your model is transient, use the time controls above the Flex Viewer to change the output time; as you do this, all active viewers (layer, row, column, 3D), will refresh to show the heads (or other visible outputs) for the new time.

 

 

If you ran MODPATH, you will see Pathlines appear as a new node in the 'Model Explorer' tree under Output; add a check box beside the Backward Pathlines (i.e. [Points Group1 Pathlines]) to display these in the active 2D/3D Viewers.  You may need to zoom into the middle of the layer view to see the pathlines. (You can automatically zoom to an object by right-clicking on it in the Model Explorer and selecting "Zoom to Object"

 

Please Note: you may need to revise the particle settings before running MODPATH. Right-click the existing particle group object in the Model Explorer and select 'Edit' to change particle group settings. Remember that backward particles should have a release time at the end of the simulation and an end time at the beginning of the simulation.

 

 

The pathlines are well represented in a 3D Viewer.

 

Turn on the check box beside 3D View, in the available views

Turn off the check box beside Layer View

From the Model Explorer, turn off the check box beside Heads

From the Data explorer (raw data), turn on the check box beside "Vmod Imported Wells"

Take a moment to rotate your 3D view, and zoom in, and you can get a display similar to the one shown below.

 

 

You can also display velocity vectors, which will allow you to easily display and interpret flow fields.

 

Turn off the check box beside 'Points Group 1 Pathlines' in the Model Explorer

Turn on the 'Velocity' output option, in the Model Explorer under 'Outputs' > 'Flow'

Access the Velocity display settings by right-clicking and selecting 'Settings'

In the Settings window, access the 'Style' > 'VelocityMap' settings

 

Velocity vectors may be displayed using average linear or Darcy velocities. In-plane velocity vectors can be displayed using the full magnitude of the vector (i.e. the out-of-plane velocity component will be included), as a projection (i.e. only the in-plane velocity component is displayed), or simply a directional indicator (i.e. the size of the arrow is not dependent on the actual velocity). By default, the velocity vectors will initially be displayed as a projection with average linear velocity values, on a linear scale.

 

A normal velocity color map function is also supported, which allows you to interpret flows perpendicular to the selected layer/row/column (i.e. out-of-plane flow). By default the normal velocity color map will be displayed with a red/blue color scheme, with red areas indicating flow inward (i.e. corresponding to the positive X, Y or Z direction), and blue areas indicating flow outward (i.e. corresponding to the negative X, Y or Z direction). Areas with velocities below the specified in-plane range threshold will be displayed using the specified In-plane color (which is grey by default). You can find more information about the velocity map display settings in the 3D Gridded Data section of this manual.

 

Update the velocity map settings as follows:

 

In the 'Color' frame, select the 'Custom' option, and select 'Yellow' as the display color

In the 'Velocity type' frame, select the 'Darcy' option

In the 'Scale factor' frame, type a scale factor of 3.0

Deselect the 'Show legend' option, so that the legend will be hidden

 

The Velocity should be similar to the following:

 

 

 

Click Apply

Select the Colors tab and set the In-plane range to 3.00%

       

 

Click OK

 

 

Take a moment to rotate your 3D view, and zoom in, and you can get a display similar to the one shown below.

 

View Charts

Click 'View Charts' from the workflow tree. You can open the Mass Balance, Zone Budget, or Open Dashboard at this step. For this tutorial, we will click on Open Dashboard.

Click [Open Dashboard] to proceed.

 

The following window will appear:

 

 

Take a moment to view the correlation between calculated and observed heads.

 

Note that the values of the calculated heads are all greater than their respective observed values.  This indicates that the model may require some adjustments to more accurately fit the observations. As an optional challenge, see if you can improve the fit.

Click 'Chart selector' [] button.

Then, under 'Chart selector' select 'Time Series' and deselect "Calc vs. Obs"

Click [Close] and the following window will appear:

 

 

In the chart above, there are many time series data - the chart may be more easy to interpret if you look at one (or a small) number of charts at a time.  You can use the filtering tools in the first row of the tabulated data to filter the data shown on the chart.

 

*****This concludes the 'Importing Visual MODFLOW/MODFLOW Models' tutorial.*****

 

 


Page url:http://www.waterloohydrogeologic.com/help/vmod-flex/index.html?importing_vmod_modflow_models.htm