MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
Inheritance diagram for swfstomodule::swfstotype:
Inheritance graph
Collaboration diagram for swfstomodule::swfstotype:
Collaboration graph

Public Member Functions

procedure sto_ar (this, dis, ibound)
 Allocate and read method for package.
procedure sto_rp (this)
 Read and prepare method for package.
procedure sto_ad (this)
 Advance the package.
procedure sto_fc (this, kiter, stage_old, stage_new, matrix_sln, idxglo, rhs)
 Fill A and right-hand side for the package.
procedure sto_fc_dis1d (this, kiter, stage_old, stage_new, matrix_sln, idxglo, rhs)
 Fill A and right-hand side for the package.
procedure sto_fc_dis2d (this, kiter, stage_old, stage_new, matrix_sln, idxglo, rhs)
 Fill A and right-hand side for the package.
procedure sto_cq (this, flowja, stage_new, stage_old)
 Calculate flows for package.
procedure sto_bd (this, isuppress_output, model_budget)
 Model budget calculation for package.
procedure sto_save_model_flows (this, icbcfl, icbcun)
 Save model flows for package.
procedure sto_da (this)
 Deallocate package memory.
procedure allocate_scalars (this)
 Allocate scalars.
procedure set_names (this, ibcnum, name_model, pakname, ftype, input_mempath)
 Set package names.
procedure allocate_scalars (this)
 Allocate package scalars.
procedure da (this)
 Deallocate package scalars.
procedure read_check_ionper (this)
 Check ionper.
procedure get_block_data (this, tags, lfound, varinames)
 Read griddata block for a package.

Public Attributes

integer(i4b), pointer iss => null()
 steady state flag: 1 = steady, 0 = transient
integer(i4b), dimension(:), pointer, contiguous ibound => null()
 pointer to model ibound
real(dp), dimension(:), pointer, contiguous qsto => null()
 storage rates
integer(i4b), dimension(:), pointer, contiguous idcxs => null()
 pointer to cross section id vector in dfw
type(swfcxstype), pointer cxs
integer(i4b), pointer iper => null()
 input context loaded period
character(len=:), pointer storage
 input context storage string
character(len=lenmodelname) name_model = ''
 the name of the model that contains this package
character(len=lenpackagename) packname = ''
 name of the package
character(len=lenmempath) memorypath = ''
 the location in the memory manager where the variables are stored
character(len=lenmempath) memorypathmodel = ''
 the location in the memory manager where the variables of the parent model are stored
character(len=lenmempath) input_mempath = ''
 input context mempath
character(len=linelength), pointer input_fname => null()
 input file name
character(len=lenftype) filtyp = ''
 file type (CHD, DRN, RIV, etc.)
character(len=lenftype), pointer package_type => null()
 package type (same as filtyp) stored in memory manager
integer(i4b), pointer id => null()
 consecutive package number in model
integer(i4b), pointer inunit => null()
 unit number for input file
integer(i4b), pointer iout => null()
 unit number for writing package output
integer(i4b), pointer inewton => null()
 newton flag
integer(i4b), pointer iasym => null()
 package causes matrix asymmetry
integer(i4b), pointer iprpak => null()
 integer flag to echo input
integer(i4b), pointer iprflow => null()
 flag to print simulated flows
integer(i4b), pointer ipakcb => null()
 output flows (-1, 0, 1) - save_flows
integer(i4b), pointer ionper => null()
 stress period for next data
integer(i4b), pointer lastonper => null()
 last value of ionper (for checking)
type(blockparsertype) parser
 parser object for reading blocks of information
class(disbasetype), pointer dis => null()
 model discretization object

Private Member Functions

procedure, private allocate_arrays (this, nodes)
 Allocate package arrays.
procedure, private source_options (this)
 Source input options for package.
procedure, private source_data (this)
 Source input data for package.
procedure, private log_options (this, found)
 Log found options for package.
procedure, private set_dfw_pointers (this)
 Set pointers to channel properties in DFW Package.
procedure, private reach_length_pointer (this)
procedure, private calc_storage_dis1d (this, n, stage_new, stage_old, dx, qsto, derv)
procedure, private calc_storage_dis2d (this, n, stage_new, stage_old, qsto, derv)

Detailed Description

Definition at line 31 of file swf-sto.f90.

Member Function/Subroutine Documentation

◆ allocate_arrays()

procedure, private swfstomodule::swfstotype::allocate_arrays ( class(swfstotype), target this,
integer(i4b), intent(in) nodes )
private

