~ ~ ~ PURPOSE ~ ~ ~ this subroutine simulates the loss of salt via surface runoff, lateral flow, tile flow, and percolation out of the profile
~ ~ ~ INCOMING VARIABLES ~ ~ ~ name |units |definition ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ flat(:,:) |mm H2O |lateral flow in soil layer on current day ihru |none |HRU number sol_salt(:,)|kg Salt/ha |amount of salt stored in solution in each soil layer !rtb salt sol_prk(:,:)|mm H2O |percolation from soil layer on current day sol_ul(:,:) |mm H2O |amount of water held in the soil layer at |saturation surfq(:) |mm H2O |surface runoff generated on day in HRU sol_csalt |mg Salt/L |concentration of salt in solution in each layer ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ OUTGOING VARIABLES ~ ~ ~ name |units |definition ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ latqsalt(:) |kg Salt/ha |amount of salt transported with lateral flow percsalt(:) |kg Salt/ha |amount of salt percolating past bottom of soil profile gwupsalt(:) |kg Salt/ha |amount of salt added to soil profile via groundwater sol_salt(:,:)|kg Salt/ha |amount of salt stored in solution in each soil layer surqsalt(:) |kg Salt/ha |amount of salt transported with surface runoff ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ LOCAL DEFINITIONS ~ ~ ~ name |units |definition ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ j |none |HRU number jj |none |counter (soil layers) cosalt |kg Salt/mm |concentration of salt in solution cosurfsalt |kg Salt/mm |concentration of salt in surface runoff percsaltlyr |kg Salt/ha |salt leached to next lower layer with percolation ssfsaltlyr |kg Salt/ha |salt transported in later flow from layer ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ SUBROUTINES/FUNCTIONS CALLED ~ ~ ~ Intrinsic: Exp, Max, Min
~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~
add salt leached from layer above determine concentration of salt in mobile water calculate salt ion mass in surface runoff calculate salt in tile flow calculate salt in lateral flow calculate salt in percolate water calculate salt leaching from soil profile if gwflow: store in array for use input_file_module gwflow_rech calculate concentration (mg/L) of salt in each soil layer