MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
gwf-sfr.f90 File Reference

Go to the source code of this file.

Data Types

type  sfrmodule::sfrinputtype
 Input context array pointers for SFR. More...
type  sfrmodule::sfrtype

Modules

module  sfrmodule
 This module contains the SFR package methods.

Functions/Subroutines

subroutine, public sfrmodule::sfr_create (packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath)
 Create a new package object.
subroutine sfrmodule::sfr_allocate_scalars (this)
 Allocate scalars.
subroutine sfrmodule::sfr_allocate_arrays (this)
 Allocate arrays.
subroutine sfrmodule::sfr_checkin_deprecated_names (this)
 Alias deprecated SFR variable names to their current storage.
subroutine sfrmodule::sfr_source_options (this)
 Source OPTIONS from input context.
subroutine sfrmodule::sfr_source_dimensions (this)
 Source DIMENSIONS block from input context and load static data.
subroutine sfrmodule::sfr_source_packagedata (this)
 Source PACKAGEDATA block from input context.
subroutine sfrmodule::sfr_source_crosssections (this)
 Source CROSSSECTIONS block from input context.
subroutine sfrmodule::sfr_source_connectiondata (this)
 Source CONNECTIONDATA block from input context.
subroutine sfrmodule::sfr_source_diversions (this)
 Source DIVERSIONS block from input context.
subroutine sfrmodule::sfr_source_initialstages (this)
 Source INITIALSTAGES block from input context.
subroutine sfrmodule::sfr_ar (this)
 Allocate and read method for package.
subroutine sfrmodule::sfr_rp (this)
 Read and prepare period data for package.
subroutine sfrmodule::sfr_ad (this)
 Advance the package.
subroutine sfrmodule::sfr_cf (this)
 Formulate the package hcof and rhs terms.
subroutine sfrmodule::sfr_fc (this, rhs, ia, idxglo, matrix_sln)
 Copy hcof and rhs terms into solution.
subroutine sfrmodule::sfr_fn (this, rhs, ia, idxglo, matrix_sln)
 Add Newton-Raphson terms for package into solution.
subroutine sfrmodule::sfr_cc (this, innertot, kiter, iend, icnvgmod, cpak, ipak, dpak)
 Convergence check for package.
subroutine sfrmodule::sfr_cq (this, x, flowja, iadv)
 Calculate package flows.
subroutine sfrmodule::sfr_ot_package_flows (this, icbcfl, ibudfl)
 Output package flow terms.
subroutine sfrmodule::sfr_ot_dv (this, idvsave, idvprint)
 Output package dependent-variable terms.
subroutine sfrmodule::sfr_ot_bdsummary (this, kstp, kper, iout, ibudfl)
 Output advanced package budget summary.
subroutine sfrmodule::sfr_fp (this)
 Write the Courant-number summary table to the listing file.
subroutine sfrmodule::sfr_dt (this)
 Submit the ATS time step for the most Courant-constraining reach.
subroutine sfrmodule::sfr_calc_celerity (this, n, q, celerity)
 Kinematic-wave celerity from a flow perturbation (0 if dry).
subroutine sfrmodule::sfr_da (this)
 Deallocate package memory.
subroutine sfrmodule::sfr_precompute_tvd (this)
 Pre-compute the single upstream reach index for the TVD limiter.
subroutine sfrmodule::define_listlabel (this)
 Define the list label for the package.
logical function sfrmodule::sfr_obs_supported (this)
 Determine if observations are supported.
subroutine sfrmodule::sfr_df_obs (this)
 Define the observation types available in the package.
subroutine sfrmodule::sfr_bd_obs (this)
 Save observations for the package.
subroutine sfrmodule::sfr_rp_obs (this)
 Read and prepare observations for a package.
subroutine sfrmodule::sfr_process_obsid (obsrv, dis, inunitobs, iout)
 Process observation IDs for a package.