Allocate and initialize STO package arrays.

Parameters
thisSwfStoType object
[in]nodesactive model nodes

Definition at line 58 of file swf-sto.f90.

◆ allocate_scalars() [1/2]

procedure numericalpackagemodule::numericalpackagetype::allocate_scalars ( class(numericalpackagetype) this)
inherited

Allocate and initialize base numerical package scalars.

Parameters
thisNumericalPackageType object

Definition at line 54 of file NumericalPackage.f90.

◆ allocate_scalars() [2/2]

procedure swfstomodule::swfstotype::allocate_scalars ( class(swfstotype) this)

Allocate and initialize scalars for the STO package. The base numerical package allocate scalars method is also called.

Parameters
thisSwfStoType object

Definition at line 57 of file swf-sto.f90.

◆ calc_storage_dis1d()

procedure, private swfstomodule::swfstotype::calc_storage_dis1d ( class(swfstotype) this,
integer(i4b), intent(in) n,
real(dp), intent(in) stage_new,
real(dp), intent(in) stage_old,
real(dp), intent(in) dx,
real(dp), intent(inout) qsto,
real(dp), intent(inout), optional derv )
private

Definition at line 64 of file swf-sto.f90.

◆ calc_storage_dis2d()

procedure, private swfstomodule::swfstotype::calc_storage_dis2d ( class(swfstotype) this,
integer(i4b), intent(in) n,
real(dp), intent(in) stage_new,
real(dp), intent(in) stage_old,
real(dp), intent(inout) qsto,
real(dp), intent(inout), optional derv )
private

Definition at line 65 of file swf-sto.f90.

◆ da()

procedure numericalpackagemodule::numericalpackagetype::da ( class(numericalpackagetype) this)
inherited

Deallocate and initialize base numerical package scalars.

Parameters
thisNumericalPackageType object

Definition at line 55 of file NumericalPackage.f90.

◆ get_block_data()

procedure numericalpackagemodule::numericalpackagetype::get_block_data ( class(numericalpackagetype) this,
character(len=24), dimension(:), intent(in) tags,
logical, dimension(:), intent(inout) lfound,
character(len=24), dimension(:), intent(in), optional varinames )
inherited

Generic method to read data in the GRIDDATA block for a package.

Parameters
thisNumericalPackageType object
[in]tagsvector with variable tags
[in,out]lfoundboolean vector indicating of a variable tag was found
[in]varinamesoptional vector of variable names

Definition at line 57 of file NumericalPackage.f90.

◆ log_options()

procedure, private swfstomodule::swfstotype::log_options ( class(swfstotype) this,
type(stooptionsfoundtype), intent(in) found )
private

Log options block for STO package.

Parameters
thisSwfStoType object

Definition at line 61 of file swf-sto.f90.

◆ reach_length_pointer()

procedure, private swfstomodule::swfstotype::reach_length_pointer ( class(swfstotype) this)
private
Parameters
thisthis instance

Definition at line 63 of file swf-sto.f90.

◆ read_check_ionper()

procedure numericalpackagemodule::numericalpackagetype::read_check_ionper ( class(numericalpackagetype), intent(inout) this)
inherited

Generic method to read and check ionperiod, which is used to determine if new period data should be read from the input file. The check of ionperiod also makes sure periods are increasing in subsequent period data blocks.

Parameters
[in,out]thisNumericalPackageType object

Definition at line 56 of file NumericalPackage.f90.

◆ set_dfw_pointers()

procedure, private swfstomodule::swfstotype::set_dfw_pointers ( class(swfstotype) this)
private
Parameters
thisthis instance

Definition at line 62 of file swf-sto.f90.

◆ set_names()

procedure numericalpackagemodule::numericalpackagetype::set_names ( class(numericalpackagetype), intent(inout) this,
integer(i4b), intent(in) ibcnum,
character(len=*), intent(in) name_model,
character(len=*), intent(in) pakname,
character(len=*), intent(in) ftype,
character(len=*), intent(in), optional input_mempath )
inherited

Method to assign the filtyp (ftype), the model name, and package name for a package. This method also creates the memoryPath and memoryPathModel that is used by the memory manager when variables are allocated.

Parameters
[in,out]thisNumericalPackageType object
[in]ibcnumunique package number
[in]name_modelname of the model
[in]paknamename of the package
[in]ftypepackage type

Definition at line 53 of file NumericalPackage.f90.

