Documentation ¶
Index ¶
- func Steady(ws WaterShed, wf map[int]float64, ord []int, mmpy float64, msg bool)
- func TopoToOutlet(outlet int) []int
- type Channel
- type HRU
- type SCSCN
- type SoilLayer
- type SubBasin
- func (b *SubBasin) Copy() *SubBasin
- func (bsn *SubBasin) Initialize(q0mm float64)
- func (b *SubBasin) New(HRUs []*HRU, Chn *Channel, ...)
- func (b *SubBasin) Renew(CNf, ESCO, CHN, OVN, SURLAG, GWDELAY, ALPHABF, GWQMN float64)
- func (bsn *SubBasin) Storage() float64
- func (bsn *SubBasin) StorageAll() (aq, psto, qstr, vstr, sz float64)
- func (bsn *SubBasin) Update(vin, p, ep float64) (r, i, a, g, b, vout float64)
- type WaterShed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TopoToOutlet ¶
TopoToOutlet returns an ordered set of subbasin IDs leading to an outlet
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is a channel units in SWAT ref: Neitsch, S.L., J.G. Arnold, J.R., Kiniry, J.R. Williams, 2011. Soil and Water Assessment Tool: Theoretical Documentation Version 2009 (September 2011). 647pp.
func (*Channel) New ¶
New variable storage routing method channel constructor CHW: (W_bankfull) width of channel top at bank [m] CHD: (depth_bankfull) depth of water filled to bank [m] CHL: (L_ch) length of main channel [km] CHS: (slp_ch) length of main channel [-] CHN: (n) Manning's n value for the main channel
func (*Channel) Route ¶
Route volumes (pg.432) variable storage rounting method (as built in HYMO) ref: Williams, J.R. and R.W. Hann, 1978. Optimal operation of large agricultural watersheds with water quality contraints. Texas Water Resources Institute, Texas A&M Univ. Tech. Rept. No. 96. ref: Williams J.R., 1969. Flood routing with variable travel time or variable storage coefficients. Transactions of the ASAE 12(1): 100--103.
type HRU ¶
type HRU struct {
// contains filtered or unexported fields
}
HRU SWAT hydrologic response unit
func (*HRU) New ¶
New SWAT HRU constructor HRUFR: fraction of subbasin area contained in HRU HRUSLP: (slp) average slope steepness m/m OVN: (n) Manning's n value for overland flow CN2: moisture condition II curve number CV: aboveground biomass and residue kg/ha ESCO: soil evporation compensation coefficient [0,1] (pg.138) IWATABLE: high water table code: set to true when seasonal high water table present
type SCSCN ¶
type SCSCN struct {
// contains filtered or unexported fields
}
SCSCN is the soil conservation service (now known as the Natural Resources Conservation Service (NRCS)) curve number (CN) number runoff generation technique, after the SWAT model implimentation defaulted SWAT ICN=0: daily curve number as a function of soil moisture ref: Neitsch, S.L., J.G. Arnold, J.R., Kiniry, J.R. Williams, 2011. Soil and Water Assessment Tool: Theoretical Documentation Version 2009 (September 2011). 647pp.
type SoilLayer ¶
type SoilLayer struct {
// contains filtered or unexported fields
}
SoilLayer is a soil layer unit use in SWAT
type SubBasin ¶
type SubBasin struct { Ca float64 // parameters Outflow int // SubBasin id outflow from this SubBasin (<0: farfield outflow) // contains filtered or unexported fields }
SubBasin SWAT subbasin
func (*SubBasin) Initialize ¶
Initialize SubBasin state
func (*SubBasin) New ¶
func (b *SubBasin) New(HRUs []*HRU, Chn *Channel, SUBKM, SLSUBBSN, CHL, CHS, CHN, SURLAG, GWDELAY, ALPHABF float64)
New SWAT SubBasin constructor SUBKM: area of subbasin [km2] SLSUBBSN: (L_slp) average slope length [m] CHL: (L) longest tributary channel length in subbasin [km] CHS: (slp_ch) average slope of tributary channels m/m CHN: (n) Manning's n value for tributary channels CHW: (W_bankfull) width of channel top at bank [m] CHD: (depth_bankfull) depth of water wht filled to bank [m] SURLAG: surface runoff lag coefficient [0,15] GWDELAY: (delta_gw) delay time for aquifer recharge [days] GWQMN: (aq_shthr) threshold water level in aquifer for baseflow [mm] ALPHABF: (alpha_bf) baseflow recession coeficient (1/k)
func (*SubBasin) StorageAll ¶
StorageAll returns the moisture states of all components [mm]