subroutine sfrmodule::sfr_solve (this, n, h, hcof, rhs, update)
 Solve reach continuity equation.
subroutine sfrmodule::sfr_update_flows (this, n, qd, qgwf)
 Update flow terms.
subroutine sfrmodule::sfr_adjust_ro_ev (this, qc, qu, qi, qr, qro, qe, qfrommvr)
 Adjust runoff and evaporation.
subroutine sfrmodule::sfr_calc_qd (this, n, depth, hgwf, qgwf, qd)
 Calculate downstream flow term.
subroutine sfrmodule::sfr_calc_qsource (this, n, depth, qsrc)
 Calculate sum of sources.
subroutine sfrmodule::sfr_calc_qman (this, n, depth, qman)
 Calculate streamflow.
subroutine sfrmodule::sfr_calc_qgwf (this, n, depth, hgwf, qgwf, gwfhcof, gwfrhs)
 Calculate reach-aquifer exchange.
integer(i4b) function sfrmodule::sfr_gwf_conn (this, n)
 Determine if a reach is connected to a gwf cell.
subroutine sfrmodule::sfr_calc_cond (this, n, depth, cond, hsfr, h_temp)
 Calculate reach-aquifer conductance.
subroutine sfrmodule::sfr_calc_div (this, n, i, qd, qdiv)
 Calculate diversion flow.
subroutine sfrmodule::sfr_calc_reach_depth (this, n, q1, d1)
 Calculate the depth at the midpoint.
subroutine sfrmodule::sfr_calc_xs_depth (this, n, qrch, d)
 Calculate the depth at the midpoint of a irregular cross-section.
subroutine sfrmodule::sfr_check_conversion (this)
 Check unit conversion data.
subroutine sfrmodule::sfr_check_storage_weight (this)
 Check storage weight.
subroutine sfrmodule::sfr_check_reaches (this)
 Check reach data.
subroutine sfrmodule::sfr_check_connections (this)
 Check connection data.
subroutine sfrmodule::sfr_check_diversions (this)
 Check diversions data.
subroutine sfrmodule::sfr_check_initialstages (this)
 Check initial stage data.
subroutine sfrmodule::sfr_check_ustrf (this)
 Check upstream fraction data.
subroutine sfrmodule::sfr_set_period_value (this, i, n, setting)
 Apply a PERIOD setting value to reach n.
subroutine sfrmodule::sfr_setup_budobj (this)
 Setup budget object for package.
subroutine sfrmodule::sfr_fill_budobj (this)
 Copy flow terms into budget object for package.
subroutine sfrmodule::sfr_setup_tableobj (this)
 Setup stage table object for package.
real(dp) function sfrmodule::calc_area_wet (this, n, depth)
 Calculate wetted area.
real(dp) function sfrmodule::calc_perimeter_wet (this, n, depth)
 Calculate wetted perimeter.
real(dp) function sfrmodule::calc_surface_area (this, n)
 Calculate maximum surface area.
real(dp) function sfrmodule::calc_surface_area_wet (this, n, depth)
 Calculate wetted surface area.
real(dp) function sfrmodule::calc_top_width_wet (this, n, depth)
 Calculate wetted top width.
subroutine sfrmodule::sfr_activate_density (this)
 Activate density terms.
subroutine sfrmodule::sfr_activate_viscosity (this)
 Activate viscosity terms.
subroutine sfrmodule::sfr_calculate_density_exchange (this, n, stage, head, cond, tops, flow, gwfhcof, gwfrhs)
 Calculate density terms.
subroutine sfrmodule::sfr_input_init (this, mempath, naux)
 Bind SfrInputType PERIOD pointers to input context arrays.
subroutine sfrmodule::sfr_input_destroy (this)
 Nullify all SfrInputType pointers.

Variables

character(len=lenftype) sfrmodule::ftype = 'SFR'
 package ftype string
character(len=lenpackagename) sfrmodule::text = ' SFR'
 package budget string