◆ source_data()

procedure, private swfstomodule::swfstotype::source_data ( class(swfstotype) this)
private

Source griddata block parameters for STO package.

Parameters
thisSwfStoType object

Definition at line 60 of file swf-sto.f90.

◆ source_options()

procedure, private swfstomodule::swfstotype::source_options ( class(swfstotype) this)
private

Source options block parameters for STO package.

Parameters
thisSwfStoType object

Definition at line 59 of file swf-sto.f90.

◆ sto_ad()

procedure swfstomodule::swfstotype::sto_ad ( class(swfstotype) this)

Advance data in the STO package.

Parameters
thisSwfStoType object

Definition at line 48 of file swf-sto.f90.

◆ sto_ar()

procedure swfstomodule::swfstotype::sto_ar ( class(swfstotype) this,
class(disbasetype), intent(in), pointer dis,
integer(i4b), dimension(:), pointer, contiguous ibound )

Method to allocate and read static data for the STO package.

Parameters
thisSwfStoType object
[in]dismodel discretization object
iboundmodel ibound array

Definition at line 46 of file swf-sto.f90.

◆ sto_bd()

procedure swfstomodule::swfstotype::sto_bd ( class(swfstotype) this,
integer(i4b), intent(in) isuppress_output,
type(budgettype), intent(inout) model_budget )

Budget calculation for the STO package components. Components include specific storage and specific yield storage.

Parameters
thisSwfStoType object
[in]isuppress_outputflag to suppress model output
[in,out]model_budgetmodel budget object

Definition at line 54 of file swf-sto.f90.

◆ sto_cq()

procedure swfstomodule::swfstotype::sto_cq ( class(swfstotype) this,
real(dp), dimension(:), intent(inout) flowja,
real(dp), dimension(:), intent(inout) stage_new,
real(dp), dimension(:), intent(inout) stage_old )

Definition at line 53 of file swf-sto.f90.

◆ sto_da()

procedure swfstomodule::swfstotype::sto_da ( class(swfstotype) this)

Deallocate STO package scalars and arrays.

Parameters
thisSwfStoType object

Definition at line 56 of file swf-sto.f90.

◆ sto_fc()

procedure swfstomodule::swfstotype::sto_fc ( class(swfstotype) this,
integer(i4b) kiter,
real(dp), dimension(:), intent(inout) stage_old,
real(dp), dimension(:), intent(inout) stage_new,
class(matrixbasetype), pointer matrix_sln,
integer(i4b), dimension(:), intent(in) idxglo,
real(dp), dimension(:), intent(inout) rhs )

Fill the coefficient matrix and right-hand side with the STO package terms.

Definition at line 49 of file swf-sto.f90.

◆ sto_fc_dis1d()

procedure swfstomodule::swfstotype::sto_fc_dis1d ( class(swfstotype) this,
integer(i4b) kiter,
real(dp), dimension(:), intent(inout) stage_old,
real(dp), dimension(:), intent(inout) stage_new,
class(matrixbasetype), pointer matrix_sln,
integer(i4b), dimension(:), intent(in) idxglo,
real(dp), dimension(:), intent(inout) rhs )

Fill the coefficient matrix and right-hand side with the STO package terms.

Definition at line 50 of file swf-sto.f90.

◆ sto_fc_dis2d()

procedure swfstomodule::swfstotype::sto_fc_dis2d ( class(swfstotype) this,
integer(i4b) kiter,
real(dp), dimension(:), intent(inout) stage_old,
real(dp), dimension(:), intent(inout) stage_new,
class(matrixbasetype), pointer matrix_sln,
integer(i4b), dimension(:), intent(in) idxglo,
real(dp), dimension(:), intent(inout) rhs )

Fill the coefficient matrix and right-hand side with the STO package terms.

Definition at line 51 of file swf-sto.f90.

◆ sto_rp()

procedure swfstomodule::swfstotype::sto_rp ( class(swfstotype) this)

Method to read and prepare stress period data for the STO package.

Parameters
thisSwfStoType object

Definition at line 47 of file swf-sto.f90.

◆ sto_save_model_flows()

procedure swfstomodule::swfstotype::sto_save_model_flows ( class(swfstotype) this,
integer(i4b), intent(in) icbcfl,
integer(i4b), intent(in) icbcun )

Save cell-by-cell budget terms for the STO package.

Parameters
thisSwfStoType object
[in]icbcflflag to output budget data
[in]icbcuncell-by-cell file unit number

