MODFLOW 6
version 6.6.0.dev0
USGS Modular Hydrologic Model
|
This module contains the PackageBudgetModule Module. More...
Data Types | |
type | packagebudgettype |
Derived type for storing flows. More... | |
Functions/Subroutines | |
subroutine | initialize (this, mempath) |
@ brief Initialize a PackageBudgetType object More... | |
subroutine | set_name (this, name, budtxt) |
@ brief Set names for this PackageBudgetType object More... | |
subroutine | set_auxname (this, naux, auxname) |
@ brief Set aux names for this PackageBudgetType object More... | |
subroutine | set_pointers (this, flowvarname, mem_path_target, input_mempath) |
@ brief Point members of this class to data stored in GWF packages More... | |
subroutine | copy_values (this, nbound, nodelist, flow, auxvar) |
@ brief Copy data read from a budget file into this object More... | |
real(dp) function | get_flow (this, i) |
@ brief Get flow rate for specified entry More... | |
subroutine | da (this) |
@ brief Deallocate More... | |
The PackageBudgetType object defined here provides flows to the GWT model. The PackageBudgetType can be filled with flows from a budget object that was written from a previous GWF simulation, or its individual members can be pointed to flows that are being calculated by a GWF model that is running as part of this simulation.
subroutine packagebudgetmodule::copy_values | ( | class(packagebudgettype) | this, |
integer(i4b), intent(in) | nbound, | ||
integer(i4b), dimension(:), intent(in), contiguous | nodelist, | ||
real(dp), dimension(:), intent(in), contiguous | flow, | ||
real(dp), dimension(:, :), intent(in), contiguous | auxvar | ||
) |
The routine is called when GWF flows are read from a budget file created from a previous GWF simulation. Arrays here must be dynamically resized because maxbound is not known unless the entire budget file was read first.
this | PackageBudgetType object | |
[in] | nbound | number of entries |
[in] | nodelist | array of GWT node numbers |
[in] | flow | array of flow rates |
[in] | auxvar | array of auxiliary variables |
Definition at line 153 of file PackageBudget.f90.
|
private |
|
private |
Return the flow rate for the specified entry
this | PackageBudgetType object | |
[in] | i | entry number |
Definition at line 186 of file PackageBudget.f90.
|
private |
Establish the memory path and allocate and initialize member variables.
this | PackageBudgetType object | |
[in] | mempath | memory path in memory manager |
Definition at line 59 of file PackageBudget.f90.
|
private |
Set the number of auxiliary variables and the names of the auxiliary variables
this | PackageBudgetType object | |
[in] | naux | number of auxiliary variables |
[in] | auxname | array of names for auxiliary variables |
Definition at line 100 of file PackageBudget.f90.
|
private |
Set the name of the package and the name of the of budget text
this | PackageBudgetType object |
name | name of the package (WEL-1, DRN-4, etc.) |
budtxt | name of budget term (CHD, RCH, EVT, DRN-TO-MVR, etc.) |
Definition at line 86 of file PackageBudget.f90.
|
private |
The routine is called when a GWF model is being run concurrently with a GWT model. In this situation, the member variables NBOUND, NODELIST, FLOW, and AUXVAR are pointed into member variables of the individual GWF Package members stored in BndType.
this | PackageBudgetType object | |
[in] | flowvarname | name of variable storing flow (SIMVALS, SIMTOMVR) |
[in] | mem_path_target | path where target variable is stored |
Definition at line 119 of file PackageBudget.f90.