MODFLOW 6
version 6.7.0.dev0
USGS Modular Hydrologic Model
|
This module contains the CDB package methods. More...
Data Types | |
type | swfcdbtype |
Functions/Subroutines | |
subroutine, public | cdb_create (packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, cxs, lengthconv, timeconv) |
@ brief Create a new package object More... | |
subroutine | cdb_allocate_scalars (this) |
@ brief Allocate scalars More... | |
subroutine | cdb_allocate_arrays (this, nodelist, auxvar) |
@ brief Allocate arrays More... | |
subroutine | cdb_da (this) |
@ brief Deallocate package memory More... | |
subroutine | cdb_options (this) |
@ brief Source additional options for package More... | |
subroutine | log_cdb_options (this, found) |
@ brief Log SWF specific package options More... | |
subroutine | cdb_rp (this) |
@ brief SWF read and prepare More... | |
subroutine | cdb_cf (this) |
@ brief Formulate the package hcof and rhs terms. More... | |
real(dp) function | qcalc (this, i, depth) |
Calculate critical depth boundary flow. More... | |
subroutine | cdb_fc (this, rhs, ia, idxglo, matrix_sln) |
@ brief Copy hcof and rhs terms into solution. More... | |
subroutine | define_listlabel (this) |
@ brief Define the list label for the package More... | |
logical function | cdb_obs_supported (this) |
Determine if observations are supported. More... | |
subroutine | cdb_df_obs (this) |
Define the observation types available in the package. More... | |
subroutine | cdb_bd_obs (this) |
Save observations for the package. More... | |
subroutine | cdb_rp_ts (this) |
Assign time series links for the package. More... | |
real(dp) function | cdb_bound_value (this, col, row) |
@ brief Return a bound value More... | |
Variables | |
character(len=lenftype) | ftype = 'CDB' |
package ftype More... | |
character(len=16) | text = ' CDB' |
package flow text string More... | |
This module can be used to represent outflow from streams using a critical depth boundary.
subroutine swfcdbmodule::cdb_allocate_arrays | ( | class(swfcdbtype) | this, |
integer(i4b), dimension(:), optional, pointer, contiguous | nodelist, | ||
real(dp), dimension(:, :), optional, pointer, contiguous | auxvar | ||
) |
Allocate and initialize arrays for the SWF package
Definition at line 147 of file swf-cdb.f90.
|
private |
Allocate and initialize scalars for the CDB package. The base model allocate scalars method is also called.
this | SwfcdbType object |
Definition at line 126 of file swf-cdb.f90.
|
private |
Method to save simulated values for the CDB package.
this | SwfCdbType object |
Definition at line 455 of file swf-cdb.f90.
|
private |
Return a bound value associated with an ncolbnd index and row.
[in,out] | this | BndExtType object |
Definition at line 530 of file swf-cdb.f90.
subroutine swfcdbmodule::cdb_cf | ( | class(swfcdbtype) | this | ) |
Formulate the hcof and rhs terms for the CDB package that will be added to the coefficient matrix and right-hand side vector.
this | SwfCdbType object |
Definition at line 268 of file swf-cdb.f90.
subroutine, public swfcdbmodule::cdb_create | ( | class(bndtype), pointer | packobj, |
integer(i4b), intent(in) | id, | ||
integer(i4b), intent(in) | ibcnum, | ||
integer(i4b), intent(in) | inunit, | ||
integer(i4b), intent(in) | iout, | ||
character(len=*), intent(in) | namemodel, | ||
character(len=*), intent(in) | pakname, | ||
character(len=*), intent(in) | mempath, | ||
class(disbasetype), intent(inout), pointer | dis, | ||
type(swfcxstype), intent(in), pointer | cxs, | ||
real(dp), intent(in) | lengthconv, | ||
real(dp), intent(in) | timeconv | ||
) |
Create a new CDB Package object
packobj | pointer to default package type | |
[in] | id | package id |
[in] | ibcnum | boundary condition number |
[in] | inunit | unit number of CDB package input file |
[in] | iout | unit number of model listing file |
[in] | namemodel | model name |
[in] | pakname | package name |
[in] | mempath | input mempath |
[in,out] | dis | the pointer to the discretization |
[in] | cxs | the pointer to the cxs package |
[in] | lengthconv | conversion factor from model length to meters |
[in] | timeconv | conversion factor from model time units to seconds |
Definition at line 70 of file swf-cdb.f90.
subroutine swfcdbmodule::cdb_da | ( | class(swfcdbtype) | this | ) |
Deallocate SWF package scalars and arrays.
this | SwfcdbType object |
Definition at line 175 of file swf-cdb.f90.
|
private |
Method to define the observation types available in the CDB package.
this | SwfCdbType object |
Definition at line 434 of file swf-cdb.f90.
|
private |
Add the hcof and rhs terms for the CDB package to the coefficient matrix and right-hand side vector.
this | SwfCdbType object | |
[in,out] | rhs | right-hand side vector for model |
[in] | ia | solution CRS row pointers |
[in] | idxglo | mapping vector for model (local) to solution (global) |
matrix_sln | solution coefficient matrix |
Definition at line 351 of file swf-cdb.f90.
|
private |
Function to determine if observations are supported by the CDB package. Observations are supported by the CDB package.
this | SwfCdbType object |
Definition at line 421 of file swf-cdb.f90.
subroutine swfcdbmodule::cdb_options | ( | class(swfcdbtype), intent(inout) | this | ) |
Source additional options for SWF package.
[in,out] | this | SwfCdbType object |
Definition at line 197 of file swf-cdb.f90.
subroutine swfcdbmodule::cdb_rp | ( | class(swfcdbtype), intent(inout) | this | ) |
Definition at line 245 of file swf-cdb.f90.
|
private |
Assign the time series links for the CDB package. Only the Q variable can be defined with time series.
[in,out] | this | SwfCdbType object |
Definition at line 505 of file swf-cdb.f90.
|
private |
Method defined the list label for the CDB package. The list label is the heading that is written to iout when PRINT_INPUT option is used.
[in,out] | this | SwfCdbType object |
Definition at line 389 of file swf-cdb.f90.
subroutine swfcdbmodule::log_cdb_options | ( | class(swfcdbtype), intent(inout) | this, |
type(swfcdbparamfoundtype), intent(in) | found | ||
) |
real(dp) function swfcdbmodule::qcalc | ( | class(swfcdbtype) | this, |
integer(i4b), intent(in) | i, | ||
real(dp), intent(in) | depth | ||
) |
[in] | i | boundary number |
[in] | depth | simulated depth (stage - elevation) in reach n for this iteration |
Definition at line 316 of file swf-cdb.f90.
|
private |
Definition at line 30 of file swf-cdb.f90.
|
private |
Definition at line 31 of file swf-cdb.f90.