Definition at line 55 of file swf-sto.f90.

Member Data Documentation

◆ cxs

type(swfcxstype), pointer swfstomodule::swfstotype::cxs

Definition at line 40 of file swf-sto.f90.

40 type(SwfCxsType), pointer :: cxs

◆ dis

class(disbasetype), pointer numericalpackagemodule::numericalpackagetype::dis => null()
inherited

Definition at line 50 of file NumericalPackage.f90.

◆ filtyp

character(len=lenftype) numericalpackagemodule::numericalpackagetype::filtyp = ''
inherited

Definition at line 33 of file NumericalPackage.f90.

◆ iasym

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::iasym => null()
inherited

Definition at line 41 of file NumericalPackage.f90.

◆ ibound

integer(i4b), dimension(:), pointer, contiguous swfstomodule::swfstotype::ibound => null()

Definition at line 33 of file swf-sto.f90.

◆ id

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::id => null()
inherited

Definition at line 37 of file NumericalPackage.f90.

◆ idcxs

integer(i4b), dimension(:), pointer, contiguous swfstomodule::swfstotype::idcxs => null()

Definition at line 37 of file swf-sto.f90.

◆ inewton

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::inewton => null()
inherited

Definition at line 40 of file NumericalPackage.f90.

◆ input_fname

character(len=linelength), pointer numericalpackagemodule::numericalpackagetype::input_fname => null()
inherited

Definition at line 32 of file NumericalPackage.f90.

◆ input_mempath

character(len=lenmempath) numericalpackagemodule::numericalpackagetype::input_mempath = ''
inherited

Definition at line 31 of file NumericalPackage.f90.

◆ inunit

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::inunit => null()
inherited

Definition at line 38 of file NumericalPackage.f90.

◆ ionper

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::ionper => null()
inherited

Definition at line 45 of file NumericalPackage.f90.

◆ iout

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::iout => null()
inherited

Definition at line 39 of file NumericalPackage.f90.

◆ ipakcb

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::ipakcb => null()
inherited

Definition at line 44 of file NumericalPackage.f90.

◆ iper

integer(i4b), pointer swfstomodule::swfstotype::iper => null()

Definition at line 43 of file swf-sto.f90.

◆ iprflow

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::iprflow => null()
inherited

Definition at line 43 of file NumericalPackage.f90.

◆ iprpak

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::iprpak => null()
inherited

Definition at line 42 of file NumericalPackage.f90.

◆ iss

integer(i4b), pointer swfstomodule::swfstotype::iss => null()

Definition at line 32 of file swf-sto.f90.

◆ lastonper

integer(i4b), pointer numericalpackagemodule::numericalpackagetype::lastonper => null()
inherited

Definition at line 46 of file NumericalPackage.f90.

◆ memorypath

character(len=lenmempath) numericalpackagemodule::numericalpackagetype::memorypath = ''
inherited

Definition at line 28 of file NumericalPackage.f90.

◆ memorypathmodel

character(len=lenmempath) numericalpackagemodule::numericalpackagetype::memorypathmodel = ''
inherited

Definition at line 29 of file NumericalPackage.f90.

◆ name_model

character(len=lenmodelname) numericalpackagemodule::numericalpackagetype::name_model = ''
inherited

Definition at line 26 of file NumericalPackage.f90.

◆ package_type

character(len=lenftype), pointer numericalpackagemodule::numericalpackagetype::package_type => null()
inherited

Definition at line 34 of file NumericalPackage.f90.

◆ packname

character(len=lenpackagename) numericalpackagemodule::numericalpackagetype::packname = ''
inherited

Definition at line 27 of file NumericalPackage.f90.

◆ parser

type(blockparsertype) numericalpackagemodule::numericalpackagetype::parser
inherited

Definition at line 49 of file NumericalPackage.f90.

49 type(BlockParserType) :: parser !< parser object for reading blocks of information

◆ qsto

real(dp), dimension(:), pointer, contiguous swfstomodule::swfstotype::qsto => null()

Definition at line 34 of file swf-sto.f90.

◆ storage

character(len=:), pointer swfstomodule::swfstotype::storage

Definition at line 44 of file swf-sto.f90.

44 character(len=:), pointer :: storage !< input context storage string

The documentation for this type was generated from the following file:
  • /home/runner/work/modflow6/modflow6/src/Model/SurfaceWaterFlow/swf-sto.f90