Input and Output Files Data Description¶
This chapter describes all input and output files used by CE-QUAL-W2 Version 4.5. The model requires a control file and various ancillary input files for bathymetry, meteorology, boundary conditions, and initial conditions. It produces output files for snapshots, time series, profiles, contour plots, kinetic fluxes, mass/flow balances, and diagnostic information.
All input files support two formats unless otherwise noted:
- Fixed format (space delimited): Fields are
F8.0format (8 characters wide) with right-justified variable names on line 3. The first two lines are comments. - Free format (comma delimited): Indicated by a
$character as the first character on line 1. Fields are comma separated with no width restriction. The first three lines are comments/headers.
Free Format Recommendation
The free-format (comma-separated values, CSV) option is recommended for new applications. It removes the 8-character field width restriction and simplifies data preparation using spreadsheet software.
Input Files¶
Control File¶
The control file is the primary input file for CE-QUAL-W2. It defines the computational grid, simulation time, boundary conditions, hydraulic and kinetic parameters, constituent controls, and output specifications. Two formats are supported:
w2_con.npt: Fixed-format text file with 8-character fieldsw2_con.csv: Excel/CSV format with the same information organized in worksheet tabs
CSV Control File
When using w2_con.csv, the graph.npt file is not needed because many of its variables are included directly in the CSV control file format.
The control file is organized into a series of "cards," each controlling a specific aspect of the simulation. The following sections describe each card and its parameters.
TITLE C¶
The title card contains 10 lines of descriptive text for identifying the simulation. This text appears in the snapshot (SNP) output file and the preprocessor output. Each line may contain up to 72 characters in fixed format. The Excel spreadsheet text must have quotation marks around each text line.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | TITLE |
Character | Text for identification of simulation |
Note
Title text only appears in the SNP output file. Although its usefulness for post-processing is limited, it forces the user to document each run.
TITLE C ..........................TITLE....................................
Card 1 Version 4 Example Model
Card 2 PSU CE-QUAL-W2 Workshop Problem
Card 3 River with 2 branches
Card 4 Reservoir
Card 5 Estuary
Card 6 River Sloping Channels 2 Branches
Card 7 Temperature Mitigation Problem
Card 8 Temperature and residence time simulation
Card 9 Scott Wells - PSU
Card 10 Tom Cole - WES
GRID¶
The [GRID] card defines the computational grid dimensions, including the total number of waterbodies [NWB], branches [NBR], segments [IMX], and layers [KMX]. These values define the array dimensions in the code through dynamic array allocation, eliminating the need to recompile for each application.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | NWB |
Integer | Number of waterbodies in the computational grid |
| 3 | NBR |
Integer | Number of branches in the computational grid |
| 4 | IMX |
Integer | Number of segments in the computational grid |
| 5 | KMX |
Integer | Number of layers in the computational grid |
| 6 | NPROC |
Integer | Number of processors to use for computation |
| 7 | CLOSEC |
ON, OFF |
Close the W2 Windows dialog box at the end of simulation (ON) or keep it open (OFF) |
In Version 3.6, the code used OpenMP commands for parallelization, achieving about a 20% improvement in speed by choosing 2 processors over 1. Because using out-of-order arithmetic can lead to slight differences between model runs, this feature has been disabled. The code always now uses internally [NPROC]=1 regardless of the input file value. Many other code improvements in the current version more than make up for the speed improvement used in Version 3.6.
[CLOSEC] controls whether the W2 Windows dialog box remains open at the end of a simulation (OFF) or closes automatically (ON). Setting CLOSEC to OFF allows the user to examine the final run parameters before pressing "close" to exit the window. Setting CLOSEC to ON causes the dialog box to close once the run finishes, which is useful for batch processing.
IN/OUTFLOW¶
The [IN/OUTFLOW] card defines the variables used to dimension the arrays for tributaries, internal weirs, and inflow/outflow hydraulic structures including lateral withdrawals, outlet gates, spillways, pipes, and pumps. Set all variables to zero if they are not used.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | NTR |
Integer | Number of tributaries |
| 3 | NST |
Integer | Number of outlet structures |
| 4 | NIW |
Integer | Number of internal weirs |
| 5 | NWD |
Integer | Number of withdrawals |
| 6 | NGT |
Integer | Number of gates |
| 7 | NSP |
Integer | Number of spillways |
| 8 | NPI |
Integer | Number of pipes |
| 9 | NPU |
Integer | Number of pumps |
The following definitions distinguish the inflow/outflow types:
- Tributary: An inflow at a right angle to the model x-coordinate with prescribed flow (positive or negative).
- Structure: An outflow at the end of a branch (longitudinal momentum is preserved) with prescribed flow.
- Withdrawal: An outflow at any segment, assumed to be at right angles to the x-coordinate, with prescribed flow.
- Gate, spillway, pump, pipe: An outflow or inflow at the end of a branch or at any segment at right angles to the x-coordinate, with model-computed flow (or prescribed flow for the gate).
CONSTITUENTS¶
The [CONSTITUENTS] card (also called "Constituent Dimensions") defines the array dimensions for the number of generic constituents, inorganic suspended solids groups, algal groups, epiphyton/periphyton groups, carbonaceous biochemical oxygen demand (CBOD) groups, macrophyte groups, and zooplankton groups. The user has complete freedom to include as many of these groups as warranted by available field observations and the application.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | NGC |
Integer | Number of generic constituents |
| 3 | NSS |
Integer | Number of inorganic suspended solids groups |
| 4 | NAL |
Integer | Number of algal groups |
| 5 | NEP |
Integer | Number of epiphyton/periphyton groups |
| 6 | NBOD |
Integer | Number of CBOD groups |
| 7 | NMC |
Integer | Number of macrophyte groups |
| 8 | NZP |
Integer | Number of zooplankton groups |
The generic constituent feature allows the user to model any number of constituents defined using any or all of the following: a zero-order decay rate, a first-order decay rate, a settling velocity, an Arrhenius temperature rate multiplier, volatilization, or photo-degradation. The sediment diagenesis model also uses generic constituents for H₂S, CH₄, SO₄, Fe²⁺, FeOOH(s), Mn²⁺, and MnO₂(s) even though they interact with other state variables.
The ability to model any number of CBOD groups allows the model to characterize and track any number of point sources of CBOD, which can be useful in determining which point source(s) contribute to depressed dissolved oxygen levels.
Multiple Groups
Use care when including multiple algal, epiphyton, zooplankton, and macrophyte groups. Ensure that sufficient field observations exist to describe their variation. As a general rule, start with as simple a description of the kinetics as still allows the model to capture the important temporal and spatial changes in water quality.
MISCELL¶
The [MISCELL] card defines miscellaneous control parameters that enable or disable several optional features of the model. Many of these features were first implemented in Version 3.7.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | NDAY |
Integer | Maximum number of output dates or timestep-related changes |
| 3 | SELECTC |
Character | Turn ON/OFF/USGS automatic port selection from a multiple outlet structure where level is chosen by the model to reach a temperature target |
| 4 | HABTATC |
Character | Turn ON/OFF habitat analyses for fish and eutrophication variables |
| 5 | ENVIRPC |
Character | Turn ON/OFF environmental performance criteria |
| 6 | AERATEC |
Character | Turn ON/OFF aeration to waterbody with dissolved oxygen probe control |
| 7 | INITUWL |
Character | Turn ON/OFF initial water surface slope and velocity calculation for a river system |
| 8 | ORGCC |
Character | Turn ON/OFF use of C for organic matter basis |
| 9 | SED_DIAG |
Character | Turn ON/OFF sediment diagenesis processes |
| 10 | DZMAX |
Real | Value of DZ when there is a density instability (m² s⁻¹) |
NDAY is the maximum number of output dates that will be used in the simulation. This should be set to a value greater than or equal to the maximum of timestep, snapshot, screen, profile, vector, contour, time series, withdrawal, and restart number of dates that are used to define when output frequencies change, or, in the case of the timestep-related cards, when the maximum timestep or the fraction of the timestep change. A default of 100 is appropriate for most simulations.
SELECTC turns ON or OFF the automatic port selection for a multiple outlet withdrawal structure at a downstream end of a branch. When set to ON, the model reads the control file w2_selective.npt. Setting SELECTC to USGS allows the model to decide which outlet to use to meet temperature targets. When set to OFF, the algorithm is not used.
HABTATC turns ON or OFF the fish habitat analysis and other useful analyses for eutrophication studies. When ON, the model reads the control file w2_habitat.npt.
ENVIRPC turns ON or OFF the environmental performance analysis for user-chosen model state variables, including temporal and volume-weighted averages and histograms. When ON, the model reads the control file w2_envirpc.npt.
AERATEC turns ON or OFF aeration at specified segments and layers. When ON, the model reads the control file w2_aerate.npt.
INITUWL turns ON or OFF a computation of the initial water level and velocity for any branch with a non-zero slope. A computation of the normal depth profile is used instead of the water surface profile given in the bathymetry file. When ON, the model writes the output file init_wl_u_check.dat showing the initial water surface elevations, normal depths, and velocities. This allows smoother running of river models at the beginning of the simulation.
ORGCC turns ON or OFF the use of C as a basis for organic matter compartments. When ON, the model uses LPOC, RPOC, LDOC, RDOC (L is labile, R is refractory, OC is organic carbon, D is dissolved, P is particulate) rather than LPOM, RPOM, LDOM, RDOM (where M is matter on a dry weight basis).
SED_DIAG turns ON or OFF reading of the sediment diagenesis input file. When sediment diagenesis processes are turned ON within the input file w2_diagenesis.npt, both zero-order and first-order SOD are automatically turned OFF within the model.
DZMAX is the maximum value of vertical diffusion when there is a density instability or inversion. If the value is positive, it is used directly as DZ during a density inversion. If the value is negative, it is a multiplier of the computed DZ from the chosen turbulence closure model (such as TKE) to increase mixing during a density inversion. For example, if DZMAX = -100, the DZ during an inversion would be the TKE-computed value multiplied by 100. A value of 1000 m² s⁻¹ was hard-wired in legacy W2 models.
DZMAX Setting
A value of 1000 m² s⁻¹ can cause excessive mixing over multiple vertical layers. Consider using a negative value (multiplier) to scale the computed turbulent diffusivity, or set DZMAX to a smaller positive value if water quality instabilities occur during inversions.
MISCELL NDAY SELECTC HABTATC ENVIRPC AERATEC INITUWL ORGCC SEDIAG DZMAX
100 USGS ON ON ON OFF OFF OFF 1000.
TIME CON¶
The [TIME CON] card specifies the simulation starting and ending times.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | TMSTRT |
Real | Starting time, Julian day |
| 3 | TMEND |
Real | Ending time, Julian day |
| 4 | YEAR |
Integer | Starting or reference year |
The model uses Julian days of the reference year for all inputs and internal calculations. Midnight on January 1 starts at Julian day 1.0; noon on January 1 is Julian day 1.5. For simulations extending into another year, the ending time is calculated as 365 (or 366 for a leap year) plus the Julian day of the ending date. Julian days can exceed 365 for multi-year simulations.
DLT CON¶
The [DLT CON] card specifies the number of timestep intervals, minimum timestep, and whether interpolation is used between those timestep intervals [NDT].
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | NDT |
Integer | Number of timestep intervals |
| 3 | DLTMIN |
Real | Minimum timestep, s |
| 4 | DLTINTR |
Character | Turn ON or OFF timestep interpolation between DLTMAX time steps |
The autostepping algorithm calculates a maximum timestep based on an estimate of hydrodynamic numerical stability requirements and then uses a fraction of this value for the actual timestep. The user can specify any number of intervals up to the value specified for [NDAY] on the [MISCELL] card, in which the maximum timestep and fraction of the timestep can vary. The values are specified on the DLT DATE, DLT MAX, and DLT FRN cards.
The model automatically adjusts the timestep to ensure that it is never greater than the next time-varying update. The minimum timestep is useful during periods of extremely high flows when the timestep could become too small to economically run the model. The default value of 1 s should not be increased unless the user is certain that doing so will not affect numerical stability. Minimum values as low as 0.1 s have been used for river systems.
In Version 3.7 and later, the option of interpolating the maximum timesteps [DLTMAX] and [DLTF] by setting [DLTINTR] to ON is available. Turning interpolation on allows for a smoother transition between changes in DLTMAX and DLTF.
DLT DATE¶
The [DLT DATE] card specifies the Julian days at which timestep parameters change.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | DLTD |
Real | Beginning of timestep interval, Julian day |
The intervals for the maximum timestep are specified on this card. Any number of intervals up to the value of [NDAY] on the [MISCELL] card can be specified. If there are more intervals (>9) than can be specified on one line for the w2_con.npt control file, they are continued on the next line without another DLT DATE card being specified. The Excel version values do not wrap onto another row but continue along one row.
DLT MAX¶
The [DLT MAX] card specifies the maximum timestep for each interval.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | DLTMAX |
Real | Maximum timestep, s |
The maximum timestep for intervals provided on the timestep interval card is specified here. For the w2_con.npt control file, if there are more intervals than can be specified on one line (>9), they are continued on the next line without another DLT MAX card being specified. The Excel version does not wrap values onto another row but continues along one row.
DLT FRN¶
The [DLT FRN] card specifies the fraction of the calculated maximum timestep for intervals given on the timestep interval card.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | DLTF |
Real | Fraction of calculated maximum timestep necessary for numerical stability |
For the w2_con.npt control file, if there are more intervals than can be specified on one line, they are continued on the next line without another DLT FRN card being specified. There is no continuation onto another row for the Excel version of the control file.
Timestep Fraction
If the number of timestep violations exceeds 5%, either [DLTMAX] on the Maximum Timestep card or [DLTF] should be decreased. Decreasing [DLTF] usually decreases the number of timestep violations without affecting the maximum timestep the model can use. During times of low velocities, the model can still use the maximum timestep, but during periods of high velocities, the model will use a smaller timestep than if [DLTF] were set to a higher value.
DLT LIMIT¶
The [DLT LIMIT] card specifies whether the effects of the vertical eddy viscosity and/or the internal gravity wave are included in the autostepping algorithm. Separate values are specified on a separate card for each waterbody.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | VISC |
Character | Turn ON/OFF vertical eddy viscosity limitation on timestep calculated in autostepping algorithm |
| 3 | CELC |
Character | Turn ON/OFF internal gravity wave limitation on timestep calculated in autostepping algorithm |
| 4 | DLTADD |
Character | Turn ON/OFF an additional stability check |
If the average timestep is very small, VISC and CELC can be turned OFF to decrease runtimes. However, care should be taken when using this option because turning these OFF can affect the results in certain applications. If either of these variables is turned OFF, the user should also make a run with them turned ON to confirm that results do not change as a function of the timestep or grid spacing. In practice, these values are always ON.
The DLTADD criterion adds a check: when the absolute value of the change in water level between timesteps over the surface layer thickness exceeds 0.35, the timestep is reduced by 50%. The purpose is to lower the timestep before another criterion is implemented that could cause the model to become unstable.
BRANCH G¶
The [BRANCH G] card specifies the branch location in the grid and branch boundary conditions. No distinction is made between waterbodies. The mainstem of the first waterbody is always branch 1, and the mainstem of subsequent waterbodies is always the next branch after all branches have been numbered for the previous waterbody.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | US |
Integer | Branch upstream segment |
| 3 | DS |
Integer | Branch downstream segment |
| 4 | UHS |
Integer | Upstream boundary condition |
| 5 | DHS |
Integer | Downstream boundary condition |
| 6 | NLMIN |
Integer | Minimum number of layers for a segment to be active |
| 7 | SLOPE |
Real | Branch bottom slope (actual) |
| 8 | SLOPEC |
Real | Hydraulic equivalent branch slope |
The branch upstream segment number [US] is the most upstream potentially active segment. For branch 1, this would always be segment 2. The branch downstream segment number [DS] is the most downstream active segment. The boundary segment is never included for either the upstream or downstream segment.
Four upstream and downstream boundary conditions can be specified:
| Boundary type | [UHS] and/or [DHS] |
|---|---|
| External head | -1 |
| External/internal flow | 0 |
| Internal head | >0 |
| Dam flow-only for [UHS] | <-1 (only for receiving a structure flow from another branch) |
For internal head boundary conditions between branches or dam flow boundary conditions between waterbodies, [UHS] and/or [DHS] correspond to the branch segment the branch attaches to. The current version does not use the UQB and DQB variables. Any internal flow such as a structure flow will have a 0 value for [DHS]. For the receiving branch, a negative number corresponding to the structure segment number is specified for [UHS].
SLOPEC is the hydraulic equivalent slope of the model branch. In many cases the actual slope of the channel [SLOPE] is not the correct equivalent hydraulic slope, since this may be punctuated by pools and riffles. SLOPEC is used in the momentum equation to determine the acceleration of a parcel of fluid for that branch rather than SLOPE. SLOPE is critical for linking the model system together with correct elevations.
Branch Connectivity
It is critical to get the branch connectivity correct. The preprocessor will check for a logical connection of your system.
BRANCH G US DS UHS DHS NL SLOPE SLOPEC
Br 1 2 10 0 13 1 0.00181 0.00181
Br 2 13 24 10 27 1 0.00152 0.00100
Br 3 27 36 24 39 1 0.00328 0.00142
Br 4 39 48 36 0 1 0.00142 0.00142
LOCATION¶
The [LOCATION] card specifies the latitude, longitude, and bottom elevation datum for each waterbody.
| Variable | Description | Units |
|---|---|---|
LAT |
Latitude | degrees |
LONG |
Longitude | degrees |
EBOT |
Bottom elevation of waterbody | m |
BS |
Starting branch of waterbody | - |
BE |
Ending branch of waterbody | - |
JBDN |
Downstream branch of waterbody | - |
The model uses LONG W and LAT N coordinates as positive. Hence one would start at Greenwich as 0 and go 360 degrees toward the West, or go negative toward the East. This specification of LONG and LAT only affects internal shortwave solar calculation and shading calculations. If short wave solar radiation is read in and the model does not have dynamic shading calculations, LAT and LONG will not be used.
JBDN specifies the downstream branch from which [EBOT] is referenced. In the case of a complicated grid, this is the starting elevation for tying the rest of the elevation of the grid together. EBOT is the elevation of the bottom of the bottommost active layer in the computational grid [KMX]. For a sloping river, [EBOT] would generally be located at the most downstream segment in the section.
LOCATION LAT LONG EBOT BS BE JBDN
WB 1 45.44 122.18 36.00 1 2 2
WB 2 45.44 122.18 0.00 3 3 3
WB 3 45.44 122.18 -8.00 4 4 4
INIT CND¶
The [INIT CND] card specifies initial conditions for each waterbody.
| Field | Variable | Value | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | T2I |
Real | Initial temperature, °C | |
| 3 | ICETHI |
Real | Initial ice thickness, m | |
| 4 | WTYPEC |
Character | FRESH |
Waterbody type, FRESH or SALT |
| 5 | GRIDC |
Character | RECT |
Grid interpretation: RECT (rectangular) or TRAP (trapezoidal) |
Initial temperature can be specified as either a single value, a single vertical profile used to initialize every segment, or a vertical profile for each segment:
| Initial condition | [T2I] |
|---|---|
| Isothermal | > or = 0 |
| Single vertical profile | -1.0 |
| Vertical profile at each segment | -2.0 |
If option 2 or 3 is chosen, the user must specify input files [VPRFN] or [LPRFN] containing the profile(s).
Initial ice thickness [ICETHI] is ignored if ice computations are turned off.
The waterbody type [WTYPEC] is either FRESH or SALT. If [WTYPEC] is set to SALT, then constituent computations [CCC] should be turned on and salinity should be included in the computations. This affects the equation of state used in the model and the units of TDS (if FRESH, g m⁻³ or mg/L) or salinity (if SALT, kg m⁻³).
Trapezoidal Grid
The trapezoidal grid option (GRIDC=TRAP) is not yet fully implemented in the model. Only GRIDC=RECT is currently active.
INIT CND T2I ICETHI WTYPEC GRIDC
Wb 1 -1.0 0.0 FRESH RECT
Wb 2 -1.0 0.0 FRESH RECT
Wb 3 -1.0 0.0 FRESH RECT
CALCULAT¶
The [CALCULAT] card specifies which calculations are performed for each waterbody.
| Variable | Description | Options |
|---|---|---|
EVC |
Evaporation | ON, OFF |
PRC |
Precipitation | ON, OFF |
VBC |
Volume balance | ON, OFF |
EBC |
Energy balance | ON, OFF |
MBC |
Mass balance | ON, OFF |
PQC |
Density-placed inflows | ON, OFF |
Volume balance calculations are useful during initial runs to ensure the model preserves continuity. Thermal energy and mass balance calculations should similarly be used initially. If [PQC] is turned ON, inflows are matched with the layer(s) whose density most closely corresponds to inflow density. If [EVC] is OFF, evaporation is not in the water budget but is always in surface heat exchange.
Density Placed Inflows
Use density-placed inflows with caution. A large inflow placed in a small bottom layer may cause the model to slow to a crawl or go unstable.
CALCULAT VBC EBC MBC PQC EVC PRC
Wb 1 ON ON ON OFF OFF OFF
Wb 2 ON ON ON OFF OFF OFF
Wb 3 ON ON ON OFF OFF OFF
DEAD SEA¶
The [DEAD SEA] card has been used primarily during model development debugging. It is in the release version because it can be useful in evaluating relative effects of the hydrodynamic forcing functions. These should all be ON for normal model runs.
| Variable | Description | Options |
|---|---|---|
WINDC |
Turn ON/OFF wind |
ON, OFF |
QINC |
Turn ON/OFF all sources of water |
ON, OFF |
QOUTC |
Turn ON/OFF all sinks of water |
ON, OFF |
HEATC |
Turn ON/OFF heat exchange |
ON, OFF |
INTERPOL¶
The [INTERPOL] card controls how time-varying input values are interpolated between specified points.
| Field | Variable | Value | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | QINIC |
Character | ON |
Interpolate inflows, inflow temperatures, and inflow constituent concentrations, ON or OFF |
| 3 | DTRIC |
Character | ON |
Interpolate distributed tributary inflows and inflow temperatures and constituent concentrations, ON or OFF |
| 4 | HDIC |
Character | ON |
Interpolate head boundary elevations and boundary temperatures and constituent concentrations, ON or OFF |
These options control whether time-varying input values are treated as a step function (OFF) or linearly interpolated between values (ON). If interpolation is used, the user must ensure it is appropriate and the input values supply correct information. Many reservoirs have periods of no releases. If outflow interpolation is turned on, input values must be set up so no outflow occurs during these periods. This is accomplished by including extra dates in the outflow file with zero outflows to ensure the interpolation routine yields zero outflows.
HEAT EXCH¶
The [HEAT EXCH] card specifies heat exchange parameters for each waterbody.
| Variable | Description | Units/Options |
|---|---|---|
SLHTC |
Surface heat exchange formulation | TERM (term-by-term), ET (equilibrium temperature) |
SROC |
Read in observed short wave solar radiation | ON, OFF |
RHEVAP |
Ryan-Harleman evaporation formula (only for TERM) |
ON, OFF |
METIC |
Meteorological input interpolation | ON, OFF |
FETCHC |
Fang and Stefan (1994) fetch calculation | ON, OFF |
AFW |
Wind function coefficient a | W m⁻² mmHg⁻¹ (default 9.2) |
BFW |
Wind function coefficient b | W m⁻² mmHg⁻¹ (m s⁻¹)⁻cfw (default 0.46) |
CFW |
Wind function coefficient c | dimensionless (default 2.0) |
WINDH |
Wind speed measurement height | m |
The generalized wind function is: f(Wz) = AFW + BFW * Wz^CFW. The default formulation is from Edinger et al. (1974). For thermally loaded systems such as cooling lakes, use the Ryan-Harleman formulation with [RHEVAP] set to ON. [WINDH] specifies the height at which wind speed measurements were taken; the model converts them to the height used in the wind speed formulation.
HEAT EXCH SLHTC SROC RHEVAP METIC FETCHC AFW BFW CFW WINDH
Wb 1 TERM OFF OFF ON OFF 9.2 0.46 2.0 2.0
Wb 2 TERM OFF OFF ON OFF 9.2 0.46 2.0 2.0
Wb 3 TERM OFF OFF ON OFF 9.2 0.46 2.0 2.0
ICE COVER¶
The [ICE COVER] card specifies ice cover parameters for each waterbody.
| Variable | Description | Units/Options |
|---|---|---|
ICEC |
Ice calculations | ON, ONWB, OFF |
SLICEC |
Ice solution method | SIMPLE, DETAIL |
ALBEDO |
Ice albedo | 0.0--1.0 |
HWI |
Ice-water heat exchange coefficient | W m⁻² °C⁻¹ |
BETAI |
Fraction of solar radiation absorbed at ice surface | 0.0--1.0 |
GAMMAI |
Light extinction coefficient for ice | m⁻¹ |
ICEMIN |
Minimum ice thickness for ice formation | m |
ICET2 |
Temperature below which ice forms | °C |
ICE COVER ICEC SLICEC ALBEDO HWI BETAI GAMMAI ICEMIN ICET2
Wb 1 OFF DETAIL 0.25 10.00 0.60 0.07 0.050 3.00
Wb 2 OFF DETAIL 0.25 10.00 0.60 0.07 0.050 3.00
Wb 3 OFF DETAIL 0.25 10.00 0.60 0.07 0.050 3.00
TRANSPORT¶
The [TRANSPORT] card specifies the transport solution scheme for each waterbody.
| Variable | Description | Options |
|---|---|---|
SLTRC |
Transport solution scheme | ULTIMATE (recommended), QUICKEST, UPWIND |
THETA |
Time-weighting for vertical advection scheme | 0.0--1.0 (recommended 0.55) |
There are three options for [SLTRC]: UPWIND, QUICKEST, or ULTIMATE, with ULTIMATE being the recommended option. The older solution schemes are retained mainly for comparing different solution schemes. The QUICKEST option employs a higher-order solution scheme to reduce numerical diffusion present in the original UPWIND differencing scheme. The ULTIMATE option eliminates the physically unrealistic over/undershoots that QUICKEST generates near regions of sharp concentration gradients.
[THETA] specifies the amount of time weighting in the vertical advection scheme. A value of 0 specifies fully explicit vertical advection, 1 specifies fully implicit vertical advection, and 0.5 specifies a Crank-Nicholson scheme. The recommended value is 0.55, which ensures unconditional numerical stability for vertical transport. Vertical diffusion is always fully implicit.
THETA Values
THETA must be between 0.0 and 1.0. A value of 0.55 is commonly used. Setting THETA to 0.0 uses an explicit scheme (less stable), while 1.0 uses a fully implicit scheme (more diffusive).
HYD COEF¶
The [HYD COEF] card specifies hydraulic coefficients for each waterbody.
| Variable | Description | Units |
|---|---|---|
AX |
Longitudinal eddy viscosity | m² s⁻¹ |
DX |
Longitudinal eddy diffusivity | m² s⁻¹ |
CBHE |
Coefficient of bottom heat exchange | W m⁻² °C⁻¹ |
TSED |
Sediment temperature | °C |
FI |
Interfacial friction factor | - |
TSEDF |
Sediment temperature factor | - |
FRICC |
Bottom friction solution | MANN (Manning) or CHEZY |
Z0 |
Water surface roughness height | m (default 0.001) |
HYD COEF AX DX CBHE TSED FI TSEDF FRICC Z0
Wb 1 1.00 1.00 0.30 11.50 0.01 1.00 MANN 0.001
Wb 2 -0.10 -0.10 0.30 11.50 0.01 1.00 MANN 0.001
Wb 3 1.00 1.00 0.30 11.50 0.01 1.00 MANN 0.001
EDDY VISC¶
The [EDDY VISC] card specifies the vertical eddy viscosity formulation for each waterbody.
| Variable | Description | Options |
|---|---|---|
AZC |
Vertical eddy viscosity formulation | NICK (Nikuradse), PARAB (Parabolic), RNG, TKE, TKE1, RWBT, W2N, W2 |
AZSLC |
Eddy viscosity limitation | IMP (implicit), EXP (explicit) |
AZMAX |
Maximum value for vertical eddy viscosity | m² s⁻¹ (default 1.0) |
FBC |
Boundary condition choice (only if AZC=TKE1) |
1, 2, or 3 |
E |
Roughness coefficient (only if AZC=TKE1) |
Real (default 9.535) |
ARODI |
Coefficient for boundary friction (only if AZC=TKE1) |
Real (default 0.431) |
STRCKLR |
Strickler Nikuradse coefficient (only if AZC=TKE1) |
Real (default 24.0) |
BOUNDFR |
Boundary friction production constant (only if AZC=TKE1) |
Real (default 10.0) |
TKECAL |
Implicit or explicit vertical transport in k-epsilon model (only if AZC=TKE1) |
IMP, EXP |
EDDY VIS AZC AZSLC AZMAX FBC E ARODI STRCKLR BOUNDFR TKECAL
Wb 1 TKE IMP 1.00 3 9.535 0.430 24.0 10.00 IMP
Wb 2 TKE IMP 1.00 3 9.535 0.430 24.0 10.00 IMP
Wb 3 W2 IMP 1.00 3 9.535 0.430 24.0 10.00 IMP
N STRUC¶
The [N STRUC] card specifies the number of outlet structures for each branch.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | NSTR |
Integer | Number of branch outlet structures |
| 3 | DYNSTRUC |
Character | Dynamic centerline elevation of structure control, ON or OFF |
STR INT¶
The [STR INT] card specifies whether structure outflows are interpolated or treated as step functions.
| Variable | Description | Options |
|---|---|---|
STRIC |
Turn ON/OFF interpolation of structure outflows |
ON, OFF |
The outflows specified by the outflow file can either be assumed to be step functions with [STRIC] set to OFF, or the outflow file flows can be linearly interpolated between values with [STRIC] set to ON.
STR TOP¶
The [STR TOP] card specifies the top layer above which selective withdrawal will not occur.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | KTSTR |
Integer | Top layer above which selective withdrawal will not occur |
The selective withdrawal algorithm calculates vertical withdrawal zone limits based on outlet geometry, outflows, and in-pool densities. This card specifies the top elevation for which outflows are calculated. This option can be used to mimic the effects of a curtain weir that limits the upper extent of the withdrawal zone. In the absence of any structure or topographic feature that limits the top of the selective withdrawal zone, set the elevation to the top elevation of the computational grid. If the structure centerline elevation is above KTSTR, then KTSTR is raised to the centerline elevation.
As a default, set this to layer 2 unless there is reason to suspect a restriction above the centerline of the outlet.
STR BOT¶
The [STR BOT] card specifies the bottom layer below which selective withdrawal will not occur.
| Field | Variable | Value | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | KBSTR |
Integer | Bottom layer below which selective withdrawal will not occur |
This card specifies the bottom elevation for which outflows are calculated in the selective withdrawal algorithm. This option can be used to simulate the effects of an upstream submerged weir, accumulation of debris at the trash racks, or an upstream cofferdam. In the absence of any structure or topographic feature limiting the bottom withdrawal layer, set the value to the bottommost active layer at the downstream segment. If the structure centerline elevation is below KBSTR, then KBSTR is lowered to the centerline elevation.
As a default, set this to layer KB (lowest active layer) at the location of the structure unless there is reason to suspect a restriction below the centerline of the outlet.
SINK TYPE¶
The [SINK TYPE] card specifies the sink type used in the selective withdrawal algorithm for each outlet structure. The card is specified by branch, with values for each structure within the branch.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2--10 | SINKC |
Character | POINT |
Sink type: LINE or POINT |
The options are LINE and POINT, each of which produces different selective withdrawal characteristics.
LINE: Line sinks are typically structures that are wide relative to the dam width (structure width > 1/10 of dam width).POINT: Point sinks are typically structures that are narrow relative to the dam width (structure width < 1/10 of dam width).
SINK TYPE SINKC SINKC SINKC SINKC SINKC SINKC SINKC SINKC SINKC
Br 1
Br 2
Br 3 POINT POINT POINT
Br 4
E STRUC¶
The [E STRUC] card specifies the centerline elevation of each withdrawal structure by branch.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | ESTR |
Real | Centerline elevation of structure, m |
This card defines the vertical position of each outlet structure. Values are specified for each structure within each branch.
W STRUC¶
The [W STRUC] card specifies the width of each outlet structure by branch. The width is used only when the sink type (SINKC) is set to LINE. If SINKC is set to POINT, the width values are ignored.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | WSTR |
Real | Width of structure (line sink), m |
If there are more outlet structures than will fit on a line, the widths are continued on the next line starting in field 2.
PIPES¶
The [PIPES] card specifies the characteristics for each pipe included in the simulation. This card is required when NPI > 0 on the [IN/OUTFLOW] card.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | IUPI |
Integer | Pipe upstream segment number | |
| 3 | IDPI |
Integer | Pipe downstream segment number | |
| 4 | EUPI |
Real | Upstream invert elevation, m | |
| 5 | EDPI |
Real | Downstream invert elevation, m | |
| 6 | WPI |
Real | Pipe diameter, m | |
| 7 | DLXPI |
Real | Pipe length, m | |
| 8 | FPI |
Real | Bottom roughness (Manning's friction factor) | |
| 9 | FMINPI |
Real | Minor friction losses | |
| 10 | LATPIC |
Character | Downstream or lateral pipe withdrawal: DOWN or LAT |
|
| 11 | DYNPIPE |
Character | Dynamic pipe switch: ON or OFF |
[IUPI] and [IDPI] specify the upstream and downstream segment locations of the pipe, respectively. [EUPI] and [EDPI] set the upstream and downstream invert elevations. [WPI] specifies the pipe diameter and [DLXPI] specifies the pipe length. [FPI] sets the bottom roughness value (Manning's friction factor) and [FMINPI] specifies the minor friction losses.
Setting [LATPIC] to DOWN specifies that the pipe is at the downstream end of the segment. In this case the water surface elevations are computed based on the right-hand side water surface elevation of the segment. The elevation of the right-hand side of the segment is estimated using the water surface slope of segment IUPI and IUPI-1. Momentum from the outflow is preserved as in a downstream structure withdrawal. If [LATPIC] is set to LAT, the outflow is treated as a lateral withdrawal at the segment center elevation. In both cases selective withdrawal is used in the computations.
For a downstream segment that is at the upstream end of a branch, the inflow is treated as an inflow. If it is input to a downstream segment that is not the upstream end, it is treated as a tributary inflow.
When [DYNPIPE] is ON, the model reads a file called dynpipe.npt. This file uses the same format as a time series file with a time series of Julian day and a number usually from 0 to 1. The number is multiplied by the flow rate computed for the pipe, allowing the user to turn the pipe on or off or reduce flow for given periods of time. This input is treated as a step function (no linear interpolation between successive values).
PIPE IUPI IDPI EUPI EDPI WPI DLXPI FPI FMINPI LATPIC DYNPIPE
Pi 1 24 28 28.0 27.0 0.5 230.0 0.065 0.10 DOWN ON
PIPE UP¶
The [PIPE UP] card specifies how inflows and outflows for the upstream pipe location are handled. This card is required when NPI > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | PUPIC |
Character | DISTR |
Inflow placement at upstream pipe segment: DISTR, DENSITY, or SPECIFY |
| 3 | ETUPI |
Real | Top elevation for pipe inflows when using SPECIFY option, m |
|
| 4 | EBUPI |
Real | Bottom elevation for pipe inflows when using SPECIFY option, m |
|
| 5 | KTUPI |
Integer | Top layer above which selective withdrawal will not occur | |
| 6 | KBUPI |
Integer | Bottom layer below which selective withdrawal will not occur |
Setting [PUPIC] to DISTR distributes the inflows evenly from the water surface to the bottom active layer. Setting it to DENSITY places the inflows into a layer with similar density. Setting it to SPECIFY allows the user to specify a top and bottom elevation into which inflows enter. If the SPECIFY option is used, [ETUPI] and [EBUPI] are used to specify the top and bottom elevations over which the inflows are distributed.
[KTUPI] and [KBUPI] set the upper and lower layers above and below which outflow does not occur in the selective withdrawal algorithm.
PIPE DOWN¶
The [PIPE DOWN] card specifies how inflows and outflows for the downstream pipe location are handled. This card is required when NPI > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | PDPIC |
Character | DISTR |
Inflow placement at downstream pipe segment: DISTR, DENSITY, or SPECIFY |
| 3 | ETDPI |
Real | Top elevation for pipe inflows when using SPECIFY option, m |
|
| 4 | EBDPI |
Real | Bottom elevation for pipe inflows when using SPECIFY option, m |
|
| 5 | KTDPI |
Integer | Top layer above which selective withdrawal will not occur | |
| 6 | KBDPI |
Integer | Bottom layer below which selective withdrawal will not occur |
Setting [PDPIC] to DISTR distributes the inflows evenly from the water surface to the bottom active layer. Setting it to DENSITY places the inflows into a layer with similar density. Setting it to SPECIFY allows the user to specify a top and bottom elevation into which inflows enter. If the SPECIFY option is used, [ETDPI] and [EBDPI] are used to specify the top and bottom elevations over which the inflows are distributed.
[KTDPI] and [KBDPI] set the upper and lower layers above and below which outflow does not occur in the selective withdrawal algorithm.
SPILLWAYS¶
The [SPILLWAYS] card specifies the spillway (or weir) characteristics for each spillway in the simulation. This card is required when NSP > 0 on the [IN/OUTFLOW] card.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | IUSP |
Integer | Spillway segment location |
| 3 | IDSP |
Integer | Downstream segment where spillway outflow enters |
| 4 | ESP |
Real | Spillway elevation (crest), m |
| 5 | A1SP |
Real | α₁, empirical coefficient for free-flowing conditions |
| 6 | B1SP |
Real | β₁, empirical coefficient for free-flowing conditions |
| 7 | A2SP |
Real | α₂, empirical coefficient for submerged conditions |
| 8 | B2SP |
Real | β₂, empirical coefficient for submerged conditions |
| 9 | LATSPC |
Character | Downstream or lateral withdrawal: DOWN or LAT |
[IUSP] and [IDSP] specify the upstream and downstream segments for the spillway. Setting [IDSP] to 0 allows the user to spill water and have that water lost from the system.
The model requires the user to specify a head (h, m) versus flow (Q, m³ s⁻¹) relationship in the following form for freely flowing conditions:
Q = α₁ Δh^β₁
where α₁ is an empirical parameter, β₁ is an empirical parameter, Δh = Z_u - Z_sp, Z_u is the upstream head (m), and Z_sp is the spillway crest elevation (m).
For submerged conditions:
Q = α₂ Δh^β₂
where α₂ is an empirical parameter, β₂ is an empirical parameter, Δh = Z_u - Z_d, Z_u is the upstream head (m), and Z_d is the downstream head (m).
Submerged conditions are defined when the tailwater depth over the upstream energy head (static head and velocity head) is greater than 0.67. Even though negative flow rates are possible using the second equation when the downstream head is greater than the upstream head, these results should be used with caution since rarely are rating curves done for reverse flow. The user should ensure a smooth transition between submerged and free-flowing conditions by proper choice of model coefficients.
Coefficient Scaling
The A2SP coefficients may be about 5 times larger than the A1SP coefficients if the B1SP and B2SP coefficients are unchanged. See Part 2 for further information.
Setting [LATSPC] to DOWN specifies that the spillway is at the downstream end of the segment. In this case the water surface elevations are computed based on the right-hand side of segment IUSP. This water surface elevation is estimated based on the slope of the water surface at IUSP and IUSP-1. Momentum from the outflow is preserved as in a downstream structure withdrawal. If [LATSPC] is set to LAT, the outflow is treated as a lateral withdrawal at the segment center elevation. In both cases selective withdrawal is used in the computations.
SPILLWAYS IUSP IDSP ESP A1SP B1SP A2SP B2SP LATSPC
Sp 1 30 33 45.5 45.33 1.5 34.45 1.0 DOWN
Sp 2 28 33 40.0 10.00 1.5 20.00 1.0 LAT
SPILL UP¶
The [SPILL UP] card specifies how inflows and outflows for the upstream spillway location are handled. This card is required when NSP > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | PUSPC |
Character | DISTR |
Inflow placement at upstream spillway segment: DISTR, DENSITY, or SPECIFY |
| 3 | ETUSP |
Real | Top elevation for spillway inflows when using SPECIFY option, m |
|
| 4 | EBUSP |
Real | Bottom elevation for spillway inflows when using SPECIFY option, m |
|
| 5 | KTUSP |
Integer | Top layer above which selective withdrawal will not occur | |
| 6 | KBUSP |
Integer | Bottom layer below which selective withdrawal will not occur |
Setting [PUSPC] to DISTR distributes the inflows evenly from the water surface to the bottom active layer. Setting it to DENSITY places the inflows into a layer with similar density. Setting it to SPECIFY allows the user to specify a top and bottom elevation into which inflows enter. If the SPECIFY option is used, [ETUSP] and [EBUSP] are used to specify the top and bottom elevations over which the inflows are distributed.
[KTUSP] and [KBUSP] set the upper and lower layers above and below which outflow does not occur in the selective withdrawal algorithm.
SPILL DOWN¶
The [SPILL DOWN] card specifies how inflows and outflows for the downstream spillway location are handled. This card is required when NSP > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | PDSPC |
Character | DISTR |
Inflow placement at downstream spillway segment: DISTR, DENSITY, or SPECIFY |
| 3 | ETDSP |
Real | Top elevation for spillway inflows when using SPECIFY option, m |
|
| 4 | EBDSP |
Real | Bottom elevation for spillway inflows when using SPECIFY option, m |
|
| 5 | KTDSP |
Integer | Top layer above which selective withdrawal will not occur | |
| 6 | KBDSP |
Integer | Bottom layer below which selective withdrawal will not occur |
Setting [PDSPC] to DISTR distributes the inflows evenly from the water surface to the bottom active layer. Setting it to DENSITY places the inflows into a layer with similar density. Setting it to SPECIFY allows the user to specify a top and bottom elevation into which inflows enter. If the SPECIFY option is used, [ETDSP] and [EBDSP] are used to specify the top and bottom elevations over which the inflows are distributed.
[KTDSP] and [KBDSP] set the upper and lower layers above and below which outflow does not occur in the selective withdrawal algorithm.
SPILL GAS¶
The [SPILL GAS] card turns on or off spillway gas computations and specifies the parameters that define the dissolved gas relationship. This card is required when NSP > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | GASSPC |
Character | OFF |
Dissolved gas computations: ON or OFF |
| 3 | EQSP |
Integer | Equation number for computing dissolved gas (1--4) | |
| 4 | ASP |
Real | a coefficient in dissolved gas equation | |
| 5 | BSP |
Real | b coefficient in dissolved gas equation | |
| 6 | CSP |
Real | c coefficient in dissolved gas equation |
If dissolved gas computations are turned ON via [GASSPC], an equation number must be supplied (1 to 3). Based on the equation number, two or three coefficients are required. If [IDSP] is 0, the model will not compute any effects of gas transfer even if [GASSPC] is ON, since the water exiting the spillway or weir is not accounted for in the system. This algorithm computes gas effects for flow from upstream to downstream and there is no adjustment of dissolved oxygen for reverse flow.
The gas production equations are empirical correlations between total dissolved gas (TDG), usually measured a mile downstream of the dam after turbulence from the spillway has subsided, and discharge, usually measured in kcfs.
Equation # (EQSP) |
Equation | Description |
|---|---|---|
| 1 | %TDG = a q_s + b | Linear function of spill on a per-spillway basis. q_s = individual spillway spill (kcfs). C_O₂ = %TDG x C_sO₂. |
| 2 | %TDG = a + b e^(c q_s) | Bounded exponential of spill on a per-spillway basis. C_O₂ = %TDG x C_sO₂. |
| 3 | D_a/D_b = 1 + 0.38ab(1 - 0.11c) / (1 + 0.046T)c | Reaeration effect for small height weir or dam (< 10 m). c = water fall height (m). C_O₂ = C_sO₂ - D_b. |
| 4 | C_O₂ = FRAC x C_into turbine O₂ | Reaeration increased by a fraction of incoming dissolved oxygen. b = 0 or 1 (time series file w2_spX_DO.csv); c = 0 or 1 (saturation limit). |
TDG Limits
For equations 1 and 2, the maximum TDG allowed is 145%. If TDG is computed to be less than 100%, there is no effect of the spillway or gate on reaeration.
GATES¶
The [GATES] card specifies the gate characteristics for each gate in the simulation. This card is required when NGT > 0 on the [IN/OUTFLOW] card.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | IUGT |
Integer | Gate segment location |
| 3 | IDGT |
Integer | Downstream segment where gate outflow enters |
| 4 | EGT |
Real | Gate elevation, m |
| 5 | A1GT |
Real | α₁ coefficient for free-flowing conditions |
| 6 | B1GT |
Real | β₁ coefficient for free-flowing conditions |
| 7 | G1GT |
Real | γ₁ coefficient for free-flowing conditions |
| 8 | A2GT |
Real | α₂ coefficient for submerged conditions |
| 9 | B2GT |
Real | β₂ coefficient for submerged conditions |
| 10 | G2GT |
Real | γ₂ coefficient for submerged conditions |
| 11 | LATGTC |
Character | Downstream or lateral withdrawal: DOWN or LAT |
[IUGT] and [IDGT] specify the upstream and downstream segments for the gate. Setting [IDGT] to 0 allows the user to spill water that is lost from the system.
For freely flowing conditions: Q = α₁ Δh^β₁ B^γ₁
where Δh = Z_u - Z_sp (m), Z_u is the upstream head, Z_sp is the crest elevation, and B is the gate opening (m).
For submerged flow: Q = α₂ Δh^β₂ B^γ₂
where Δh = Z_u - Z_d (m) and Z_d is the downstream head.
The model user must also generate a time series file of the gate openings ([GATEFN]). Whenever B >= 0.8(Z_u - Z_sp), a weir equation is used with no functional dependency on the gate width.
If a valve-rating curve is used as a "gate" and the outlet elevation differs from the withdrawal elevation:
- [EGT] is interpreted as the outlet level for the water being withdrawn.
- [A2GT] must be set to zero (no reverse flow equation is used).
- [G2GT] is interpreted as the elevation used to compute the head on the outlet valve. Whenever [A2GT] is set to zero and [G2GT] is non-zero, [G2GT] will be used to compute the head difference between the water level and the outlet rather than [EGT], but [EGT] will still determine the location of the withdrawal.
In some reservoirs, an outlet valve is connected to the reservoir and a head-discharge relationship is used based on the gate opening or number of turns of the gate. In this case, the outlet level is usually at a different elevation than the withdrawal elevation. The gate formulation can still be used if there is no reverse flow through the needle valve.
Setting [LATGTC] to DOWN specifies that the gate is at the downstream end of the segment. In this case the water surface elevations are computed based on the right-hand side of segment IUGT. This water surface elevation is estimated based on the slope of the water surface at IUGT and IUGT-1. Momentum from the outflow is preserved as in a downstream structure withdrawal. If [LATGTC] is set to LAT, the outflow is treated as a lateral withdrawal at the segment center elevation. In both cases selective withdrawal is used.
GATES IUGT IDGT EGT A1GT B1GT G1GT A2GT B2GT G2GT LATGTC
Gt 1 27 33 44.0 10.00 1.00 1.00 10.0 2.50 0.00 DOWN
GATE WEIR¶
The [GATE WEIR] card specifies the weir coefficients used when the gates are open and the open gate does not interfere with the flow (gate opening B >= 0.8 Δh). This card is required when NGT > 0.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2 | GA1 |
Real | α₁ for free-flowing conditions as a spillway |
| 3 | GB1 |
Real | β₁ for free-flowing conditions as a spillway |
| 4 | GA2 |
Real | α₂ for submerged conditions as a spillway |
| 5 | GB2 |
Real | β₂ for submerged conditions as a spillway |
| 6 | DYNGTC |
Character | Dynamic gate control: B, ZGT, FLOW, or FLOW_ZGT |
| 7 | GTIC |
Character | Gate interpolation: ON or OFF |
For [GA1] equal to zero, only the gated equations on the [GATES] card are used. For [GA2] equal to zero, only the freely flowing equation is used even if submerged or reverse flow occurs.
For freely flowing conditions: Q = α₁ Δh^β₁ (where α₁ = [GA1], β₁ = [GB1]).
For submerged conditions: Q = α₂ Δh^β₂ (where α₂ = [GA2], β₂ = [GB2]).
[DYNGTC] determines whether the gate inflow file represents dynamic gate opening heights, dynamic weir crest elevations, known dynamic flow rates, or both.
DYNGTC Value |
Description |
|---|---|
B |
Dynamic gate opening heights. Uses the rating curves for gates. |
ZGT |
Dynamic weir crest elevations. G1GT and G2GT are set to 0, changing the rating curve to the same form as a spillway or weir. |
FLOW |
Known dynamic flow rates. All rating curve coefficients are ignored. |
FLOW_ZGT |
Both dynamic flow and dynamic centerline of withdrawal. Combines the FLOW and ZGT settings. The gate file contains the dynamic flow rate, and a separate file dynselevGT.npt provides the dynamic centerline elevation. |
The gate file (QGT) is defined in the section on file names. When DYNGTC = FLOW_ZGT, the gate file contains the dynamic flow rate, and another file for the dynamic centerline elevation called dynselevGT.npt is also required. This input file uses the same format as the dynamic elevation for structural outflows.
[GTIC] determines if the [DYNGTC] variable is interpolated or treated as a step function. When [GTIC] is ON, linear interpolation is used between data points in the input gate file.
GATE UP¶
The [GATE UP] card specifies how inflows and outflows for the upstream gate location are handled. This card is required when NGT > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | PUGTC |
Character | DISTR |
Inflow placement at upstream gate segment: DISTR, DENSITY, or SPECIFY |
| 3 | ETUGT |
Real | Top elevation for gate inflows when using SPECIFY option, m |
|
| 4 | EBUGT |
Real | Bottom elevation for gate inflows when using SPECIFY option, m |
|
| 5 | KTUGT |
Integer | Top layer above which selective withdrawal will not occur | |
| 6 | KBUGT |
Integer | Bottom layer below which selective withdrawal will not occur |
Setting [PUGTC] to DISTR distributes the inflows evenly from the water surface to the bottom active layer. Setting it to DENSITY places the inflows into a layer with similar density. Setting it to SPECIFY allows the user to specify a top and bottom elevation into which inflows enter.
[KTUGT] and [KBUGT] set the upper and lower layers above and below which outflow does not occur in the selective withdrawal algorithm.
GATE DOWN¶
The [GATE DOWN] card specifies how inflows and outflows for the downstream gate location are handled. This card is required when NGT > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | PDGTC |
Character | DISTR |
Inflow placement at downstream gate segment: DISTR, DENSITY, or SPECIFY |
| 3 | ETDGT |
Real | Top elevation for gate inflows when using SPECIFY option, m |
|
| 4 | EBDGT |
Real | Bottom elevation for gate inflows when using SPECIFY option, m |
|
| 5 | KTDGT |
Integer | Top layer above which selective withdrawal will not occur | |
| 6 | KBDGT |
Integer | Bottom layer below which selective withdrawal will not occur |
Setting [PDGTC] to DISTR distributes the inflows evenly from the water surface to the bottom active layer. Setting it to DENSITY places the inflows into a layer with similar density. Setting it to SPECIFY allows the user to specify a top and bottom elevation into which inflows enter.
[KTDGT] and [KBDGT] set the upper and lower layers above and below which outflow does not occur in the selective withdrawal algorithm.
GATE GAS¶
The [GATE GAS] card turns on or off gate dissolved gas computations and specifies the parameters that define the dissolved gas relationship. This card is required when NGT > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | GASGTC |
Character | OFF |
Dissolved gas computations: ON or OFF |
| 3 | EQGT |
Integer | Equation number for computing dissolved gas (1--4) | |
| 4 | AGASGT |
Real | a coefficient in dissolved gas equation | |
| 5 | BGASGT |
Real | b coefficient in dissolved gas equation | |
| 6 | CGASGT |
Real | c coefficient in dissolved gas equation |
For each gate, the model user activates or deactivates the computation by selecting ON or OFF for [GASGTC]. If [IDGT] is 0, the model will not compute any effects of gas transfer even if [GASGTC] is ON. This algorithm only computes gas effects for upstream to downstream flow.
The gas production equations are the same as those used for spillways. See the SPILL GAS section for equation forms and coefficient descriptions.
TDG Limits
For equations 1 and 2, the maximum TDG allowed is 145%. If TDG is computed to be less than 100%, there is no effect of the gate on reaeration.
PUMPS 1¶
The [PUMPS 1] card specifies the characteristics of the pumps in the system. This card is required when NPU > 0 on the [IN/OUTFLOW] card.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | IUPU |
Integer | Upstream segment number where water is withdrawn | |
| 3 | IDPU |
Integer | Downstream segment number where water enters (or negative) | |
| 4 | EPU |
Real | Elevation of pump, m | |
| 5 | STRTPU |
Real | Starting day of pumping, Julian day | |
| 6 | ENDPU |
Real | Ending day of pumping, Julian day | |
| 7 | EONPU |
Real | Pump starting elevation, m | |
| 8 | EOFFPU |
Real | Pump stopping elevation, m | |
| 9 | QPU |
Real | Pump flow rate, m³ s⁻¹ | |
| 10 | LATPUC |
Character | DOWN |
Downstream or lateral withdrawal: DOWN or LAT |
| 11 | DYNPUMP |
Character | OFF |
Dynamic pump control: ON or OFF |
[IUPU] and [IDPU] specify the segments from which water is withdrawn and added back to the system, respectively. If [IDPU] is zero, water is only withdrawn from the system. [IDPU] can be specified as the negative of the downstream segment if the water level control for the pump is in [IDPU] rather than [IUPU].
The elevation of the pump [EPU] specifies the vertical location of the pump and the centerline of the output withdrawal in segment [IUPU]. The outflow uses the selective withdrawal algorithm to determine which vertical layers water is withdrawn from.
[STRTPU] and [ENDPU] specify the starting and ending times during which pumping occurs. [EONPU] and [EOFFPU] specify the elevations at which pumping is activated and deactivated, and [QPU] specifies the pumping rate.
When [IDPU] is positive, the pump turns on if the water level at [IUPU] is above EONPU and turns off if the water level drops below EOFFPU. When [IDPU] is negative, the water level of segment [IDPU] is used to determine the flow, and the interpretation of EONPU and EOFFPU is changed: the pump turns on when water level at [IDPU] drops below EOFFPU and turns off when water level rises above EONPU.
Water Level Control
Pumps can also be thought of as "water level control" since the model user can add a water level rule curve and have the model decide how much outflow is necessary to keep the water level within limits.
Setting [LATPUC] to DOWN specifies that the pump is at the downstream end of the segment. In this case the water surface elevations are computed based on the right-hand side of segment [IUPU]. This water surface elevation is estimated based on the slope of the water surface at IUPU and IUPU-1. The x-momentum from the outflow is preserved as in a downstream structure withdrawal. If [LATPUC] is set to LAT, the outflow is treated as a lateral withdrawal at the segment center elevation. In both cases selective withdrawal is used in the computations.
When [DYNPUMP] is ON, an input file (dynpumpX.npt where X is the pump number) is read containing JDAY, EPU, EONPU, and EOFFPU as a time series. Values are treated as step functions (no interpolation). This allows the user to dynamically change the location of the outflow, the elevation targets, or the flow rate.
When [IDPU] is the negative of the downstream segment, the water level of segment [IDPU] is used to determine the flow of the pump from segment [IUPU] to segment [IDPU], and the interpretation of EONPU and EOFFPU changes: the pump turns on when the water level at [IDPU] drops below EOFFPU and turns off when the water level rises above EONPU.
Pump Flow Direction
For the pumps algorithm, in contrast to gates, spillways (weirs), and pipes, flow is only in one direction (from the upstream segment only).
PUMPS 1 IUPU IDPU EPU STRTPU ENDPU EONPU EOFFPU QPU LATPUC DYNPUMP
Pump1 34 57 465.43 290.0 302.2 468.69 468.68 7.0 LAT ON
Pump2 38 -60 465.13 2.5 356.1 460.00 458.00 1.0 DOWN ON
PUMPS 2¶
The [PUMPS 2] card specifies how inflows and outflows for the water level controls are handled. This card is required when NPU > 0.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | PPUC |
Character | DISTR |
Inflow placement at downstream pump segment: DISTR, DENSITY, or SPECIFY |
| 3 | ETPU |
Real | Top elevation for inflow entry when using SPECIFY option, m |
|
| 4 | EBPU |
Real | Bottom elevation for inflow entry when using SPECIFY option, m |
|
| 5 | KTPU |
Integer | Top layer above which selective withdrawal does not occur | |
| 6 | KBPU |
Integer | Bottom layer below which selective withdrawal will not occur |
Setting [PPUC] to DISTR distributes the inflows evenly from the water surface to the bottom active layer. Setting it to DENSITY places the inflows into a layer with similar density. Setting it to SPECIFY allows the user to specify a top and bottom elevation into which inflows enter.
[KTPU] and [KBPU] set the upper and lower layers above and below which outflow does not occur in the selective withdrawal algorithm.
WEIR SEG¶
The [WEIR SEG] card specifies the segment location of each internal weir in the grid. This card is required when NIW > 0 on the [IN/OUTFLOW] card.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | IWR |
Integer | Internal weir segment location |
If there are more internal weirs than can be specified on one line, the segment locations are continued on the next line without another WEIR SEG card being specified.
The internal weir is always on the downstream side of a segment. The internal weir can simulate a skimmer (from the top down) or a curtain weir (from the bottom up). The model can also utilize a floating skimmer wall.
WEIR TOP¶
The [WEIR TOP] card specifies the top layer location of each internal weir. This card is required when NIW > 0.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | EKTWR |
Real | Weir top layer, or 0.0 for a floating skimmer wall |
For a submerged weir, EKTWR should be set to the layer above which flow is allowed to occur between segments. For a floating skimmer wall, set EKTWR to 0.0. In this case the skimmer wall always is at the water surface during the simulation.
If there are more internal weirs than can be specified on one line, the top layer locations are continued on the next line without another WEIR TOP card being specified.
WEIR BOT¶
The [WEIR BOT] card specifies the bottom layer location of each internal weir. This card is required when NIW > 0.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | EKBWR |
Real | Weir bottom layer, or if negative, the absolute value is the depth of the floating skimmer weir |
For a curtain weir, [EKBWR] should be set to the bottommost layer above which flow between segments will not occur. For a submerged weir, [EKBWR] should be set to the bottommost active layer for the segment specified in the [WEIR SEG] card. For a floating skimmer weir (EKTWR = 0.0), when [EKBWR] is set equal to a negative number, this number is the absolute value of the depth of the skimmer weir from the surface layer.
If there are more internal weirs than can be specified on one line, the bottom layer locations are continued on the next line without another WEIR BOT card being specified.
WD INT¶
The [WD INT] card specifies whether interpolation is used for lateral withdrawal outflows. There is one value of [WDIC] for each withdrawal. If there are more withdrawals than can be specified on one line, values are continued on the next line without another WD INT card.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2--10 | WDIC |
Character | OFF |
Withdrawal outflow interpolation, ON or OFF |
When [WDIC] is set to ON, flows are linearly interpolated between updates. When interpolation is used, the user must ensure the input data supply correct information. Withdrawals can have periods of no releases. If withdrawal interpolation is turned on, input data must be set up so that no outflow occurs during these periods by including extra dates in the withdrawal file with zero outflows.
Handling Zero-Flow Periods with Interpolation
If interpolation is not used, the withdrawal file can specify step changes in flow directly. With interpolation turned on, bracket zero-flow periods with additional rows. For example, to ensure no outflow between Julian day 110 and 120:
WD SEG¶
The [WD SEG] card specifies the segment location for each lateral withdrawal. There is one value of [IWD] for each withdrawal. If there are more withdrawal segments than can be specified on one line, values are continued on the next line without another WD SEG card.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | IWD |
Integer | Withdrawal segment number |
WD ELEV¶
The [WD ELEV] card specifies the centerline elevation of each withdrawal. There is one value of [EWD] for each withdrawal. If there are more withdrawal elevations than can be specified on one line, values are continued on the next line without another WD ELEV card.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | EWD |
Real | Withdrawal centerline elevation, m |
WD TOP¶
The [WD TOP] card specifies the top layer above which no flows will be computed in the selective withdrawal algorithm. There is one value of [KTWD] for each withdrawal.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | KTWD |
Integer | Top layer above which selective withdrawal will not occur |
For most situations, set KTWD to layer 2, which ensures that water can be withdrawn all the way to the surface layer. Set it to a value greater than 2 if a structure somehow limits the withdrawal of water, such as a curtain weir. If the structure centerline elevation is above [KTWD], then the value of KTWD is raised to the centerline elevation.
If there are more withdrawal top layers than can be specified on one line, values are continued on the next line without another WD TOP card.
WD BOT¶
The [WD BOT] card specifies the bottom layer below which no flows will be computed in the selective withdrawal algorithm. There is one value of [KBWD] for each withdrawal.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | KBWD |
Integer | Bottom layer below which selective withdrawal will not occur |
For most situations, set KBWD to the bottommost active layer of the withdrawal segment, which ensures that water can be withdrawn all the way to the bottom layer. Set it to something other than the bottommost active layer if a structure limits the withdrawal, such as a submerged weir. If the structure centerline elevation is below [KBWD], then the value of KBWD is lowered to the centerline elevation.
If there are more bottom withdrawal layers than can be specified on one line, values are continued on the next line without another WD BOT card.
TRIB PLACE¶
The [TRIB PLACE] card specifies how tributary inflows are distributed into the model layers. There is one value of [TRC] for each tributary. If there are more tributaries than can be specified on one line, values are continued on the next line without another TRIB PLACE card.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | TRC |
Character | Tributary inflow placement: DISTR, DENSITY, or SPECIFY |
The three placement options are:
DISTR- Inflows are distributed evenly from top to bottom across all active layers.DENSITY- Inflows are placed at the layer whose density most closely corresponds to the density of the tributary flow. This is the most physically realistic option for most applications.SPECIFY- The user specifies a range of layer elevations over which tributary inflows are distributed evenly. This option requires top and bottom elevations to be set on the TRIB TOP and TRIB BOT cards. It is useful when modeling discharges from a pipe, such as wastewater treatment effluent.
Even though tributary flows are usually inflows to a segment, they can also be negative, implying a withdrawal.
TRIB PLACE PTRC PTRC PTRC PTRC PTRC PTRC PTRC PTRC PTRC
DENSITY DISTR SPECIFY DENSITY DENSITY DENSITY DENSITY DENSITY
TRIB INT¶
The [TRIB INT] card specifies whether interpolation is used for the tributary inflow, temperature, and concentration files. There is one value of [TRIC] for each tributary. If there are more tributaries than can be specified on one line, values are continued on the next line without another TRIB INT card.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2--10 | TRIC |
Character | ON |
Tributary interpolation, ON or OFF |
When [TRIC] is set to OFF, the tributary files for flow, temperature, and concentration are treated as step functions (values remain constant until the next specified date). When set to ON, values are linearly interpolated between dates.
TRIB SEG¶
The [TRIB SEG] card specifies the segment where each tributary enters the waterbody. There is one value of [ITR] for each tributary.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | ITR |
Integer | Segment the tributary enters |
Tributary flows are either placed into a layer whose density most closely corresponds to the tributary flow density, are evenly distributed from top to bottom, or are specified to enter over a range of elevations (see [TRC] on the TRIB PLACE card). Flows that enter segments upstream of the current upstream segment [CUS] for a branch are combined with the branch inflow.
If there are more tributary segments than can be specified on one line, values are continued on the next line without another TRIB SEG card.
TRIB TOP¶
The [TRIB TOP] card specifies the upper elevation for each tributary inflow when the user has specified that inflows will be placed over a range of elevations. Only tributaries set to SPECIFY on the TRIB PLACE card need top elevations specified on this card.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | ETRT |
Real | Tributary inflow top elevation, m |
If there are more tributary top elevations than can be specified on one line, values are continued on the next line without another TRIB TOP card.
TRIB BOT¶
The [TRIB BOT] card specifies the bottom elevation for each tributary inflow when the user has specified that inflows will be placed over a range of elevations. Only tributaries set to SPECIFY on the TRIB PLACE card need bottom elevations specified on this card.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2--10 | ETRB |
Real | Tributary inflow bottom elevation, m |
If there are more tributary bottom elevations than can be specified on one line, values are continued on the next line without another TRIB BOT card.
DST TRIB¶
The [DST TRIB] card specifies whether each branch contains a distributed tributary inflow and whether the inflows, temperatures, and concentrations are linearly interpolated between input dates. A distributed tributary is equivalent to a non-point source loading. There is one value of [DTRC] for each branch.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | DTRC |
Character | OFF |
Distributed tributary option, ON or OFF |
This option may be turned ON or OFF for each branch and is useful for accounting for ungaged flows in the water budget. The flow is distributed among the segments in each branch proportional to their surface areas. See the INTERPOL card for turning ON/OFF interpolation for distributed tributaries.
For each distributed tributary specified, the user must supply an inflow file [QDTFN], an inflow temperature file [TDTFN], and, if constituents are modeled, an inflow constituent concentration file [CDTFN]. If constituents are modeled, the user can select which constituents are included in the distributed tributary concentrations input file (see the Distributed Tributary Active Constituent Control card).
Even though distributed tributary flows are usually inflows to the segments of a branch, they can also be negative, implying withdrawals from all active segments of a branch.
HYD PRINT¶
The [HYD PRINT] card specifies whether certain hydrodynamic terms are included as output in the snapshot file [SNPFN]. The hydrodynamic terms include timestep violations, horizontal and vertical velocities, temperatures, and all the terms that comprise the horizontal momentum equation. The user can turn ON/OFF hydrodynamic output for each waterbody.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | HPRWBC |
Character | OFF |
Output hydrodynamic terms to the snapshot file, ON or OFF |
The following table lists all hydraulic print parameters.
| Term | Description |
|---|---|
NLIM |
Location and number of limiting time steps in the model grid |
U |
Longitudinal velocity in m/s |
W |
Vertical velocity in m/s |
T |
Temperature in °C |
RHO |
Density in kg/m³ |
AZ |
Vertical turbulent eddy viscosity in m²/s |
SHEAR |
Velocity shear stress squared (VSH) in 1/s² |
ST |
Total shear stress at top of model layer (bottom and side-wall shear + velocity shear + wind induced shear) |
SB |
Shear stress at bottom of model layer |
ADMX |
Longitudinal advection of momentum in m³/s² |
DM |
Longitudinal momentum transport by eddy viscosity in m³/s² |
HDG |
Horizontal density gradient in m³/s² |
ADMZ |
Vertical advection of momentum in m³/s² |
HPG |
Horizontal pressure gradient in m³/s² |
GRAV |
Gravity force term in m³/s² |
Values for each waterbody continue across the line. If there are more than nine waterbodies, additional values continue on the next line starting in field two. Output formatting and animation of these variables can be specified in the graph.npt file.
HYD PRINT HPRWBC HPRWBC HPRWBC HPRWBC HPRWBC HPRWBC HPRWBC HPRWBC HPRWBC
NLIM ON ON ON
U ON ON ON
W ON ON ON
T ON ON ON
RHO ON ON ON
AZ ON ON ON
SHEAR ON ON ON
ST ON ON ON
SB ON ON ON
ADMX ON ON ON
DM ON ON ON
HDG ON ON ON
ADMZ ON ON ON
HPG ON ON ON
GRAV ON ON ON
SNP PRINT¶
The [SNP PRINT] card specifies if information is output to the snapshot file [SNPFN], the number of snapshot intervals for specifying output dates and frequencies, and the number of segments that will be output to each snapshot file.
| Variable | Type | Default | Description |
|---|---|---|---|
SNPC |
Character | OFF |
Snapshot output, ON or OFF |
NSNP |
Integer | Number of snapshot dates | |
NISNP |
Integer | Number of segments output |
Each waterbody has separate controls so that the user can include or suppress snapshot output for each waterbody.
Snapshot file output provides computed values for hydrodynamic and constituent variables for user-assigned segments. Output from this file can be large if the frequency of output is small. This option is generally not used for post-processing since other files have these same values in more graphing- and processing-friendly formats.
The number of snapshot dates [NSNP] allows the user to specify output to begin at different dates and frequencies. For example, output can begin on Julian day 224.4 every 0.1 days until day 225.5, then output every day until the end of the simulation. In this case, [NSNP] would be set to 2.
[NISNP] is only used in w2_con.npt. In the Excel version, all active segments are automatically included in the snapshot file output.
Example
SNP DATE¶
The [SNP DATE] card specifies the dates that information is output to the snapshot file [SNPFN]. The total number of dates must match [NSNP] on the SNP PRINT card. Values for each waterbody start on a new line.
| Variable | Type | Units | Description |
|---|---|---|---|
SNPD |
Real | Julian day | Output dates |
SNP DATE SNPD SNPD SNPD SNPD SNPD SNPD SNPD SNPD SNPD
Wb 1 63.50 100.50 200.50
Wb 2 63.50
Wb 3 63.50
SNP FREQ¶
The [SNP FREQ] card specifies the frequency that information is output to the snapshot file [SNPFN]. Values for each waterbody start on a new line.
| Variable | Type | Units | Description |
|---|---|---|---|
SNPF |
Real | days | Output frequency |
SNP SEG¶
The [SNP SEG] card specifies the segments included in the snapshot file. This card and variable are only used in the w2_con.npt input file. The Excel version automatically includes all segments in a waterbody. The user can include all segments in the computational grid but should omit boundary segments that are not part of the computational grid.
If there are more segments than can be specified on one line, values for [ISNP] are continued on the next line without another SNP SEG card being specified. Values for each waterbody start on a new line.
| Variable | Type | Description |
|---|---|---|
ISNP |
Integer | Output segments |
SNP SEG ISNP ISNP ISNP ISNP ISNP ISNP ISNP ISNP ISN
Wb 1 2 3 4 5 6 9 10 11 12
13 14
Wb 2 17 18 19 20 21 22 23 24 25
26 27 28 29 30
SCR PRNT¶
The [SCR PRNT] card specifies if information is output to the screen during the run. In the Excel control file, SCRC is a single value.
| Variable | Type | Default | Description |
|---|---|---|---|
SCRC |
Character | OFF |
Screen output, ON or OFF |
NSCR |
Integer | Number of screen update intervals |
SCR DATE¶
The [SCR DATE] card specifies the dates that information is output to the screen. In the Excel control file, SCRD is a single value.
| Variable | Type | Units | Description |
|---|---|---|---|
SCRD |
Real | Julian day | Output dates |
SCR FREQ¶
The [SCR FREQ] card specifies the frequency that information is output to the screen. The frequency at which the screen is updated is typically at least 0.1 days and more often 1.0 days. Be careful of setting this too small as model runtime is affected by the output. In the Excel control file, SCRF is a single value and is not a function of waterbody.
Frequency can be changed at any time during the simulation by specifying appropriate dates on the SCR DATE card and frequencies on the Screen Frequency card. If output is needed only for the date specified on the SCR DATE card, set the frequency to be greater than the number of days before the next output date.
| Variable | Type | Units | Description |
|---|---|---|---|
SCRF |
Real | days | Output frequency |
PRF PLOT¶
The [PRF PLOT] card specifies if information is output to the profile output file [PRFFN]. Temperature is always output. In the Excel control file, PRFC, NPRF, and NIPRF are single values.
| Variable | Type | Default | Description |
|---|---|---|---|
PRFC |
Character | OFF |
Profile output, ON or OFF |
NPRF |
Integer | Number of profile dates | |
NIPRF |
Integer | Number of segments output |
PRF DATE¶
The [PRF DATE] card specifies dates for output to the profile output file [PRFFN]. PRFD is only one value for all waterbodies in the Excel control file.
| Variable | Type | Units | Description |
|---|---|---|---|
PRFD |
Real | Julian day | Output dates |
PRF FREQ¶
The [PRF FREQ] card specifies the output frequency to the profile output file [PRFFN]. PRFF is only one value for all waterbodies in the Excel control file.
| Variable | Type | Units | Description |
|---|---|---|---|
PRFF |
Real | days | Output frequency |
PRF SEG¶
The [PRF SEG] card specifies model segments for profile output. IPRF is only one value for all waterbodies in the Excel control file. For longitudinal profiles, set [IPRF] for the first waterbody to -1. Output files are named ProfLongJDXXX.csv.
| Variable | Type | Description |
|---|---|---|
IPRF |
Integer | Output segments |
SPR PLOT¶
The [SPR PLOT] card specifies if information is output to the spreadsheet profile output file [SPRFN]. Setting SPRC = ONV outputs an additional file with vertical, volume-weighted averages. For the Excel control file, these are set globally.
| Variable | Type | Default | Description |
|---|---|---|---|
SPRC |
Character | OFF |
Spreadsheet profile output: ON, ONV, or OFF |
NSPR |
Integer | Number of spreadsheet dates | |
NISPR |
Integer | Number of segments in output |
SPR DATE¶
The [SPR DATE] card specifies dates for output to the spreadsheet profile output file [SPRFN]. For the Excel control file, [SPRD] is set globally.
| Variable | Type | Units | Description |
|---|---|---|---|
SPRD |
Real | Julian day | Output dates |
SPR FREQ¶
The [SPR FREQ] card specifies the output frequency to the spreadsheet profile output file [SPRFN]. For the Excel control file, [SPRF] is set globally.
| Variable | Type | Units | Description |
|---|---|---|---|
SPRF |
Real | days | Output frequency |
SPR SEG¶
The [SPR SEG] card specifies model segments for spreadsheet profile output. For the Excel control file, [ISPR] is not a function of waterbody.
| Variable | Type | Description |
|---|---|---|
ISPR |
Integer | Output segments |
VPL PLOT¶
The [VPL PLOT] card (W2 Linkage File Output / Vector Plot) specifies if information is output to the vector plot file [VPLFN] and the number of vector plot intervals for specifying output dates and frequencies. Starting in Version 3.71, the VPL card is no longer the "vector plot card." This card specifies the frequency of output for the W2_Post.exe post-processor. When VPLC is ON, an output file will be created for the times and intervals specified in the vector plot frequency and vector plot date cards. The vector plot filename specifies the binary file output.
| Variable | Type | Default | Description |
|---|---|---|---|
VPLC |
Character | OFF |
W2 Linkage file output, ON or OFF |
NVPL |
Integer | Number of W2 Linkage dates (vector plot dates) |
Large File Sizes
Be careful about high-frequency output for a large system since the post-processor may not be able to process file sizes greater than 2 GB.
Only VPLC for the 1st waterbody must be ON for output. The values of VPLC for other waterbodies are ignored. Only 1 output file is used even for multiple waterbodies. For the Excel control file, VPLC and NVPL are single values and are not a function of waterbody.
Example
VPL DATE¶
The [VPL DATE] card specifies the dates that information is output to the vector plot file [VPLFN]. Only the value for the 1st waterbody is used to write out information for all waterbodies used by the W2tool post-processing program. The values for other waterbodies are ignored. For the Excel control file, VPLD is a single value and is not a function of waterbody.
| Variable | Type | Units | Description |
|---|---|---|---|
VPLD |
Real | Julian day | Output dates |
Example
VPL DATE VPLD VPLD VPLD VPLD VPLD VPLD VPLD VPLD VPLD
Wb 1 224.5 225.5 226.5 227.5 228.5 229.5 230.5
Wb 2 224.5 225.5 226.5 227.5 228.5 229.5 230.5 ←This is ignored
Wb 3 224.5 225.5 226.5 227.5 228.5 229.5 230.5 ←This is ignored
VPL FREQ¶
The [VPL FREQ] card specifies the frequency that information is output to the vector plot file [VPLFN]. Frequency can be changed at any time during the simulation by specifying the dates on the VPL DATE card and the frequencies on the VPL FREQ card. If output is needed only for the date specified on the VPL DATE card, set the frequency to be greater than the number of days before the next output date.
Only the value for the 1st waterbody is used. The values for other waterbodies are ignored. For the Excel control file, VPLF is a single value and is not a function of waterbody.
| Variable | Type | Units | Description |
|---|---|---|---|
VPLF |
Real | days | Output frequency |
Example
VPL FREQ VPLF VPLF VPLF VPLF VPLF VPLF VPLF VPLF VPLF
Wb 1 100.0 100.0 100.0 100.0 100.0 100.0 100.0
Wb 2 100.0 100.0 100.0 100.0 100.0 100.0 100.0 ←This is ignored
Wb 3 100.0 100.0 100.0 100.0 100.0 100.0 100.0 ←This is ignored
CPL PLOT¶
The [CPL PLOT] card (Contour Plot) specifies if information is output to the contour plot file [CPLFN] and the number of contour plot intervals for specifying output dates and frequencies.
Turning ON TECPLOT output allows the user to quickly develop contour and vector animation of model output. TECPLOT output contains Elevation (m), Distance (m), U, W, T(C), RHO, HABITAT# (based on fish habitat criteria), and all active constituents for the entire model grid at a frequency specified in CPL FREQ. If using TECPLOT output, the user can specify which model branches are output in the input file w2_tecplotbr.csv.
| Variable | Type | Default | Description |
|---|---|---|---|
CPLC |
Character | OFF |
Contour plot output, ON or OFF |
NCPL |
Integer | Number of contour plot dates | |
TECPLOT |
Character | OFF |
TECPLOT output format, ON or OFF |
For the w2_con.npt control file, CPLC, NCPL, and TECPLOT are a function of waterbody. In the Excel control file, CPLC, NCPL, and TECPLOT are single-valued and apply to all waterbodies.
Example
CPL DATE¶
| Variable | Type | Units | Description |
|---|---|---|---|
CPLD |
Real | Julian day | Output dates |
CPL DATE CPLD CPLD CPLD CPLD CPLD CPLD CPLD CPLD CPLD
Wb 1 224.5 225.5 226.5 227.5 228.5 229.5 230.5
CPL FREQ¶
| Variable | Type | Units | Description |
|---|---|---|---|
CPLF |
Real | days | Output frequency |
FLUXES¶
| Variable | Type | Default | Description |
|---|---|---|---|
FLXC |
Character | OFF |
Kinetic flux output, ON or OFF |
NFLX |
Integer | Number of kinetic flux dates |
The fluxes represent the average flux in kg/day over the time interval of flux output (FLX FREQ) and use the same output format as the snapshot [SNP] file. A summation of all active fluxes for each waterbody over all segments and layers is output to a file named kflux_wb#.opt where # is the waterbody number. For the w2_con.npt control file, FLXC and NFLX are a function of waterbody. For the Excel control file, these variables are not a function of waterbody and are set for all waterbodies automatically.
Kinetic Flux Output for Calibration
Add kinetic flux output to understand what the model predicts as the major water quality sources and sinks. For example, is dissolved oxygen dominated by reaeration, by algal production, or by nitrification? This is particularly useful during water quality calibration.
KFL DATE¶
| Variable | Type | Units | Description |
|---|---|---|---|
KFLD |
Real | Julian day | Output dates |
FLX FREQ¶
| Variable | Type | Units | Description |
|---|---|---|---|
FLXF |
Real | days | Output frequency |
TSR PLOT¶
| Variable | Type | Default | Description |
|---|---|---|---|
TSRC |
Character | OFF |
Time series output, ON or OFF |
NTSR |
Integer | Number of time series dates | |
NITSR |
Integer | Number of time series computational cells |
The time series output file is a comma-delimited CSV file written at each output segment and depth/layer specified on the TSR SEG and TSR ELEV cards. Each output file contains the following columns:
- Julian day, timestep number, and current Δt
- Water surface elevation (m), temperature (°C), and horizontal flow rate through the cell (m³ s⁻¹)
- Shortwave solar radiation at the surface (W m⁻²), light extinction coefficient (m⁻¹), and depth of the output cell (m)
- Surface width (m), shade fraction, and volume-weighted temperature of the segment (°C)
- Net shortwave solar radiation, longwave radiation, back radiation, evaporative heat loss, and conductive heat flux components (W m⁻²)
- Wind-driven surface reaeration coefficient (day⁻¹)
- All active constituent concentrations (multiplied by
CMULT) - All active derived constituent concentrations (multiplied by
CDMULT) - All active kinetic flux values (instantaneous, in kg day⁻¹)
Virtual Monitoring Sensors
Time series output functions as virtual monitoring sensors placed at specified segments and depths. Use multiple TSR locations to replicate field monitoring stations for direct comparison of model predictions with observed time series during calibration.
TSR Fluxes vs. Kinetic Flux File
TSR file kinetic fluxes are instantaneous; kinetic flux file values are time-averaged.
TSR DATE¶
| Variable | Type | Units | Description |
|---|---|---|---|
TSRD |
Real | Julian day | Output dates |
TSR FREQ¶
| Variable | Type | Units | Description |
|---|---|---|---|
TSRF |
Real | days | Output frequency |
TSR SEG¶
To specify multiple cells in a segment, duplicate the segment number. Paired with TSR ELEV.
| Variable | Type | Description |
|---|---|---|
ITSR |
Integer | Output segments |
TSR ELEV¶
Negative ETSR = layer number; 0.0 = water surface; positive = depth below surface (m).
| Variable | Type | Units | Description |
|---|---|---|---|
ETSR |
Real | m or layer | Depth below surface (positive) or layer number (negative) |
TSR Filename and Subdirectory Support
In the Excel control file, the TSRFN variable specifies the filename prefix and suffix for the TSR output file. On Windows, use .\Subdirectory\Filename to write TSR output files to a model subdirectory. The output filename incorporates TSRFN along with the segment number to differentiate each file.
WL OUT¶
| Variable | Type | Default | Description |
|---|---|---|---|
WLC |
Character | OFF |
Water level output, ON or OFF |
WLFREQ |
Real | Frequency in days |
FB OUT¶
| Variable | Type | Default | Description |
|---|---|---|---|
FLOWBALC |
Character | OFF |
Flow balance output, ON or OFF |
FLOWBALF |
Real | Frequency in days |
NPB OUT¶
The Mass Balance control (MBC) must also be ON.
| Variable | Type | Default | Description |
|---|---|---|---|
NPBALC |
Character | OFF |
N and P balance output, ON or OFF |
NPBALF |
Real | Frequency in days |
WITH OUT¶
The [WITH OUT] card controls whether withdrawal output files are written. These files contain outflow rate, outflow temperature, outflow constituent concentrations, and outflow derived constituent concentrations for each withdrawal output segment. This is useful for comparing time series results and for providing input files to downstream models.
WDOC controls both whether output is written and the frequency units for WDOF:
ON: Output is written;WDOFfrequency units are daysONH: Output is written;WDOFfrequency units are hoursONS: Output is written;WDOFfrequency units are secondsOFF: No withdrawal output
| Variable | Type | Default | Description |
|---|---|---|---|
WDOC |
Character | OFF |
Withdrawal output: ON, ONH, ONS, or OFF |
NWDO |
Integer | Number of withdrawal output dates | |
NIWDO |
Integer | Number of withdrawal output segments | |
WDOFN |
Character | Output file name with subdirectory and file suffix |
WDOFN can specify a subdirectory and filename that is embedded into the output file name and file type. For example, if WDOFN = .\wdo files\Lake1.csv, the output files will be written to a subdirectory called wdo files from the main directory. The combined outflow files (combining all withdrawals, pumps, pipes, gates, spillways, and structures at the output segment) use the following naming convention:
q_AAA_segXX.YYY: Flow rate (m³ s⁻¹)t_AAA_segXX.YYY: Temperature (°C)c_AAA_segXX.YYY: Constituent concentrationsd_AAA_segXX.YYY: Derived constituent concentrations
where XX is the segment number (IWDO), AAA is the name entered for WDOFN, and YYY is the file type given for the output file (e.g., csv). In addition, output files for each separate outlet (structures, withdrawals, pumps, spillways, pipes) are also written at the withdrawal output segment.
Output Multipliers Not Applied
WDO output files are not multiplied by CMULT or CDMULT output multipliers, as is the case for the SNP and TSR output files.
WDO DATE¶
| Variable | Type | Units | Description |
|---|---|---|---|
WDOD |
Real | Julian day | Output dates |
WDO FREQ¶
| Variable | Type | Units | Description |
|---|---|---|---|
WDOF |
Real | days, hours, or seconds | Output frequency (units depend on WDOC) |
WITH SEG¶
| Variable | Type | Description |
|---|---|---|
IWDO |
Integer | Output segments |
RESTART¶
| Variable | Type | Default | Description |
|---|---|---|---|
RSOC |
Character | OFF |
Restart output, ON or OFF |
NRSO |
Integer | Number of restart dates | |
RSIC |
Character | OFF |
Restart input, ON or OFF |
Using Restart for Long Simulations
Write a restart file at a specific date, then use it as input for a subsequent simulation.
RSO DATE¶
| Variable | Type | Units | Description |
|---|---|---|---|
RSOD |
Real | Julian day | Output dates |
RSO FREQ¶
| Variable | Type | Units | Description |
|---|---|---|---|
RSOF |
Real | days | Output frequency |
CST COMP¶
The [CST COMP] card (Constituent Computations) controls whether water quality constituent computations are performed.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | CCC |
Character | OFF | Constituent computations, ON or OFF |
| 3 | LIMC |
Character | OFF | Output algal growth limiting factor, ON or OFF |
| 4 | CUF |
Real | 2 | Constituent kinetics update frequency. If > 0, number of transport iterations between kinetics updates. If < 0, the time in Julian days between kinetics updates. |
| 5 | CO2PPM |
Real | 415. | Atmospheric CO₂ concentration in ppm. Default depends on year of simulation. |
| 6 | CO2YRLY |
Character | ON | Use built-in regression for global average CO₂ in ppm (NOAA 1920-2019), ON or OFF |
CCC determines whether constituent computations are performed. If set to OFF, all constituent control cards are ignored. Individual constituent computations are controlled on the CST ACTIVE card. During initial calibration runs for freshwater systems, constituent computations are usually turned off until temperature, water surface elevations, and velocities are calibrated.
LIMC specifies whether the factor limiting algal growth is output to the snapshot file and to the time series file. The limiting factor (between 0 and 1) for N, P, and light is written to these files.
CUF specifies how many transport iterations are performed before constituent kinetics are updated. This option reduces computation time. Set CUF to 1 during initial calibration. If CUF is negative, it specifies the update interval in Julian days (e.g., CUF = -0.01 updates kinetics every 0.01 days).
Negative CUF
When CUF < 0, the absolute value represents the kinetics update interval in Julian days rather than a number of iterations. For example, CUF = -0.05 updates kinetics every 0.05 days (approximately 72 minutes). This provides more predictable timing of kinetics updates independent of the variable transport timestep.
CO2PPM is the atmospheric CO₂ concentration used to compute the partial pressure of CO₂ gas. This value is ignored if CO2YRLY is ON. These two variables only affect the computation of total inorganic carbon (TIC) and pH calculations.
CO₂ Yearly Regression
When CO2YRLY is ON, the model uses a built-in regression based on NOAA global average CO₂ measurements from 1920 to 2019 to compute the atmospheric CO₂ concentration as a function of the simulation year. This ensures that long-term or historical simulations use the correct atmospheric CO₂ for the period being modeled. When CO2YRLY is OFF, the constant value specified in CO2PPM is used.
Calibration Strategy
During initial calibration, set CCC to OFF and calibrate temperature and water surface elevations first. Then turn on constituents with CUF = 1 for initial water quality calibration.
Example
ATMDEP¶
The [ATMDEP] card (Atmospheric Deposition) controls whether atmospheric deposition input files are read and whether interpolation between values is applied.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2 | ATMDPC |
Character | OFF | Read atmospheric deposition files, ON or OFF |
| 3 | ATMDPIN |
Character | ON | Interpolate between deposition values, ON or OFF |
These variables are a function of waterbody. The atmospheric deposition file accounts for dry deposition of state variables into the waterbody. The precipitation input files can account for wet deposition. If precipitation is not used as an input, the atmospheric deposition file can serve as the total deposition rate to the waterbody.
Example
CST ACTIVE¶
The [CST ACTIVE] card (Active Constituents) specifies which constituents are included in water quality calculations.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | CAC |
Character | OFF | Constituent active control for each waterbody, ON or OFF |
CAC specifies which constituents are included in water quality calculations. The user has flexibility to include any number of generic, inorganic suspended solids, algal, periphyton/epiphyton, macrophyte, zooplankton, and CBOD groups.
Constituent Ordering
Active constituents listed on this card must agree with the graph.npt file list if using the fixed-format w2_con.npt input file. The preprocessor will catch ordering errors. Using the Excel version of the control file eliminates this requirement.
| Order | Constituent | Units |
|---|---|---|
| 1 | TDS (or salinity if SALT) |
g m⁻³ (or kg m⁻³) |
| 2 | Generic constituents (number set by NGC) |
user defined |
| 3 | Inorganic suspended solids (number set by NSS) |
g m⁻³ |
| 4 | Water age | days |
| 5 | Bacteria | col/100 ml |
| 6 | Dissolved gas pressure (DGP) | atm |
| 7 | N₂ gas | mg l⁻¹ |
| 8 | H₂S | mg l⁻¹ |
| 9 | CH₄ | mg l⁻¹ |
| 10 | SO₄ | mg l⁻¹ |
| 11 | Fe(II) | mg l⁻¹ |
| 12 | FeOOH | mg l⁻¹ |
| 13 | Mn(II) | mg l⁻¹ |
| 14 | MnO₂ | mg l⁻¹ |
| 15 | PO₄-P | mg l⁻¹ as P |
| 16 | NH₄-N | mg l⁻¹ as N |
| 17 | NO₃-N + NO₂-N | mg l⁻¹ as N |
| 18 | Dissolved silica | mg l⁻¹ as Si |
| 19 | Particulate silica | mg l⁻¹ as Si |
| 20 | LDOM | mg l⁻¹ as organic matter |
| 21 | RDOM | mg l⁻¹ as organic matter |
| 22 | LPOM | mg l⁻¹ as organic matter |
| 23 | RPOM | mg l⁻¹ as organic matter |
| 24 | CBOD (number set by NBOD) |
mg l⁻¹ as O₂ |
| 25 | CBOD-P (number set by NBOD) |
mg l⁻¹ as P |
| 26 | CBOD-N (number set by NBOD) |
mg l⁻¹ as N |
| 27 | Algae (number set by NAL) |
mg l⁻¹ as dry weight |
| 28 | Dissolved oxygen | mg l⁻¹ |
| 29 | TIC | mg l⁻¹ as C |
| 30 | Alkalinity | mg l⁻¹ as CaCO₃ |
| 31 | Zooplankton (number set by NZP) |
mg l⁻¹ as dry weight |
| 32-35 | LDOM-P, RDOM-P, LPOM-P, RPOM-P | mg l⁻¹ as P |
| 36-39 | LDOM-N, RDOM-N, LPOM-N, RPOM-N | mg l⁻¹ as N |
| 40-43 | Microcystin, Cylindrospermopsin, Anatoxin-A, Saxitoxin | mg l⁻¹ |
Example
CST ACTIVE CAC
TDS ON
Gen1 ON
ISS1 ON
PO4 ON
NH4 ON
NO3 ON
LDOM ON
RDOM ON
LPOM ON
RPOM OFF
ALG1 ON
DO ON
TIC ON
ALK ON
ZOO1 OFF
CST DERIVE¶
The [CST DERIVE] card (Derived Constituents) controls whether derived constituents are computed and output for each waterbody. Derived constituents are not state variables but are computed from state variables for comparison with observed data.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | CDNAME2 |
Character | Short name of derived variable (8 characters) | |
| 2-10 | CDWBC |
Character | OFF | Output derived variable for each waterbody, ON or OFF |
| # | Variable | Description |
|---|---|---|
| 1 | DOC |
Dissolved organic carbon, mg l⁻¹ as C |
| 2 | POC |
Particulate organic carbon, mg l⁻¹ as C |
| 3 | TOC |
Total organic carbon, mg l⁻¹ as C |
| 4 | DON |
Dissolved organic nitrogen, mg l⁻¹ as N |
| 5 | PON |
Particulate organic nitrogen, mg l⁻¹ as N |
| 6 | TON |
Total organic nitrogen, mg l⁻¹ as N |
| 7 | TKN |
Total Kjeldahl nitrogen, mg l⁻¹ as N |
| 8 | TN |
Total nitrogen, mg l⁻¹ as N |
| 9 | NH3 |
Unionized ammonia, mg l⁻¹ as N |
| 10 | DOP |
Dissolved organic phosphorus, mg l⁻¹ as P |
| 11 | POP |
Particulate organic phosphorus, mg l⁻¹ as P |
| 12 | TOP |
Total organic phosphorus, mg l⁻¹ as P |
| 13 | TP |
Total phosphorus, mg l⁻¹ as P |
| 14 | APR |
Algal production, g m⁻² day⁻¹ |
| 15 | CHLA |
Chlorophyll a, µg l⁻¹ |
| 16 | ATOT |
Total algal biomass, mg l⁻¹ |
| 17 | %DO |
Dissolved oxygen saturation, % |
| 18 | TDG |
Total dissolved gas, % |
| 19 | Turbidity |
Turbidity, NTU |
| 20 | TSS |
Total suspended solids, mg l⁻¹ |
| 21 | TISS |
Total inorganic suspended solids, mg l⁻¹ |
| 22 | CBODU |
Carbonaceous ultimate BOD, mg l⁻¹ |
| 23 | pH |
pH |
| 24 | CO2 |
Carbon dioxide, mg l⁻¹ as C |
| 25 | HCO3 |
Bicarbonate, mg l⁻¹ as C |
| 26 | CO3 |
Carbonate, mg l⁻¹ as C |
| 27 | Secchi |
Secchi disk depth, m |
Derived Variable Equations¶
The following equations define how each derived constituent is computed from active state variables. In these equations, the subscript a denotes summation over all algae groups, ep over all epiphyton groups, z over all zooplankton groups, m over all macrophyte groups, CBOD over all CBOD groups, and ISS over all inorganic suspended solids groups.
Carbon-based variables:
- DOC = (LDOM + RDOM) * organic matter-to-carbon ratio
- POC = (LPOM + RPOM + Σ algae * carbon-to-dry-weight ratio) * organic matter-to-carbon ratio
- TOC = DOC + POC
Nitrogen-based variables:
- DON = LDOM-N + RDOM-N
- PON = LPOM-N + RPOM-N + Σ(algae_a * algae-N-to-dry-weight ratio)
- TON = DON + PON
- TKN = TON + NH₄-N
- TN = TKN + NO₃-N
Phosphorus-based variables:
- DOP = LDOM-P + RDOM-P
- POP = LPOM-P + RPOM-P + Σ(algae_a * algae-P-to-dry-weight ratio)
- TOP = DOP + POP
- TP = TOP + PO₄-P
Other derived variables:
- CBODu = Σ(CBOD groups)
- TDG = 100 * DGP / P_alt, where P_alt is the local atmospheric pressure adjusted for altitude
- Turbidity = Σ(ISS_i * turbidity coefficient for ISS) + Σ(algae_a * turbidity coefficient for algae) + (LPOM + RPOM) * turbidity coefficient for organic matter
- TSS = ΣISS + Σalgae + LPOM + RPOM
- Secchi = A_secchi / λ, where λ is the total light extinction coefficient and A_secchi is a calibration constant (typically 1.2--1.8)
Example
CST DERIVE CDWBC CDWBC CDWBC
DOC OFF OFF OFF
POC OFF OFF OFF
TOC OFF OFF OFF
TN OFF OFF OFF
TP OFF OFF OFF
CHLA OFF OFF OFF
%DO OFF OFF OFF
TSS OFF OFF OFF
pH ON OFF OFF
Secchi OFF OFF OFF
CST FLUX¶
The [CST FLUX] card (Constituent Kinetic Fluxes) specifies which kinetic fluxes are output for each waterbody. The user must also turn ON kinetic flux output on the output control cards.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | CFWBC |
Character | OFF | Kinetic fluxes output for each waterbody, ON or OFF |
The flux output includes variables for PO₄, NH₄, NO₃, DSi, DOM, POM, CBOD, DO, TIC, and the sediment compartment. Turning on all DO-related fluxes helps identify the most important processes during calibration.
Example (abbreviated)
CST ICON¶
The [CST ICON] card (Constituent Initial Concentration) specifies the initial concentration for each constituent as a function of waterbody.
| Field | Variable | Type | Description |
|---|---|---|---|
| 1 | (Ignored by code) | ||
| 2-10 | C2IWB |
Real | Initial concentration, g m⁻³ |
| Initial condition | Value of [C2IWB] |
|---|---|
| Isoconcentration | >= 0.0 |
| Single vertical profile | -1.0 |
| Vertical profile at each segment | -2.0 |
Example
CST ICON C2IWB C2IWB C2IWB
TDS 51.0000
PO4 0.00100
NH4 0.00200
NO3 0.14000
LDOM 0.70000
ALG1 -1.0000
DO -1.0000
TIC 11.9100
ALK 31.0000
CST PRINT¶
The [CST PRINT] card (Constituent Output) specifies which constituents are printed to output files for each waterbody.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | CPRWBC |
Character | OFF | Print constituent to output files, ON or OFF |
Example
CST ATMP¶
The [CST ATMP] card (Constituent Atmospheric Loading Print) specifies which constituents are read in for the atmospheric deposition input file.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | CATMD |
Character | OFF | Constituent read from atmospheric deposition file, ON or OFF |
CIN CON¶
The [CIN CON] card (Inflow Active Constituent Control) specifies which constituents are included in the branch inflow constituent file. For excluded constituents (CINBRC = OFF), the model uses zero concentration.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | CINBRC |
Character | OFF | Include in branch inflow file, ON or OFF |
CTR CON¶
The [CTR CON] card (Tributary Active Constituent Control) specifies which constituents are included in the tributary inflow constituent file for each tributary.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | CTRTRC |
Character | OFF | Include in tributary inflow file, ON or OFF |
CDT CON¶
The [CDT CON] card (Distributed Tributary Active Constituent Control) specifies which constituents are included in the distributed tributary inflow constituent file for each branch.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | CDTBRC |
Character | OFF | Include in distributed tributary file, ON or OFF |
CPR CON¶
The [CPR CON] card (Precipitation Active Constituent Control) specifies which constituents are included in the precipitation concentration file for each branch.
| Field | Variable | Type | Default | Description |
|---|---|---|---|---|
| 1 | (Ignored by code) | |||
| 2-10 | CPRBRC |
Character | OFF | Include in precipitation file, ON or OFF |
EX COEF¶
The [EX COEF] card (Extinction Coefficient) specifies solar radiation extinction coefficients for each waterbody. Use EXH2O = 0.25 when WQ constituents are ON; use 0.45 for temperature-only simulations.
The total light extinction coefficient (λ) controls the attenuation of shortwave solar radiation through the water column. When EXC = ON, the model computes the extinction coefficient dynamically from the following equation:
λ = λ_H₂O + λ_ISS + λ_POM + λ_a + λ_macro + λ_zoo
where:
- λ_H₂O = pure water extinction (
EXH2O, m⁻¹) - λ_ISS = Σ(
EXSS* ISS concentration) for each inorganic suspended solids group (m⁻¹) - λ_POM =
EXOM* (LPOM + RPOM) for particulate organic matter (m⁻¹) - λ_a = Σ(
EXA* algae concentration) for each algae group (m⁻¹) - λ_macro = Σ(
EXM* macrophyte concentration) for each macrophyte group (m⁻¹) - λ_zoo = Σ(
EXZ* zooplankton concentration) for each zooplankton group (m⁻¹)
When EXC = OFF, the model uses only EXH2O as a constant extinction coefficient.
| Variable | Description | Units |
|---|---|---|
EXH2O |
Water light extinction coefficient | m⁻¹ |
EXSS |
Inorganic suspended solids light extinction coefficient | m⁻¹ per g m⁻³ |
EXOM |
Organic matter light extinction coefficient | m⁻¹ per g m⁻³ |
BETA |
Fraction of solar radiation absorbed at the water surface | 0.0--1.0 |
EXC |
Light extinction calculation | ON, OFF |
EXIC |
Inorganic suspended solids extinction | ON, OFF |
ALG EX¶
Algal light extinction coefficient for each group (EXA, default 0.2 m⁻¹ per g m⁻³).
ZOO EX¶
Zooplankton light extinction coefficient for each group (EXZ, default 0.2 m⁻¹ per g m⁻³).
MAC EX¶
Macrophyte light extinction coefficient for each group (EXM, default 0.01 m⁻¹ per g m⁻³).
Generic Constituent (GENERIC)¶
This card specifies the Arrhenius temperature rate multiplier, zero-order decay rate, first-order decay rate, settling rate, photodegradation parameter, fraction of dissolved oxygen reaeration rate for gas transfer, gas saturation concentration, and sediment release rate from the zero-order sediment model for each generic constituent.
The ability to model any number of generic constituents whose kinetics can be described by these parameters has been part of CE-QUAL-W2 since Version 3.1. These constituents can include tracers, residence time or water age, coliform bacteria, N₂ gas (and %TDG), and others. For a tracer, set all kinetic parameters to zero. For residence time, set the zero-order decay rate to -1.0. In this case the units of CG0DK are day/day rather than g m⁻³ day⁻¹. Since this represents a decay rate, setting it to -1.0 specifies a growth rate of 1 day⁻¹.
Unlike other state variables, the generic constituent uses an Arrhenius temperature rate multiplier (or Q₁₀) formulation to modify the decay rate (for both zero-order and first-order rates) as a function of temperature: k_T = k₂₀ θ^(T-20), where θ = CGQ10 and k₂₀ is the decay rate (either CG0DK or CG1DK) at 20 °C.
The photodegradation parameter, CGLDK, varies from 1E-5 to 1E-8 (see Part 2 of the User Manual).
The fraction of the gas transfer coefficient for dissolved oxygen, CGKLF, varies from 0.7 to 0.8 for many typical hydrocarbons with CGCS = 0.0 (see Part 2 of the User Manual).
CGR is the release rate from the sediments under anoxic conditions as a fraction of the zero-order sediment oxygen demand (SOD). Typical rates vary depending on the state variable. The variables CO2R, PO4R, and NH3R are used in a similar fashion for C, P, and N release from anoxic sediments.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | CGQ10 |
Real | Arrhenius temperature rate multiplier, theta | |
| 3 | CG0DK |
Real | Zero-order decay rate, with mass concentration units: g m⁻³ day⁻¹ | |
| 4 | CG1DK |
Real | First-order decay rate, day⁻¹ | |
| 5 | CGS |
Real | Settling rate, m day⁻¹ | |
| 6 | CGLDK |
Real | Photodegradation parameter, m² J⁻¹ | |
| 7 | CGKLF |
Real | Fraction of surface reaeration coefficient, K_L, for dissolved oxygen for gas transfer, [-] | |
| 8 | CGCS |
Real | Gas transfer saturation concentration, mg/l | |
| 9 | CGR |
Real | Sediment release rate from zero-order sediment model, fraction of SOD, [-] |
Tip
Generic constituents can be used for modeling toxics. For tracers, set all kinetic parameters to zero. For residence time, set CG0DK to -1.0.
Example
GENERIC CGQ10 CG0DK CG1DK CGS CGLDK CGKLF CGCS CGR
CG 1 0.00 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ! TRACER1
CG 2 0.00 1.0 0.0 0.0 0.0 0.0 0.0 0.0 ! TRACER2
Suspended Solids (S SOLIDS)¶
This card specifies the suspended solids settling rates for each inorganic suspended solids state variable specified in the Constituent Dimensions card. Currently, phosphorus partitioning as specified on the Inorganic Phosphorus card is the same for all inorganic suspended solids. Resuspension of inorganic suspended solids due to wind shear and the resulting wind waves that cause sediment resuspension are based on the algorithm in Chapra (1997). Resuspension computations are included by setting SEDRC to ON. The critical shear stress is specified by TAUCR. Details of this computation for resuspension are found in Part 2 of the User Manual.
In the sediment diagenesis model for Version 4.22 and earlier, there was a group for Mature Fine Tailings that was added as a generic constituent. The current model now sets this state variable as a suspended solids group. Set SSCS to -1.0, and the mature fine tailing group will be active and parameters for this can be set in the sediment diagenesis input files.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | SSS |
Real | 1.0 | Suspended solids settling rate, m day⁻¹ |
| 3 | SEDRC |
Character | OFF | Turns ON or OFF sediment resuspension |
| 4 | TAUCR |
Real | 1.0 | Critical shear stress for sediment resuspension, dynes/cm² |
| 5 | SSCS |
Real | 0.0 | Flag that turns ON or OFF mature fine tailings for the sediment diagenesis model. When SSCS = -1, this suspended solids group is identified in the sediment diagenesis model as mature fine tailings (a type of fine suspended solids) |
Tip
The mature fine tailings from the sediment diagenesis model can be set as a suspended solids group with a SSCS value of -1.
Example
Bacteria¶
This card specifies the Arrhenius temperature rate multiplier, first-order decay rate, settling rate, and photodegradation parameter for bacteria.
Unlike other state variables, bacteria uses an Arrhenius temperature rate multiplier (or Q₁₀) formulation to modify the first-order decay rate as a function of temperature: k_T = k₂₀ θ^(T-20), where θ = BACTQ10 and k₂₀ is the decay rate (BACT1DK) at 20 °C.
This decay as a function of temperature is what is most likely to be encountered in the literature, particularly for coliform bacteria. Care must be taken when using this formulation at low (< 6 °C) temperatures. For coliform bacteria, the Q₁₀ coefficient (BACTQ10) is usually 1.04.
The photodegradation parameter, BACTLDK, varies from 1E-5 to 1E-8 (see Part 2 of the User Manual).
Bacterial decay rates can be set differently in different water bodies.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | BACTQ10 |
Real | Arrhenius temperature rate multiplier, theta | |
| 3 | BACT1DK |
Real | First-order decay rate, day⁻¹ | |
| 4 | BACTS |
Real | Settling rate, m day⁻¹ | |
| 5 | BACTLDK |
Real | Photodegradation parameter, m² J⁻¹ |
Note
This card supports only one bacterial group. If you have more than one group, use the generic constituent for additional groups.
Example
H2S¶
These parameters are used for simulating H₂S in the sediments and in the water column. The oxygen stoichiometry for H₂S decay in the water column is fixed in the code as 1.88 g O₂/g S.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | H2SR |
Real | Sediment release rate of H₂S, a fraction of SOD for the zero-order SOD model only, [-] | |
| 3 | H2SQ10 |
Real | Arrhenius temperature rate multiplier, theta | |
| 4 | H2S1DK |
Real | First-order decay rate, day⁻¹ | |
| 5 | SO4R |
Real | Sediment release rate of SO₄, a fraction of SOD for the zero-order SOD model only, [-]. Ignored if sediment diagenesis is ON. |
Example
CH4¶
These parameters are used for simulating CH₄ in the sediments and in the water column. CH₄ in the water column is in units of mg/l as CH₄. The oxygen stoichiometry for CH₄ decay in the water column is fixed in the code as 4 mg O₂/mg CH₄ (or 5.33 mg O₂/mg C) based on:
4O₂ + 2CH₄ → 2CO₂ + 4H₂O
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | CH4R |
Real | Sediment release rate of CH₄, a fraction of SOD for the zero-order SOD model only, [-]. Ignored if sediment diagenesis is ON. | |
| 3 | CH4Q10 |
Real | Arrhenius temperature rate multiplier, theta | |
| 4 | CH41DK |
Real | First-order decay rate, day⁻¹ |
Example
Fe(II) and FeOOH¶
These parameters are used for simulating Fe(II) and FeOOH in the sediments and in the water column. Iron is in units of mg/l or g/m³ as Fe. These parameters are used in the sediment model if Fe is activated in the sediments. The oxygen stoichiometry for Fe(II) decay is fixed in the code as 0.143 g O/g Fe.
DiToro (2001) used values of 10 day⁻¹ and 4 day⁻¹ for the reduction rate and oxidation rates, respectively, in lake examples. Using the oxidation rate of 4 day⁻¹, the W2 model rate in units of day⁻¹/(g/m³) then for a pH = 7 and DO concentration of 5 mg/l would be 0.8 day⁻¹(g m⁻³)⁻¹ (see Part 2 of the User Manual).
Diez et al. (2007) reported on iron oxidation rates of between 0.0004 and 0.007 s⁻¹. This corresponds to rates of about 3 to 60 in units of day⁻¹(g m⁻³)⁻¹ for a dissolved oxygen concentration of 10 mg/l and neutral pH.
Settling rates of iron oxides have been recorded between 0.2 and 34 m/d (Jamieson, 1995).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | FEIIR |
Real | 0.0 | Sediment release rate of reduced Fe, a fraction of SOD for the zero-order SOD model only, [-]. Ignored if sediment diagenesis is ON. |
| 3 | KFE_OXID |
Real | 1.0 | Rate of Fe oxidation under oxic conditions, m³ d⁻¹ g⁻¹ |
| 4 | KFE_RED |
Real | 4.0 | Rate of iron reduction under anaerobic conditions, day⁻¹ |
| 5 | KFEOOH_HalfSat |
Real | 0.2 | Half-saturation constant for O₂ for FeOOH reduction to Fe(II), g/m³ |
| 6 | FeSetVel |
Real | 2.0 | Settling velocity of Fe oxide, m/day |
Example
Mn(II) and MnO₂¶
These parameters are used for simulating Mn(II) and MnO₂ in the sediments and in the water column. These parameters are used in the sediment model if Mn is activated in the sediments. The oxygen stoichiometry for Mn(II) decay is fixed in the code as 0.291 g O/g Mn.
DiToro (2001) used reduction and oxidation rates similar to Fe for Mn of 10 day⁻¹ and 4 day⁻¹, respectively. Using the oxidation rate of 4 day⁻¹, the W2 model rate in units of day⁻¹/(g/m³) then for a pH = 7 and DO concentration of 5 mg/l would be 0.8 day⁻¹(g m⁻³)⁻¹ (see Part 2 of the User Manual).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | MNIIR |
Real | 0.0 | Sediment release rate of reduced Mn, a fraction of SOD for the zero-order SOD model only, [-]. Ignored if sediment diagenesis is ON. |
| 3 | KMN_OXID |
Real | 1.0 | Oxidation rate of manganese, day⁻¹(g m⁻³)⁻¹ |
| 4 | KMN_RED |
Real | 4.0 | Rate of Mn reduction under anaerobic conditions, day⁻¹ |
| 5 | KMNOH_HalfSat |
Real | 0.2 | Half-saturation constant of oxygen for manganese dioxide reduction, g/m³ |
| 6 | MNSetVel |
Real | 2 | Settling velocity of Mn oxide, m/day |
Example
Algal Rates (ALGAL RATE)¶
Kinetic rates for algal growth, mortality, excretion, respiration, and settling are defined for each algae group. Values that affect the maximum algal growth rate including light and nutrient limited growth are also specified.
[AG] is the maximum gross production rate that is not corrected for respiration, mortality, excretion, or sinking. Most literature values report net production rates that take into account respiration, so care must be taken when using reported literature values. Also, [AG] is temperature dependent. The default value of 2 day⁻¹ has given excellent results on previous studies.
[AE] is the maximum algal excretion (or photorespiration) rate that goes directly to the labile DOM compartment. The default value is 0.04 day⁻¹. [AR] is the maximum dark algal respiration rate. The default value is 0.04 day⁻¹.
Maximum algal mortality rate [AM] should be less than 10% of the maximum algal growth rate [AG]. Values ranging from 0.03 to 0.3 have been used in previous modeling studies, with the default value of 0.1 day⁻¹.
Literature values for algal settling velocities [AS] are very dependent upon the type of algae present. Previous studies have used 0.2 m day⁻¹ for diatoms, 0.1 m day⁻¹ for greens, and 0.0 to 0.05 m day⁻¹ for cyanobacteria. For cyanobacteria or other floating phytoplankton, specify a negative settling velocity.
[AHSP] is the algal half-saturation constant for phosphorus. [AHSN] is the algal half-saturation constant for nitrogen. To simulate algal nitrogen fixation, set [AHSN] equal to 0.0. [AHSSI] is the half-saturation constant for silica for diatoms only.
[ASAT] is the saturating light intensity at the maximum photosynthetic rate. EPA (1985) gives as a guideline that [ASAT] for total phytoplankton range between 200 and 350 Langleys/day (about 100 to 170 W/m²).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | AG |
Real | 2.0 | Maximum algal growth rate, day⁻¹ |
| 3 | AR |
Real | 0.04 | Maximum algal respiration rate, day⁻¹ |
| 4 | AE |
Real | 0.04 | Maximum algal excretion rate, day⁻¹ |
| 5 | AM |
Real | 0.1 | Maximum algal mortality rate, day⁻¹ |
| 6 | AS |
Real | 0.1 | Algal settling rate, m day⁻¹ |
| 7 | AHSP |
Real | 0.003 | Algal half-saturation for phosphorus limited growth, g m⁻³ |
| 8 | AHSN |
Real | 0.014 | Algal half-saturation for nitrogen limited growth, g m⁻³ |
| 9 | AHSSI |
Real | 0.0 | Algal half-saturation for silica limited growth, g m⁻³ |
| 10 | ASAT |
Real | 100.0 | Light saturation intensity at maximum photosynthetic rate, W m⁻² |
Example
ALGAL RATE AG AR AE AM AS AHSP AHSN AHSSI ASAT
Alg 1 1.5 0.04 0.04 0.15 0.20 0.003 0.014 0.003 75.0
Alg 2 2.5 0.04 0.04 0.10 0.10 0.003 0.014 0.000 75.0
Alg 3 0.5 0.04 0.04 0.05 0.02 0.003 0.010 0.000 75.0
Algal Temperature Rate Coefficients (ALG TEMP)¶
This card specifies the lower, maximum lower, upper, and maximum upper temperatures used in defining the curve that determines effects of temperature on algal rates. Also specified is the fraction of maximum algal rates that occurs at the specified temperature. When including multiple algal groups, the temperature rate coefficients are one of the most important parameters determining algal succession. Diatoms would have much lower temperatures for AT1 to AT4 than cyanobacteria.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | AT1 |
Real | 5.0 | Lower temperature for algal growth, °C |
| 3 | AT2 |
Real | 25.0 | Lower temperature for maximum algal growth, °C |
| 4 | AT3 |
Real | 35.0 | Upper temperature for maximum algal growth, °C |
| 5 | AT4 |
Real | 40.0 | Upper temperature for algal growth, °C |
| 6 | AK1 |
Real | 0.1 | Fraction of algal growth rate at AT1 |
| 7 | AK2 |
Real | 0.99 | Fraction of maximum algal growth rate at AT2 |
| 8 | AK3 |
Real | 0.99 | Fraction of maximum algal growth rate at AT3 |
| 9 | AK4 |
Real | 0.1 | Fraction of algal growth rate at AT4 |
Example
ALGAL TEMP AT1 AT2 AT3 AT4 AK1 AK2 AK3 AK4
Alg 1 5.0 18.0 20.0 24.0 0.1 0.99 0.99 0.01
Alg 2 10.0 30.0 35.0 40.0 0.1 0.99 0.99 0.01
Alg 3 10.0 35.0 40.0 50.0 0.1 0.99 0.99 0.01
Algal Stoichiometry (ALG STOICH)¶
This card specifies the stoichiometric equivalences used for determining the amount of nutrients in algal biomass. These ratios are not constant over time and vary by algal species. [APOM] is the fraction of algal biomass lost by mortality going into the detritus compartment with the remainder going to labile DOM. [ANEQN] controls the algal ammonium preference equation (1 or 2). [AVERTM] turns ON or OFF vertical migration of algae.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | AP |
Real | 0.005 | Stoichiometric equivalent between algal biomass and phosphorus, fraction |
| 3 | AN |
Real | 0.08 | Stoichiometric equivalent between algal biomass and nitrogen, fraction |
| 4 | AC |
Real | 0.45 | Stoichiometric equivalent between algal biomass and carbon, fraction |
| 5 | ASI |
Real | 0.18 | Stoichiometric equivalent between algal biomass and silica, fraction |
| 6 | ACHLA |
Real | 0.05 | Ratio between algal biomass and chlorophyll a, mg algae/µg chl a |
| 7 | APOM |
Real | 0.8 | Fraction of algal biomass converted to particulate organic matter when algae die |
| 8 | ANEQN |
Integer | 2 | Equation number for algal ammonium preference (1 or 2) |
| 9 | ANPR |
Real | 0.001 | Algal half-saturation constant for ammonium preference |
| 10 | AVERTM |
Character | OFF | ON or OFF. Turns ON/OFF vertical migration of algae |
Example
ALG STOICH ALGP ALGN ALGC ALGSI ACHLA APOM ANEQN ANPR AVERTM
Alg 1 0.005 0.08 0.45 0.18 0.05 0.8 2 0.001 OFF
Alg 2 0.005 0.08 0.45 0.00 0.04 0.8 2 0.001 OFF
Alg 3 0.005 0.08 0.45 0.00 0.1000 0.8 2 0.001 OFF
Epiphyte/Periphyton Control (EPIPHYTE)¶
This card allows the user to turn ON/OFF epiphyton/periphyton computations and their effects on water quality for a given waterbody.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2--10 | EPIWBC |
Character | OFF | Waterbody epiphyte/periphyton computations, ON or OFF |
Example
Epiphyte/Periphyton Print (EPI PRINT)¶
This card allows the user to turn ON/OFF epiphyton/periphyton biomass output in terms of areal density to the various output files for each waterbody.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2--10 | EPRWBC |
Character | OFF | Epiphyte areal density output, ON or OFF |
Example
Epiphyte/Periphyton Initial Density (EPI INI)¶
This card specifies the initial epiphyton/periphyton areal density for each waterbody. If the initial density is greater than or equal to zero, then this is the initial areal biomass. If the initial areal density is -1.0, the model will look for a VPR (vertical profile) file. If the initial areal density is -2.0, the model will look for an LPR (longitudinal profile) file.
| Initial condition | [EPIWBCI] |
|---|---|
| Isoconcentration | >= 0.0 |
| Single vertical profile | -1.0 |
| Vertical profile at each segment | -2.0 |
| Field | Name | Value | Description |
|---|---|---|---|
| 1 | Ignored by code | ||
| 2--10 | EPIWBCI |
Real | Initial areal density for each epiphyton/periphyton group, g m⁻² |
Example
Epiphyte/Periphyton Rate (EPI RATE)¶
This card specifies rates for epiphyton/periphyton growth, mortality, excretion, respiration, and burial. See the Algal Rate card for more detailed information, as the kinetic formulations are similar. Epiphyton/periphyton mortality becomes part of the LDOM and LPOM organic pool based on the variable EPOM (see EPI STOICH). The burial rate causes epiphyton/periphyton to be lost from the system and added to the first-order sediment compartment.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | EG |
Real | 2.0 | Maximum epiphyton/periphyton growth rate, day⁻¹ |
| 3 | ER |
Real | 0.04 | Maximum epiphyton/periphyton respiration rate, day⁻¹ |
| 4 | EE |
Real | 0.04 | Maximum epiphyton/periphyton excretion rate, day⁻¹ |
| 5 | EM |
Real | 0.1 | Maximum epiphyton/periphyton mortality rate, day⁻¹ |
| 6 | EB |
Real | 0.001 | Epiphyton/periphyton burial rate, day⁻¹ |
| 7 | EHSP |
Real | 0.003 | Epiphyton half-saturation for phosphorus limited growth, g m⁻³ |
| 8 | EHSN |
Real | 0.014 | Epiphyton half-saturation for nitrogen limited growth, g m⁻³ |
| 9 | EHSSI |
Real | - | Epiphyton half-saturation for silica limited growth, g m⁻³ |
Example
Epiphyte/Periphyton Half-Saturation (EPI HALF)¶
This card specifies the light saturation intensity at maximum photosynthetic rate [ESAT], the half-saturation coefficient for epiphyton biomass limitation [EHS], and the nitrogen preference during epiphyton/periphyton growth [ENPR].
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | ESAT |
Real | 75.0 | Light saturation intensity at maximum photosynthetic rate, W m⁻² |
| 3 | EHS |
Real | 35.0 | Biomass limitation factor, g m⁻² |
| 4 | ENEQN |
Integer | 2 | Ammonia preference factor equation for epiphyton/periphyton (1 or 2) |
| 5 | ENPR |
Real | 0.001 | Nitrogen half-saturation preference constant, mg/l (only used if ENEQN = 2) |
Example
Epiphyte/Periphyton Temperature Rate Coefficients (EPI TEMP)¶
This card specifies the temperature parameters that determine effects of temperature on epiphyton/periphyton rates, analogous to the ALG TEMP card.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | ET1 |
Real | 5.0 | Lower temperature for epiphyton growth, °C |
| 3 | ET2 |
Real | 25.0 | Lower temperature for maximum epiphyton/periphyton growth, °C |
| 4 | ET3 |
Real | 35.0 | Upper temperature for maximum epiphyton/periphyton growth, °C |
| 5 | ET4 |
Real | 40.0 | Upper temperature for epiphyton/periphyton growth, °C |
| 6 | EK1 |
Real | 0.1 | Fraction of epiphyton/periphyton growth rate at ET1 |
| 7 | EK2 |
Real | 0.99 | Fraction of maximum epiphyton/periphyton growth rate at ET2 |
| 8 | EK3 |
Real | 0.99 | Fraction of maximum epiphyton/periphyton growth rate at ET3 |
| 9 | EK4 |
Real | 0.1 | Fraction of epiphyton/periphyton growth rate at ET4 |
Example
EPI TEMP ET1 ET2 ET3 ET4 EK1 EK2 EK3 EK4
Epi 1 5.0 18.0 20.0 24.0 0.1 0.99 0.99 0.01
Epi 2 10.0 30.0 35.0 40.0 0.1 0.99 0.99 0.01
Epiphyte/Periphyton Stoichiometry (EPI STOICH)¶
This card specifies the stoichiometric equivalences for epiphyton/periphyton biomass. [EPOM] is the fraction of biomass lost by mortality going into the detritus compartment (labile POM) with the remainder going to labile DOM.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | EP |
Real | 0.005 | Stoichiometric equivalent between epiphyton/periphyton biomass and phosphorus |
| 3 | EN |
Real | 0.08 | Stoichiometric equivalent between epiphyton/periphyton biomass and nitrogen |
| 4 | EC |
Real | 0.45 | Stoichiometric equivalent between epiphyton/periphyton biomass and carbon |
| 5 | ESI |
Real | 0.18 | Stoichiometric equivalent between epiphyton/periphyton biomass and silica |
| 6 | ECHLA |
Real | 0.05 | Ratio between epiphyton/periphyton biomass and chlorophyll a [Not used at present], mg biomass/µg chlorophyll a |
| 7 | EPOM |
Real | 0.8 | Fraction of epiphyton/periphyton biomass converted to particulate organic matter when epiphyton/periphyton die |
Example
EPI STOICH EP EN EC ESI ECHLA EPOM
Epi 1 0.005 0.08 0.45 0.18 0.05 0.8
Epi 2 0.005 0.08 0.45 0.00 0.05 0.8
Zooplankton Rate (ZOOP RATE)¶
This card specifies rates for zooplankton growth, mortality, and respiration. Additionally, the zooplankton assimilation efficiency, detritus preference factor, threshold food concentration, half-saturation constant for food ingestion, and settling velocity are specified.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | ZG |
Real | 1.00 | Maximum zooplankton growth or ingestion rate, day⁻¹ |
| 3 | ZR |
Real | 0.10 | Maximum zooplankton respiration rate, day⁻¹ |
| 4 | ZM |
Real | 0.10 | Maximum zooplankton mortality (non-predatory) rate, day⁻¹ |
| 5 | ZEFF |
Real | 0.50 | Zooplankton assimilation efficiency (dimensionless), from 0 to 1 |
| 6 | PREFP |
Real | 0.50 | Preference factor of zooplankton for detritus or LPOM (dimensionless), from 0 to 1 |
| 7 | ZOOMIN |
Real | 0.01 | Threshold food concentration at which zooplankton feeding begins, g m⁻³ |
| 8 | ZS2P |
Real | 0.3 | Zooplankton half-saturation constant for food ingestion, g m⁻³ |
| 9 | ZS |
Real | 0.0 | Zooplankton settling velocity, m/day |
Example
Zooplankton Algal Preference (ZOOP ALGP)¶
This card specifies the feeding preference of zooplankton for each algal group. The sum of the preference factors can be greater than 1 since the model normalizes them internally.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2--10 | PREFA |
Real | 0.5 | Preference factor of zooplankton for algae (dimensionless), from 0 to 1 |
Example
Zooplankton Zooplankton Preference (ZOOP ZOOP)¶
This card specifies the feeding preference of zooplankton for each zooplankton group. The sum of the preference factors can be greater than 1 since the model normalizes them internally.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2--10 | PREFZ |
Real | 0.0 | Preference factor of zooplankton for zooplankton (dimensionless), from 0 to 1 |
Example
Zooplankton Temperature Rate Coefficients (ZOOP TEMP)¶
This card specifies the temperature parameters that determine effects of temperature on zooplankton rates, analogous to the ALG TEMP card.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | ZT1 |
Real | 5.0 | Lower temperature for zooplankton growth, °C |
| 3 | ZT2 |
Real | 25.0 | Lower temperature for maximum zooplankton growth, °C |
| 4 | ZT3 |
Real | 35.0 | Upper temperature for maximum zooplankton growth, °C |
| 5 | ZT4 |
Real | 40.0 | Upper temperature for zooplankton growth, °C |
| 6 | ZK1 |
Real | 0.1 | Fraction of maximum zooplankton growth rate at ZT1 |
| 7 | ZK2 |
Real | 0.99 | Fraction of maximum zooplankton growth rate at ZT2 |
| 8 | ZK3 |
Real | 0.99 | Fraction of maximum zooplankton growth rate at ZT3 |
| 9 | ZK4 |
Real | 0.1 | Fraction of maximum zooplankton growth rate at ZT4 |
Example
Zooplankton Stoichiometry (ZOOP STOICH)¶
This card specifies the stoichiometric equivalences for zooplankton biomass.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | ZP |
Real | 0.005 | Stoichiometric equivalent between zooplankton biomass and phosphorus |
| 3 | ZN |
Real | 0.08 | Stoichiometric equivalent between zooplankton biomass and nitrogen |
| 4 | ZC |
Real | 0.45 | Stoichiometric equivalent between zooplankton biomass and carbon |
Example
Macrophyte Control (MACROPHYT)¶
This card allows the user to turn ON/OFF macrophyte computations for a given waterbody.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2--10 | MACWBC |
Character | OFF | Waterbody macrophyte computations, ON or OFF |
Example
Macrophyte Print (MAC PRINT)¶
This card allows the user to turn ON/OFF macrophyte biomass output to the SNP (snapshot) file and to the CPL file for each waterbody.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2--10 | MPRWBC |
Character | OFF | Macrophyte concentration output, ON or OFF |
Example
Macrophyte Initial Concentration (MAC INI)¶
This card specifies the initial macrophyte concentration for each waterbody. Without an initial concentration or seed, the macrophyte groups will not grow. The model does not have self-seeding.
| Initial condition | [MACWBCI] |
|---|---|
| Isoconcentration | >= 0.0 |
| Single vertical profile | -1.0 |
| Vertical profile at each segment | -2.0 |
| Field | Name | Value | Description |
|---|---|---|---|
| 1 | Ignored by code | ||
| 2--10 | MACWBCI |
Real | Initial macrophyte concentration for each macrophyte group, g m⁻³ |
Example
MAC INI MACWBCI MACWBCI MACWBCI MACWBCI MACWBCI MACWBCI MACWBCI MACWBCI MACWBCI
Mac1 0.10000 -2.0 0.5
Macrophyte Rate (MAC RATE)¶
This card specifies rates for macrophyte growth, mortality, and respiration. Light limitation is modeled with a hyperbolic equation: f(I) = I / (I + I_h).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | MG |
Real | 0.3 | Maximum macrophyte growth rate, day⁻¹ |
| 3 | MR |
Real | 0.05 | Maximum macrophyte respiration rate, day⁻¹ |
| 4 | MM |
Real | 0.05 | Maximum macrophyte mortality rate, day⁻¹ |
| 5 | MSAT |
Real | 30.0 | Light saturation intensity at maximum photosynthetic rate, W m⁻² |
| 6 | MHSP |
Real | 0.0 | Macrophyte half-saturation for phosphorus limited growth, g m⁻³ |
| 7 | MHSN |
Real | 0.0 | Macrophyte half-saturation for nitrogen limited growth, g m⁻³ |
| 8 | MHSC |
Real | 0.0 | Macrophyte half-saturation for carbon limited growth, g m⁻³ |
| 9 | MPOM |
Real | 0.9 | Fraction of macrophyte biomass converted to POM when macrophytes die |
| 10 | LRPMAC |
Real | 0.2 | Fraction of POM from dead macrophytes becoming labile POM |
Example
Macrophyte Sediments (MAC SED)¶
This card specifies the fraction of phosphorus and nitrogen uptake obtained from the sediments. If nutrients are obtained from the sediments, they are assumed to be an infinite pool that cannot limit growth.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | PSED |
Real | 1.0 | Fraction of phosphorus uptake by macrophytes obtained from sediments |
| 3 | NSED |
Real | 1.0 | Fraction of nitrogen uptake by macrophytes obtained from sediments |
Example
Macrophyte Distribution (MAC DIST)¶
This card specifies the concentration at which macrophyte growth will be moved to the next layer above and the maximum macrophyte concentration allowed. Plants grow upwards from the sediment through model layers.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | MBMP |
Real | 40.0 | Threshold macrophyte concentration for which growth is moved to the above layer, g m⁻³ |
| 3 | MMAX |
Real | 500.0 | Maximum macrophyte concentration, g m⁻³ |
Example
Macrophyte Drag (MAC DRAG)¶
This card specifies the coefficients which simulate the frictional effects and areal blockage (through the porosity) of macrophytes.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | CDDRAG |
Real | 2.0 | Macrophyte drag coefficient |
| 3 | DWV |
Real | 7.0e+04 | Macrophyte dry weight to wet volume ratio, g m⁻³ |
| 4 | DWSA |
Real | 8.0 | Macrophyte dry weight to surface area ratio, g m⁻² |
| 5 | ANORM |
Real | 0.3 | Fraction of macrophyte surface area normal to direction of flow |
Example
Macrophyte Temperature Rate Coefficients (MAC TEMP)¶
This card specifies the temperature parameters that determine effects of temperature on macrophyte rates, analogous to the ALG TEMP card.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | MT1 |
Real | 5.0 | Lower temperature for macrophyte growth, °C |
| 3 | MT2 |
Real | 25.0 | Lower temperature for maximum macrophyte growth, °C |
| 4 | MT3 |
Real | 35.0 | Upper temperature for maximum macrophyte growth, °C |
| 5 | MT4 |
Real | 40.0 | Upper temperature for macrophyte growth, °C |
| 6 | MK1 |
Real | 0.1 | Fraction of maximum macrophyte growth rate at MT1 |
| 7 | MK2 |
Real | 0.99 | Fraction of maximum macrophyte growth rate at MT2 |
| 8 | MK3 |
Real | 0.99 | Fraction of maximum macrophyte growth rate at MT3 |
| 9 | MK4 |
Real | 0.1 | Fraction of maximum macrophyte growth rate at MT4 |
Example
Macrophyte Stoichiometry (MAC STOICH)¶
This card specifies the stoichiometric equivalences for macrophyte biomass.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | MP |
Real | 0.005 | Stoichiometric equivalent between macrophyte biomass and phosphorus |
| 3 | MN |
Real | 0.08 | Stoichiometric equivalent between macrophyte biomass and nitrogen |
| 4 | MC |
Real | 0.45 | Stoichiometric equivalent between macrophyte biomass and carbon |
Example
Dissolved Organic Matter (DOM)¶
This card specifies decay rates for dissolved organic matter. The labile partition has a higher decay rate. The refractory decay rate, [RDOMDK], is generally two orders of magnitude smaller than the labile decay rate [LDOMDK].
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | LDOMDK |
Real | 0.1 | Labile DOM decay rate, day⁻¹ |
| 3 | RDOMDK |
Real | 0.001 | Refractory DOM decay rate, day⁻¹ |
| 4 | LRDDK |
Real | 0.01 | Labile to refractory DOM decay rate, day⁻¹ |
Example
Particulate Organic Matter (POM)¶
Detritus in the model consists of autochthonous and allochthonous particulate organic matter (POM). Detrital settling velocities [POMS] vary over a large range (0.001 to > 20 m day⁻¹).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | LPOMDK |
Real | 0.08 | Labile POM decay rate, day⁻¹ |
| 3 | RPOMDK |
Real | 0.001 | Refractory POM decay rate, day⁻¹ |
| 4 | LRPDK |
Real | 0.01 | Labile to refractory POM decay rate, day⁻¹ |
| 5 | POMS |
Real | 0.1 | POM settling rate, m day⁻¹ |
Example
Organic Matter Stoichiometry (OM STOICH)¶
This card specifies the stoichiometric relationship between organic matter and inorganic nutrients in mass/mass ratios. If the variables LDOM-P, RDOM-P, LPOM-P, and RPOM-P are not active, the model uses ORGP for the stoichiometric ratio between P and organic matter. ORGC always represents the C stoichiometry. ORGSI always represents the Si stoichiometry.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | ORGP |
Real | 0.005 | Stoichiometric equivalent between organic matter and phosphorus [g P/g OM] |
| 3 | ORGN |
Real | 0.08 | Stoichiometric equivalent between organic matter and nitrogen [g N/g OM] |
| 4 | ORGC |
Real | 0.45 | Stoichiometric equivalent between organic matter and carbon [g C/g OM] |
| 5 | ORGSI |
Real | 0.18 | Stoichiometric equivalent between organic matter and silica [g Si/g OM] |
Example
Organic Matter Temperature Rate Multipliers (OM RATE)¶
This card specifies the lower and maximum temperatures used in defining the curve that determines effects of temperature on organic matter decay. The decay rates (LPOMDK, RPOMDK, LDOMDK, RDOMDK) are maximum decay rates when OMK2 is 0.99 rather than at a standard temperature of 20 °C.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | OMT1 |
Real | 4.0 | Lower temperature for organic matter decay, °C |
| 3 | OMT2 |
Real | 25.0 | Upper temperature for organic matter decay, °C |
| 4 | OMK1 |
Real | 0.1 | Fraction of organic matter decay rate at OMT1 |
| 5 | OMK2 |
Real | 0.99 | Fraction of organic matter decay rate at OMT2 |
Example
Turbidity and Secchi Disk (TURBSEC)¶
Turbidity = exp(COEFFA ln(TOTSS) + COEFFB), where TOTSS is total suspended solids. Secchi disk depth z_Secchi = λ / SECC.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | COEFFA |
Real | Empirical factor for correlation with TOTSS | |
| 3 | COEFFB |
Real | Empirical factor for correlation with TOTSS | |
| 4 | SECC |
Real | Empirical factor for relating light extinction coefficient, m⁻¹, to Secchi disk depth, m |
Example
Carbonaceous Biochemical Oxygen Demand (CBOD)¶
The model allows any number of CBOD groups. [KBOD] is the first-order reaction rate for CBOD decay. Temperature correction: KBOD = KBOD₂₀ * TBOD^(T-20). [RBOD] converts 5-day CBOD to ultimate CBOD; set to 1.0 if input values are already in BOD-ultimate form. [CBODS] allows specification of particulate CBOD groups.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | KBOD |
Real | 0.1 | 5-day decay rate at 20 °C, day⁻¹ |
| 3 | TBOD |
Real | 1.02 | Arrhenius temperature coefficient, theta |
| 4 | RBOD |
Real | 1.85 | Ratio of CBOD5 to ultimate CBOD |
| 5 | CBODS |
Real | 0.0 | CBOD settling rate, m day⁻¹ |
Example
CBOD Stoichiometry (CBOD STOICH)¶
The stoichiometric coefficients define the stoichiometry of BOD in terms of N, P, and C. If CBOD-P and CBOD-N are OFF, CBODN and CBODP represent fixed stoichiometry. If ON, they are not used. The C stoichiometry (CBODC) is always fixed.
Tip
Fixed or dynamic stoichiometry can be used for the CBOD groups. Dynamic stoichiometry is dependent on turning ON CBOD-N and CBOD-P as active constituents.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | CBODP |
Real | 0.004 | P stoichiometry for CBOD decay (mg P/mg O₂) |
| 3 | CBODN |
Real | 0.06 | N stoichiometry for CBOD decay (mg N/mg O₂) |
| 4 | CBODC |
Real | 0.32 | C stoichiometry for CBOD decay (mg C/mg O₂) |
Example
Inorganic Phosphorus (PHOSPHOR)¶
[PO4R] is the sediment release rate of phosphorus under anaerobic conditions as a fraction of the sediment oxygen demand. This is only used for the zero-order sediment oxygen demand model. P release rates are very site-specific.
[PARTP] is the phosphorus partitioning coefficient for sorption onto suspended solids. Set [PARTP] to zero unless clear evidence for sorption exists. Concentrations of PO₄ in the model are in units of PO₄ as P.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | PO4R |
Real | 0.001 | Sediment release rate of phosphorus, fraction of SOD |
| 3 | PARTP |
Real | 0.0 | Phosphorus partitioning coefficient for suspended solids |
Example
Ammonium (AMMONIUM)¶
[NH4REL] is the sediment release rate of ammonium under anaerobic conditions as a fraction of the sediment oxygen demand. This is only used for the zero-order sediment oxygen demand model. [NH4DK] is the nitrification rate. [KGH2O] is a constant for the ammonia gas transfer coefficient (recommended value 168).
Note that concentrations of ammonia in the model are in terms of NH₄ as N.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | NH4REL |
Real | 0.001 | Sediment release rate of ammonium, fraction of SOD |
| 3 | NH4DK |
Real | 0.12 | Ammonium decay rate, day⁻¹ |
| 4 | KGH2O |
Real | 168.0 | Constant in calculation of K_g H₂O based on wind for volatilization of NH₃ |
Example
Ammonium Temperature Rate Multipliers (NH4 RATE)¶
This card specifies the temperature parameters that determine the effect of temperature on ammonia nitrification.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | NH4T1 |
Real | 5.0 | Lower temperature for ammonia decay, °C |
| 3 | NH4T2 |
Real | 25.0 | Lower temperature for maximum ammonia decay, °C |
| 4 | NH4K1 |
Real | 0.1 | Fraction of nitrification rate at NH4T1 |
| 5 | NH4K2 |
Real | 0.99 | Fraction of nitrification rate at NH4T2 |
Example
Nitrate (NITRATE)¶
This card specifies the denitrification rates in the water column (only under anoxic conditions) and from the water column to the sediments. [NO3DK] values have ranged from 0.05 to 0.15 day⁻¹. [NO3S] represents how fast nitrate is diffused into the sediments. Concentrations of nitrate in the model are in terms of NO₃ as N.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | NO3DK |
Real | 0.03 | Water column denitrification rate, day⁻¹ |
| 3 | NO3S |
Real | 0.001 | Nitrate loss velocity to the sediments, m day⁻¹ |
| 4 | FNO3SED |
Real | 0.0 | Fraction of NO₃-N diffused into the sediments that becomes organic N (the rest is denitrified) |
Example
Nitrate Temperature Rate Multipliers (NO3 RATE)¶
This card specifies the temperature parameters that determine the effect of temperature on denitrification.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | NO3T1 |
Real | 5.0 | Lower temperature for nitrate decay, °C |
| 3 | NO3T2 |
Real | 25.0 | Lower temperature for maximum nitrate decay, °C |
| 4 | NO3K1 |
Real | 0.1 | Fraction of denitrification rate at NO3T1 |
| 5 | NO3K2 |
Real | 0.99 | Fraction of denitrification rate at NO3T2 |
Example
Silica (SILICA)¶
[DSIR] is the sediment release rate of dissolved silica from the zero-order sediment compartment. [PSIS] is the particulate biogenic settling rate. [PSIDK] is the particulate biogenic decay rate. Particulate biogenic silica represents the skeletal remains of diatoms. [PARTSI] is the dissolved silica partitioning coefficient.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | DSIR |
Real | 0.1 | Dissolved silica sediment release rate, fraction of SOD |
| 3 | PSIS |
Real | 1.0 | Particulate biogenic settling rate, m sec⁻¹ |
| 4 | PSIDK |
Real | 0.3 | Particulate biogenic silica decay rate, day⁻¹ |
| 5 | PARTSI |
Real | 0.0 | Dissolved silica partitioning coefficient |
Example
Sediment Carbon Dioxide Release (SED CO2)¶
This card specifies the carbon dioxide release rate from the sediments as a fraction of the zero-order sediment oxygen demand. Ignored if the zero-order sediment demand is zero. The stoichiometric ratio gives a CO2REL of approximately 1.25.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | CO2REL |
Real | 1.2 | Sediment carbon dioxide release rate, fraction of sediment oxygen demand |
Example
Oxygen Stoichiometry 1 (STOICH 1)¶
Stoichiometric equivalents of oxygen for nitrification (O2NH4 = 4.57 g O₂/g N) and organic matter decay (O2OM = 1.4 g O₂/g OM). The default values should not be changed unless the user has supporting information.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | O2NH4 |
Real | 4.57 | Oxygen stoichiometry for nitrification (mg O₂/mg N) |
| 3 | O2OM |
Real | 1.4 | Oxygen stoichiometry for organic matter decay (mg O₂/mg OM) |
Example
Oxygen Stoichiometry 2 (STOICH 2)¶
Stoichiometric equivalents of oxygen for algal respiration (O2AR) and algal primary production (O2AG).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | O2AR |
Real | 1.1 | Oxygen stoichiometry for algal respiration (mg O₂/mg algae OM) |
| 3 | O2AG |
Real | 1.4 | Oxygen stoichiometry for algal primary production (mg O₂/mg algae OM) |
Example
Oxygen Stoichiometry 3 (STOICH 3)¶
Stoichiometric equivalents of oxygen for epiphyton/periphyton respiration (O2ER) and primary production (O2EG).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | O2ER |
Real | 1.1 | Oxygen stoichiometry for epiphyton/periphyton respiration (mg O₂/mg periphyton OM) |
| 3 | O2EG |
Real | 1.4 | Oxygen stoichiometry for epiphyton/periphyton primary production (mg O₂/mg periphyton OM) |
Example
Oxygen Stoichiometry 4 (STOICH 4)¶
Stoichiometric equivalent of oxygen for zooplankton respiration (O2ZR).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | O2ZR |
Real | 1.1 | Oxygen stoichiometry for zooplankton respiration (mg O₂/mg zooplankton OM) |
Example
Oxygen Stoichiometry 5 (STOICH 5)¶
Stoichiometric equivalents of oxygen for macrophyte respiration (O2MR) and primary production (O2MG).
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | O2MR |
Real | 1.1 | Oxygen stoichiometry for macrophyte respiration (mg O₂/mg macrophyte OM) |
| 3 | O2MG |
Real | 1.4 | Oxygen stoichiometry for macrophyte primary production (mg O₂/mg macrophyte OM) |
Example
Oxygen Limit (O2 LIMIT)¶
This card specifies the half-saturation constant or dissolved oxygen concentration at which oxic processes are at 50% of their normal oxic rates. Rate Reduction = Φ_DO / (K_DO + Φ_DO). Thomann and Mueller (1987) have used K_DO = 0.7 mg/l.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | KDO |
Real | 0.1 | Dissolved oxygen half-saturation constant, g m⁻³ |
Example
Sediment Compartment (SEDIMENT)¶
[SEDC] turns ON/OFF the first-order sediment compartment. When sediment diagenesis is turned ON, this is automatically set to zero internally.
Note
This card controls zero- and first-order sediment oxygen demand. Another input file controls the sediment diagenesis model. If sediment diagenesis is used, set FSOD = 0.0 or set zero-order SOD to 0 g/m²/day.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | SEDC |
Character | OFF | Turns ON/OFF the first-order sediment compartment |
| 3 | PRNSC |
Character | OFF | Turns ON/OFF printing first-order sediment organic matter concentrations to the snapshot file |
| 4 | SEDCI |
Real | 0.0 | Initial first-order sediment concentration, g m⁻² |
| 5 | SEDK |
Real | 0.1 | First-order sediment decay rate, day⁻¹ |
| 6 | SEDS |
Real | 0.1 | First-order sediment settling or focusing rate, m day⁻¹ |
| 7 | FSOD |
Real | 1.0 | Fraction of the zero-order SOD rate used |
| 8 | FSED |
Real | 1.0 | Fraction of first-order sediment concentration initial condition |
| 9 | SEDBR |
Real | 0.01 | First-order sediment burial rate, day⁻¹ |
| 10 | DYNSEDK |
Character | OFF | Turns ON/OFF dynamic calculation of the first-order sediment model decay rate |
Example
SEDIMENT SEDC PRNSC SEDCI SEDK SEDS FSOD FSED SEDBR DYNSEDK
Wb 1 ON ON 0.0 0.1 0.0 1.0 1.0 0.001 OFF
Wb 2 ON ON 0.0 0.1 0.0 1.0 1.0 0.001 OFF
SOD Temperature Rate Multipliers (SOD RATE)¶
This card specifies the temperature rate multipliers that adjust the zero-order SOD or first-order decay rate. The model is very sensitive to these values and they are an important calibration parameter for accurately reproducing the timing of water column oxygen decreases during stratified periods.
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | SODT1 |
Real | 4.0 | Lower temperature for zero-order SOD or first-order sediment decay, °C |
| 3 | SODT2 |
Real | 25.0 | Upper temperature for zero-order SOD or first-order sediment decay, °C |
| 4 | SODK1 |
Real | 0.1 | Fraction of SOD or sediment decay rate at lower temperature |
| 5 | SODK2 |
Real | 0.99 | Fraction of SOD or sediment decay rate at upper temperature |
Example
Zero-Order Sediment Oxygen Demand (S DEMAND)¶
This card specifies the zero-order sediment oxygen demand for each segment (including boundary segments). Sediment oxygen demand typically ranges from 0.1 to 1.0 g O₂ m⁻² day⁻¹. The values are specified as maximum values at the optimal temperature. When sediment diagenesis is turned ON, this is automatically set to zero.
| Field | Name | Value | Description |
|---|---|---|---|
| 1 | Ignored by code | ||
| 2--10 | SOD |
Real | Zero-order sediment oxygen demand for each segment, g O₂ m⁻² day⁻¹ |
Example
S DEMAND SOD SOD SOD SOD SOD SOD SOD SOD SOD
0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3
0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3
Reaeration (REAERAT)¶
This card allows the user to specify the appropriate reaeration formulation. [REARC] specifies the waterbody type. [EQN#] specifies the reaeration equation. COEF1 through COEF4 allow custom reaeration definitions. DGPO2 is the fraction of oxygen transfer representing total gas transfer (typical value 1.027). MINKL sets the minimum reaeration coefficient. All reaeration coefficients are corrected by temperature using the Arrhenius formulation with theta = 1.024.
River reaeration equations (at 20 °C):
| # | Equation | Reference |
|---|---|---|
| 0 | Auto-selected (Eq 1, 2, or 4) | Covar (1976) |
| 1 | O'Connor-Dobbins | O'Connor and Dobbins (1958) |
| 2 | Churchill | Churchill et al. (1962) |
| 3 | Tsivoglou-Wallace | Tsivoglou and Wallace (1972) |
| 4 | Owens-Gibbs | Owens et al. (1964) |
| 5 | Thackston-Krenkel | Thackston and Krenkel (1969) |
| 6 | Langbein-Durum | Langbein and Durum (1967) |
| 7 | Melching-Flores (pool and riffle) | Melching and Flores (1999) |
| 8 | Melching-Flores (channel-control) | Melching and Flores (1999) |
| 9 | User-defined: K_a = C₁ U^C₂ H^C₃ S^C₄ | User defined |
| 10 | Thackston-Dawson | Thackston and Dawson (2001) |
Lake reaeration equations (at 20 °C):
| # | Equation | Reference |
|---|---|---|
| 1 | Broecker | Broecker et al. (1978) |
| 2 | Gelda | Gelda et al. (1996) |
| 3 | Banks-Herrera | Banks and Herrera (1977) |
| 4 | Wanninkhof | Wanninkhof et al. (1991) |
| 5 | Kanwisher | Kanwisher (1963) |
| 6 | Cole-Buchak | Cole and Buchak (1995) |
| 7 | Banks | Banks (1975) |
| 8 | Smith (WQRSS) | Smith (1978) |
| 9 | Liss | Liss (1973) |
| 10 | Downing-Truesdale | Downing and Truesdale (1955) |
| 11 | Kanwisher | Kanwisher (1963) |
| 12 | Yu et al. | Yu et al. (1977) |
| 13 | Weiler | Weiler (1974) |
| 14 | User-defined: K_a = (C₁ + C₂ W^C₃) / H | User defined |
Estuary reaeration equations (at 20 °C):
| # | Equation | Reference |
|---|---|---|
| 0 | Auto-selected from river table | Covar (1976) |
| 1 | Thomann-Fitzpatrick (wind + tidal) | Thomann and Fitzpatrick (1982) |
| 2 | User-defined | User defined |
| Field | Name | Value | Default | Description |
|---|---|---|---|---|
| 1 | Ignored by code | |||
| 2 | REARC |
Character | LAKE | Type of waterbody: RIVER, LAKE, or ESTUARY |
| 3 | EQN# |
Integer | 6 (if LAKE) | Equation number for reaeration |
| 4 | COEF1 |
Real | User-defined parameter for custom reaeration | |
| 5 | COEF2 |
Real | User-defined parameter for custom reaeration | |
| 6 | COEF3 |
Real | User-defined parameter for custom reaeration | |
| 7 | COEF4 |
Real | User-defined parameter for custom reaeration | |
| 8 | DGPO2 |
Real | 1.027 | Fraction of oxygen transfer that is total gas transfer at the air-water interface (for TDG computation) |
| 9 | MINKL |
Real | 0.0 | Minimum gas transfer coefficient: m/d for LAKES, day⁻¹ for RIVER/ESTUARY |
Example
REAERAT REARC EQN# COEF1 COEF2 COEF3 COEF4 DGPO2 MINKL
Wb 1 RIVER 7 1.027
Wb 2 LAKE 5 1.027
Wb 3 ESTUARY 1 1.027
---The filenames section of the control file specifies the names and paths of all input and output files. Key filename cards include:
Global Filename Cards¶
These filename cards specify files that apply globally to the entire model domain. One filename is specified per card.
| Card | Variable | Description | Scope |
|---|---|---|---|
RSI FILE |
RSIFN |
Restart input data filename | Global |
QWD FILE |
QWDFN |
Withdrawal outflow filename | Global |
QGT FILE |
QGTFN |
Gated outflow filename | Global |
WSC FILE |
WSCFN |
Wind sheltering coefficient filename | Global |
SHD FILE |
SHDFN |
Dynamic shading filename | Global |
TSR FILE |
TSRFN |
Time series plot filename | Global |
WDO FILE |
WDOFN |
Withdrawal output filename | Global |
Each global filename card has the following format:
| Field | Name | Value | Description |
|---|---|---|---|
| 1 | Ignored by code | ||
| 2--10 | Filename variable | Character | Filename for the associated file |
In Windows, use .\Subdirectory\Filename to specify a model subdirectory in the working directory. The file prefix for TSR FILE and WDO FILE determines the prefix for all associated output files (e.g., tsr is the prefix for all time series files, wdo is the prefix for all withdrawal files). File suffixes such as q, t, c, or d are appended automatically.
RSI FILE...............................RSIFN..................................
rsi.npt - not used
QWD FILE...............................QWDFN..................................
qwd.npt - not used
QGT FILE...............................QGTFN..................................
qgt.csv
WSC FILE...............................WSCFN..................................
wsc.csv
SHD FILE...............................SHDFN..................................
shade.csv
TSR FILE...............................TSRFN..................................
tsr.csv
WDO FILE...............................WDOFN..................................
wdo.csv
Waterbody-Dependent Filename Cards¶
These filename cards require one entry per waterbody.
| Card | Variable | Description |
|---|---|---|
BTH FILE |
BTHFN |
Bathymetry filename |
MET FILE |
METFN |
Meteorological input data filename |
EXT FILE |
EXTFN |
Light extinction input data filename |
ATD FILE |
ATMDEPFN |
Atmospheric deposition filename |
VPR FILE |
VPRFN |
Vertical profile filename |
LPR FILE |
LPRFN |
Longitudinal profile filename |
SNP FILE |
SNPFN |
Snapshot output filename |
PRF FILE |
PRFFN |
Profile output filename |
VPL FILE |
VPLFN |
Vector plot output filename |
CPL FILE |
CPLFN |
Contour plot output filename |
SPR FILE |
SPRFN |
Spreadsheet output filename |
FLX FILE |
FLXFN |
Kinetic flux output filename |
The EXT FILE card specifies the filename for time-varying light extinction data in Julian day versus light extinction coefficient in m⁻¹. The ATD FILE card specifies the filename for atmospheric deposition into each waterbody in rates of kg/km²/year.
BTH FILE...............................BTHFN..................................
Wb 1 bth.npt
MET FILE...............................METFN..................................
Wb 1 met.npt
EXT FILE...............................EXTFN..................................
Wb 1 ext_1.npt - not used
ATD FILE...............................ATDFN..................................
Wb 1 atm_dep_wb1.csv
VPR FILE...............................VPRFN..................................
Wb 1 vpr.npt
LPR FILE...............................LPRFN..................................
Wb 1 lpr.npt
Branch-Dependent Filename Cards¶
These filename cards require one entry per branch.
| Card | Variable | Description |
|---|---|---|
QIN FILE |
QINFN |
Branch inflow filename |
TIN FILE |
TINFN |
Branch inflow temperature filename |
CIN FILE |
CINFN |
Branch inflow concentration filename |
QOT FILE |
QOTFN |
Branch outflow filename |
QDT FILE |
QDTFN |
Distributed tributary inflow filename |
TDT FILE |
TDTFN |
Distributed tributary temperature filename |
CDT FILE |
CDTFN |
Distributed tributary concentration filename |
PRE FILE |
PREFN |
Precipitation filename |
TPR FILE |
TPRFN |
Precipitation temperature filename |
CPR FILE |
CPRFN |
Precipitation concentration filename |
EUH FILE |
EUHFN |
External upstream head filename |
TUH FILE |
TUHFN |
External upstream head temperature filename |
CUH FILE |
CUHFN |
External upstream head concentration filename |
EDH FILE |
EDHFN |
External downstream head filename |
TDH FILE |
TDHFN |
External downstream head temperature filename |
CDH FILE |
CDHFN |
External downstream head concentration filename |
Tributary-Dependent Filename Cards¶
These filename cards require one entry per tributary.
| Card | Variable | Description |
|---|---|---|
QTR FILE |
QTRFN |
Tributary inflow filename |
TTR FILE |
TTRFN |
Tributary inflow temperature filename |
CTR FILE |
CTRFN |
Tributary inflow concentration filename |
Sample Control Input File¶
The complete control file contains all card images described in the preceding sections. A sample control input file for the DeGray Reservoir example is provided with the model distribution. This sample file demonstrates the following:
- Title cards and grid dimensions for a 1-waterbody, 1-branch system with 32 segments and 36 layers
- Time control settings for a simulation from Julian day 64.5 through 358.7 (year 1980)
- Hydrodynamic, turbulence, and hydraulic coefficients
- Complete constituent settings including TDS, nutrients, organic matter, algae, dissolved oxygen, and inorganic carbon
- All filename cards for input and output files
- Output control cards for snapshots, profiles, contour plots, spreadsheets, time series, and withdrawal output
- Structure, withdrawal, tributary, and distributed tributary configurations
Complete Sample File
The complete sample control file spans approximately 20 pages. It is not reproduced here. Refer to the DeGray Reservoir example in the model distribution for a complete working control file that can serve as a template for new applications.
Bathymetry File¶
The bathymetry file contains information specifying the segment lengths, water surface elevations, segment orientations, bottom friction, layer heights, and average widths for each grid cell. A separate bathymetry file is required for each waterbody.
The following guidelines apply to file preparation:
- Number the branches starting with the mainstem as branch 1. Number remaining branches consecutively, starting with the most upstream branch and proceeding downstream.
- Each branch must be surrounded by a segment of boundary cells (cells with zero widths) on both the upstream and downstream ends. This requirement results in two segments of zero widths between each branch.
- Boundary cells must also be included at the top and bottom of each segment.
- Cell widths start at layer 1 and continue to the maximum number of layers [KMX]. The number of layers specified in this file must match the value of [KMX] in the control file.
- Only cells that are potentially active have non-zero widths. The first layer, boundary segment cells, and cells below the reservoir bottom elevation at a given segment have zero widths.
- A separate bathymetry file is required for each waterbody.
- The segment angles are relative to North. Segments oriented from East to West would have an angle of π/2.
Two formats are supported: fixed format and CSV format.
Fixed Format¶
For the fixed-format bathymetry file, the following additional guidelines must be followed:
- The first three lines are ignored and can be used to comment the input file.
- Segment lengths, water surface elevations, segment orientations, layer heights, and cell widths at each segment are preceded by two lines that are ignored. These can be used to comment each individual segment's bathymetry.
- Input format for each cell width is F8.0 with 10 cell widths per line.
- If there are more cell widths than can fit on one line, they are continued immediately on the next line.
Example fixed-format bathymetry file for one waterbody:
Waterbody 1 bathymetry
Segment lengths (DLX)
1200.00 1200.00 1200.00 1200.00 1200.00 1200.00 1200.00 1200.00 1200.00 1200.00
1200.00 1200.00 1200.00 1200.00 1200.00
Water surface elevation [WSEL]
49.80 49.20 48.00 46.80 45.60 44.40 43.20 44.40 43.20 42.96
42.72 42.48 42.24 42.00 41.80
Segment orientation [PHIO]
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00
Bottom friction [FRICTC]
0.04 0.04 0.04 0.04 0.04 0.04 0.04 0.04 0.04 0.04
0.04 0.04 0.04 0.04 0.04
Layer heights [H]
2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00
2.00 2.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00
1.00 1.00 1.00
Segment 1 - branch 1
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0
Segment 2 - branch 1
0.0 300.0 300.0 300.0 300.0 300.0 300.0 300.0 300.0 300.0
300.0 300.0 300.0 300.0 300.0 300.0 300.0 300.0 300.0 300.0
250.0 200.0 50.0 0.0
Note
Each waterbody has its own bathymetry file. The example above shows only one waterbody. Boundary segments (segments 1 and the last segment in each branch) have all zero widths.
CSV Format¶
Since Version 3.7, the bathymetry can be input as a comma-delimited file (CSV format). This allows the file to be assembled in a spreadsheet such as Excel. To use the CSV format, the model user must insert the $ character as the first character of the first line.
The CSV bathymetry file has the following line-by-line structure:
Line 1: Include the $ character as the first character. The rest of this line is ignored and can be used for comments.
$1981 Bluestone Reservoir Bathymetry |
|||||||
|---|---|---|---|---|---|---|---|
Line 2: Title SEG:I, followed by a header for each model segment. This line is ignored by the model.
| SEG: I | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
Line 3: Title DLX, followed by DLX in m for each segment.
| DLX | 1046.4 | 1046.4 | 1046.4 | 965.9 | 965.9 | 764.7 | 764.7 |
|---|---|---|---|---|---|---|---|
Line 4: Title ELWS, followed by ELWS in m for each segment (initial water surface elevation).
| ELWS | 430.1 | 430.1 | 430.1 | 430.1 | 430.1 | 430.1 | 430.1 |
|---|---|---|---|---|---|---|---|
Line 5: Title PHIO, followed by PHIO for each segment (orientation angle in radians).
| PHIO | 3.142 | 3.142 | 3.142 | 3.142 | 3.142 | 3.142 | 3.142 |
|---|---|---|---|---|---|---|---|
Line 6: Title FRICT, followed by FRICT for each segment (Mannings or Chezy friction factor). Typical values for Mannings friction factors are 0.035 and for Chezy are 70.
| FRICT | 70 | 70 | 70 | 70 | 70 | 70 | 70 |
|---|---|---|---|---|---|---|---|
Line 7: Titles that are ignored by the model. The rightmost column is a layer index K.
| LAYERH | BR1 | K | |||||
|---|---|---|---|---|---|---|---|
Line 8 to end of file: The cell width matrix. Column 1 is the layer height in m, column 2 is the segment width in m for segment 1, column 3 is the segment width for segment 2, and so on. The segment widths for the first segment and last segment are 0 (boundary segments), and for the top layer (K=1) and bottom layer widths are also 0. The far right column is a layer index (K value).
| 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
|---|---|---|---|---|---|---|---|---|
| 0.5 | 0 | 335 | 335 | 335 | 335 | 364 | 0 | 2 |
| 0.5 | 0 | 231 | 231 | 231 | 231 | 254 | 0 | 3 |
| 0.5 | 0 | 228 | 228 | 228 | 228 | 243 | 0 | 4 |
| 0.5 | 0 | 224 | 224 | 224 | 224 | 231 | 0 | 5 |
| 0.5 | 0 | 220 | 220 | 220 | 220 | 219 | 0 | 6 |
| 0.5 | 0 | 215 | 215 | 215 | 215 | 206 | 0 | 7 |
Fish Habitat Volumes¶
This section describes the input file for computing fish habitat volumes, volume below 1 mg/L dissolved oxygen, and volume-weighted averages of eutrophication state variables. The model reads the input file w2_habitat.npt when HABTATC is set to ON in the control file.
This input file allows the model user to:
- Compute the volume of fish habitat based on temperature and dissolved oxygen targets for various fish species
- Compute the volume of dissolved oxygen less than 1 mg/L
- Compute segment volume-weighted averages of dissolved oxygen, NO₃-N, NH₄-N, PO₄-P, Total P, and chlorophyll a
- Compute surface volume-weighted averages of dissolved oxygen, NO₃-N, NH₄-N, PO₄-P, Total P, and chlorophyll a
The file is set up as a text file in free format with commas delimiting fields and titles between lines explaining the following lines. The output timing is at the frequency of the time series frequency output (TSR files).
File Format¶
FISH HABITAT AND WQ AVEREAGES INPUT FILE
#FISH CRITERIA, OUTPUTFILENAME,DOVOL
9,'habitat.csv',ON
NAMES OF FISH, TEMP-low, TEMP-high, DO limits [DO limits are ignored if no water quality constituents]
RainbowTrout,0.0,18.0,5.0
StripedBass,10.0,24.0,5.0
Walleye,12.0,24.0,5.0
WhiteBass,0.0,28.0,3.0
SmallmouthBass,0.0,29.0,4.0
SpottedBass,0.0,24.4,6.0
GizzardShad,10.0,26.7,6.0
LargemouthBass,10.0,30.0,5.0
ChannelCatfish,18.0,31.0,5.0
VOLUME WEIGHTED AVERAGES AT THE FOLLOWING # OF SEGMENTS: NSEG
3,'volwgtavg.opt'
SEGMENT NUMBERS FOR VOL WEIGHTED AVERAGES
10,15,24
SURFACE WEIGHTED AVERAGES OVER THE FOLLOWING # OF SURFACE LAYERS,OutputFileName for surface averages
4,'surfvolwtavg.opt'
OutputFileName for SOD+SED at all time and all segments
'sodsed.opt'
Fish Criteria Section¶
The first line after the title is ignored by the model. The second line specifies:
| Field | Description |
|---|---|
| Number of fish species | Integer specifying how many species to expect (up to 9) |
| Output filename | Output filename in quotations (e.g., 'habitat.csv') |
DOVOL |
ON or OFF: compute volume less than 1 mg/L dissolved oxygen |
These criteria can be selected for fish species in the reservoir or river system following the work of Welch et al. (2011) or Hondzo and Stefan (1996).
Table 55. Fish temperature and dissolved oxygen criteria from Welch et al. (2011).
| Species | Optimal DO (mg/L) | Optimal T (°C) | Low T (°C) | High T (°C) | Lowest Lethal T (°C) |
|---|---|---|---|---|---|
| Rainbow trout | 7.0--9.0 | 12--18 | 15 | 18 | 25 |
| Striped bass | 6.0 | 20--21 | 20.5 | 24 | 28 |
| Walleye | > 5.0 | 20--24 | 22 | > 24 | 29 |
| White bass | > 5.0 | 19--28 | 23.5 | > 28 | 27 |
| Smallmouth bass | 6.0 | 21--27 | 24 | 29 | 32.3 |
| Spotted bass | 6.0 | 23.5--24.4 | 24 | > 24.4 | 34 |
| Gizzard shad | 6.0 | 22--29 | 25.5 | 26.7 | 36.5 |
| Largemouth bass | 8.0 | 24--30 | 27 | 30 | 35.0 |
| Channel catfish | 7.0 | 28--29 | 27.5 | 21 | 33.5 |
Table 56. General fish temperature criteria from Hondzo and Stefan (1996).
| Fish Type | Lower T (°C) Good Growth | Upper T (°C) Good Growth | Upper T (°C) Lethal |
|---|---|---|---|
| Coldwater (brook trout, Chinook salmon, coho salmon, mountain whitefish, rainbow trout) | 9.0 | 18.5 | 23.4 |
| Coolwater (black crappie, northern pike, walleye, white crappie, white sucker, yellow perch) | 16.3 | 28.2 | 30.4 |
| Warmwater (bluegill, carp, freshwater drum, gizzard shad, green sunfish, largemouth bass, rock bass, smallmouth bass, white bass) | 19.7 | 32.3 | > 32.3 |
For each fish species, specify the name, a low and high temperature limit in °C, and a dissolved oxygen target in mg/L. If the model user is not modeling dissolved oxygen, the DO limits are ignored. The habitat volume uses the following criteria for acceptable habitat:
- Model temperature > TEMP-low and <= TEMP-high
- Dissolved oxygen >= DO limit
Volume-Weighted Averages Section¶
The number of segments and output filename are specified on one line. The segment numbers for volume-weighted averages are listed on the next line, separated by commas. The model outputs volume-weighted eutrophication variables (dissolved oxygen, nutrients, and chlorophyll a) at these segments. The code caps dissolved oxygen greater than saturation to 100% saturation for computing averages.
Surface-Weighted Averages Section¶
The number of active surface layers to average and the output filename are specified. In many cases a value of 1 gives a surface average; a value of 4 averages the top 4 active layers for an epilimnetic average. The model also outputs the layer-average light extinction coefficient for comparison with field data.
Sediment Accumulation Output¶
The sodsed.opt output file prints the first-order sediment organic matter accumulation at each segment as a function of time. It sums all the sediment accumulated at all vertical layers. The output is in grams of organic matter. This allows the model user to evaluate how changes in organic loading to the sediments affect the rate of accumulation and spatial distribution.
Meteorological File¶
The meteorological file provides time-varying meteorological data for the simulation. The file can be input as a comma-delimited free-format text file or as a fixed-format text file. A separate file is required for each waterbody.
File Format¶
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | TAIR |
Air temperature | °C |
| 3 | TDEW |
Dewpoint temperature | °C |
| 4 | WIND |
Wind speed | m s⁻¹ |
| 5 | PHI |
Wind direction | radians from true North |
| 6 | CLOUD |
Cloud cover (0 = no clouds, 10 = fully cloudy) | tenths (0--10) |
| 7 | SRO |
Incident short-wave solar radiation (required only if SROC = ON) |
W m⁻² |
Guidelines for file preparation:
- Fields are read in the order shown above. In fixed format, a Fortran format of F8.0 is used, limiting each field to 8 characters. For free format, the field width can vary.
- The first three lines are ignored in the model. The first two lines can be used to comment the file. The third line usually has the variable names of the columns.
- Input frequency can vary during the simulation. Specify only the Julian date corresponding to the observation.
- Short-wave solar radiation is required if [SROC] is set to
ONin the HEAT EXCH card of the control file. This represents the incident short-wave solar radiation component (not including reflection), not global radiation. A reflection of 6% is applied to this time series to reduce the incident radiation in the model code. - Cloud cover is provided in tenths between 0 (no clouds) and 10 (fully cloudy).
- Wind direction is the direction as used typically by meteorological services. The wind direction is always based on wind direction from true North with the wind vector arrow at the segment center. A wind from the north to the south has a radian value of 0; a wind from the west to the east has a radian value of 3π/2.
Cloud Cover Required
Cloud cover is required to compute long-wave atmospheric radiation and is always required even if short-wave solar radiation values are used. The internal short-wave solar radiation formulation within CE-QUAL-W2 is based on a formulation computed at sea level. See Annear and Wells (2007) on the existing correlation for short-wave solar radiation and alternatives at elevations above sea level.
Example, Fixed Format:
Sample meteorological input file
JDAY TAIR TDEW WIND PHI CLOUD SRO
2.20833 -5.6111 -13.889 3.62102 3.14159 4.38 0.
2.25 -5.6111 -14.389 3.62102 3.14159 4.38 0.
2.29167 -4.3889 -13.278 3.08458 2.96706 7.5 0.
2.33333 2.22222 -13.278 2.05638 3.31613 7.5 22.3519
Example, Free Format (CSV):
$CE-QUAL-W2 met file
JDAY 1.0 = 1/1/2000 12 am
JDAY,TAIR,TDEW,WIND,PHI,CLOUD,SRO
75.00,-3.33,-11.67,0.89,4.65,9.00,0.00
75.50,1.67,-6.11,0.89,4.65,8.00,0.00
Solar Radiation
If SROC is set to ON in the control file, include solar radiation values in the meteorological file (column 7). If SROC is OFF, the model computes solar radiation internally using latitude, longitude, date, and cloud cover.
Meteorology File Varies by Segment Number Range¶
In the main control file (w2_con.csv), the meteorological file is specified by waterbody. The model also allows the use of different meteorological files for ranges of segments within waterbodies. This can be used to allow several meteorological files within one waterbody or to specify one meteorological file for multiple waterbodies. An input CSV file named W2_MetRegions.csv specifies the parameters for the meteorological file varying by region.
When this CSV file is in the model directory and the first variable is set to ON, all references to the meteorological file as a function of waterbody in the w2_con.csv file are ignored. A summary of the regions and met files used are summarized in the pre.opt preprocessor output file. The starting and ending segments can use the active segment or include the inactive segment.
File Format¶
Allow meteorological files to be read in by region rather than water body,,,,,
ON,,,,,
Number of regions,,,,,
3,,,,,
Region number,Segment start,Segment end,Meterological input file name,,
1,1,5,met.csv,,
2,6,20,met2.csv,,
3,21,32,met3.csv,,
Branch Inflow File¶
This file contains the inflow for each branch with an upstream inflow boundary condition. The following guidelines apply:
- A separate file is required for each branch with an upstream inflow boundary condition. This allows the user to update inflows for one branch independent of another branch.
- For the fixed-format version, input format for each field is F8.0, which allows the user to specify the decimal point location.
- The first two lines are ignored and can be used to comment the file.
- The third line contains the variable names, which are right justified according to the input field. This line is also ignored although the preprocessor checks to ensure the fields are aligned correctly.
- The first field is the Julian day. The frequency between updates may vary during the simulation.
- The second field is the inflow rate in m³ s⁻¹.
- Flow rates must be positive (zero or greater) for the branch inflow file.
No Negative Flows in Branch Inflow
The branch inflow file cannot handle negative flow rates. To model withdrawals at a branch upstream boundary, use a tributary with negative flow values instead.
Example, Fixed Format:
Example, Free Format:
Branch Inflow Temperature File¶
This file contains the inflow temperatures for each branch with an upstream inflow boundary condition.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | TIN |
Inflow temperature | °C |
Example, Fixed Format:
Branch Inflow Concentration File¶
This file contains the inflow concentrations for each active constituent for each branch.
- If constituents are modeled, a separate file is required for each branch.
- The number of fields equals the number of active constituents plus 1 (for Julian day).
- Only constituents specified as active on the
CIN CONcard may be included.
Example, Fixed Format:
CE-QUAL-W2 sample branch inflow concentration file
JDAY CLFORM SSOLID LDOM RDOM ALGAE PO4 NH4 NO3 O2 Fe
1. 17. 62. 7.333 17.111 0.0 0.9 0.02 0.10 0.42 13.9 0.4
8. 13. 0.0 8.000 18.667 0.0 0.4 0.01 0.03 0.37 14.0 0.2
Example, Free Format:
$Concentration file for segment 86
JDAY 1.0= 1/1/2000 12am
JDAY,TDS,Conduct,ISS1,PO4,NH4,NOx,LDOM,RDOM,LPOM,RPOM,1CBOD,2CBOD,...
1,0,0,0,3.00E-02,1.00E-02,0.3,0.1,0.1,0.1,0,0,...
Branch Outflow File¶
This file contains the outflow for a branch with a downstream flow boundary condition.
- A separate file is required for each branch with a downstream flow boundary.
- The first field is the Julian day.
- The remaining fields are the outflow rates (m³ s⁻¹), one per outlet structure.
- Maximum of 10 fields per line; additional values continue on the next line with blanks under the Julian day.
Example, Fixed Format:
CE-QUAL-W2 sample outflow file
JDAY QOUT QOUT QOUT QOUT QOUT QOUT QOUT QOUT QOUT
1.00 8.13 8.13 8.13
2.00 6.77 6.77 6.77
3.00 18.60 18.60 18.60
Example, Free Format:
$Penstock flows and spill,,,,% of lower leakage,,20,%,,,,,,,,,,
,P1-O,P1-A,P1-U,P1-M,P1-L,P2-O,P2-A,P2-U,P2-M,P2-L,...
Julian day,Q(m3/s),Q(m3/s),Q(m3/s),...
730.5,0.962772798,0,0,0,3.403483798,0,0,0,13.637393152,...
Withdrawal File¶
This file contains the withdrawal outflow for each withdrawal specified on the WD SEG and WD ELEV cards.
- The order of withdrawal outflows must correspond to the order specified on the control file cards.
- Maximum of 10 fields per line; additional values continue on the next line.
- The first field is the Julian day.
- Remaining fields are the withdrawal outflow rates (m³ s⁻¹).
Example, Fixed Format:
CE-QUAL-W2 sample withdrawal outflow file
JDAY QWD QWD QWD QWD QWD QWD QWD QWD
182.0000 51. 51. 51. 51. 51. 51. 51. 51.
51.
Tributary Inflow File¶
This file contains the inflows for each tributary specified on the Tributary Segment card. The following guidelines apply:
- A separate file is required for each tributary. This allows the user to update inflows for one tributary independent of another tributary.
- For the fixed-format version, input format for each field is F8.0, which allows the user to specify the decimal point location.
- The first two lines are ignored and can be used to comment the file.
- The third line contains the variable names, which are right justified according to the input field. This line is also ignored although the preprocessor checks to ensure the fields are aligned correctly.
- The first field is the Julian day. The frequency between updates may vary during the simulation.
- The second field is the inflow rate (m³ s⁻¹).
- Flow rates can be negative or positive: positive values indicate inflow, and negative values indicate withdrawal.
Tributary Withdrawals
Negative tributary flow values allow modeling of withdrawals at any segment in the model domain. This provides a flexible mechanism for representing diversions, irrigation withdrawals, or other point sinks without requiring a separate withdrawal structure.
Example, Fixed Format:
Example, Free Format:
Tributary Inflow Temperature File¶
This file contains the inflow temperatures for each tributary.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | TTR |
Tributary inflow temperature | °C |
Example, Fixed Format:
Tributary Inflow Concentration File¶
This file contains the inflow concentrations for each active constituent for each tributary.
- If constituents are modeled, a separate file is required for each tributary.
- Only constituents specified as active on the
CTR CONcard may be included. - The first field is the Julian day; remaining fields are constituent concentrations.
Example, Fixed Format:
CE-QUAL-W2 sample tributary constituent inflow concentration file
JDAY CLFORM SSOLID LDOM RDOM ALGAE DETRIT PO4 NH4 NO3 O2 Fe
1. 17. 62. 7.333 17.111 0.0 0.9 0.02 0.10 0.42 13.9 0.4
Branch Distributed Tributary Inflow File¶
This file contains the distributed tributary inflows for each branch.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | QDTR |
Distributed tributary inflow rate | m³ s⁻¹ |
Example, Fixed Format:
Branch Distributed Tributary Temperature File¶
This file contains the inflow temperatures for a distributed tributary specified on the Distributed Tributary card. A separate file is required for each distributed tributary. This allows the user to update inflow temperatures for one distributed tributary independent of another.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | TDTR |
Distributed tributary temperature | °C |
Guidelines for file preparation:
- A separate file is required for each distributed tributary.
- Input format for each field is F8.0 that allows the user to specify the decimal point location.
- The first two lines are ignored and can be used to comment the file.
- The third line contains the variable names, right justified according to the input field.
- The first field is the Julian date that can be entered at any frequency.
- The second field is the inflow temperature (°C).
The model user can also specify a free-format file. When the first character in the first line contains the $ symbol, the model will treat the file as being in free format.
Example, Fixed Format:
CE-QUAL-W2 sample tributary inflow temperature file
JDAY TDTR
1.0 10.3
5.0 9.5
12.0 10.1
23.0 8.6
35.0 11.2
74.5 13.9
74.7 13.1
75.0 12.8
75.5 12.5
80.0 12.6
80.5 12.7
Branch Distributed Tributary Concentration File¶
This file contains the inflow concentrations for a distributed tributary specified on the Distributed Tributary card. A separate file is required for each branch. This allows the user to update constituent inflow concentrations for one branch independent of another branch.
Guidelines for file preparation:
- If constituents are being modeled, a separate file is required for each branch.
- Input format for all fields is F8.0 that allows the user to specify the decimal point location. The number of fields is determined by the number of active constituents and they are always located on one line.
- The first two lines are ignored and can be used to comment the file.
- The next line contains the abbreviations for the constituent names, right justified according to the input field.
- The first field is the Julian date that can be entered at any frequency.
- The remaining fields contain the concentration for each constituent specified on the Distributed Tributary Active Constituent Control card. Only those constituents specified as active on the
CDT CONcard may be included.
There is also a free-format option for this file. When the first character on the first line is $, the model assumes the input is in free format rather than fixed format.
Example, Fixed Format:
CE-QUAL-W2 sample distributed tributary constituent inflow concentration file
JDAY CLFORM SSOLID LDOM RDOM ALGAE DETRIT PO4 NH4 NO3 O2 Fe
1. 17. 62. 7.333 17.111 0.0 0.9 0.02 0.10 0.42 13.9 0.4
8. 13. 0.0 8.000 18.667 0.0 0.4 0.01 0.03 0.37 14.0 0.2
15. 11. 17. 9.333 21.778 0.0 0.0 0.00 0.01 0.17 10.0 0.3
22. 14. 34. 10.000 23.333 0.0 0.0 0.05 0.00 0.20 10.4 1.6
29. 17. 38. 4.467 10.422 0.0 0.4 0.01 0.11 0.26 11.6 0.4
Branch Precipitation File¶
This file contains the precipitation values for a branch and is needed only if the precipitation option [PRC] is turned on.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | PRE |
Precipitation rate | m s⁻¹ |
Example, Fixed Format:
CE-QUAL-W2 sample precipitation file where Pre is in m/s
JDAY PRE
182.0000 0.000
182.5416 1.E-6
182.6250 2.E-6
182.6666 0.000
Branch Precipitation Temperature File¶
This file contains the precipitation temperatures for a branch and is needed only if the precipitation option [PRC] is turned on. A separate file is required for each branch.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | TPR |
Precipitation temperature | °C |
Guidelines for file preparation:
- A separate file is required for each branch.
- Input format for each field is F8.0 that allows the user to specify the decimal point location.
- The first two lines are ignored and can be used to comment the file.
- The third line contains the variable names, right justified according to the input field.
- The first field is the Julian date that can be entered at any frequency.
- The second field is the precipitation temperature (°C).
There is also a free-format option. When the first character on the first line is $, the model assumes the input is in free format.
Example, Fixed Format:
CE-QUAL-W2 sample precipitation temperature file
JDAY TPR
1.00 6.80
2.00 6.70
3.00 7.00
4.00 6.30
5.00 6.40
6.00 6.10
7.00 6.60
8.00 5.70
9.00 5.20
10.00 5.40
11.00 7.10
12.00 6.60
Example, Free Format (CSV):
$CE QUAL W2 sample precipitation temperature file
JDAY,TPR
1.00,6.80
2.00,6.70
3.00,7.00
4.00,6.30
5.00,6.40
6.00,6.10
7.00,6.60
8.00,5.70
9.00,5.20
10.00,5.40
11.00,7.10
12.00,6.60
Branch Precipitation Concentration File¶
This file contains the precipitation concentrations for a branch and is needed only if the precipitation option [PRC] is turned on. A separate file is required for each branch if constituents are being modeled.
Guidelines for file preparation:
- If constituents are being modeled, a separate file is required for each branch. This allows the user to update constituent concentrations for one branch independent of another branch.
- Input format for all fields is F8.0 that allows the user to specify the decimal point location. The number of fields is determined by the number of active constituents and they are always located on one line.
- The first two lines are ignored and can be used to comment the file.
- The next line contains the abbreviations for the constituent names, right justified according to the input field.
- The first field is the Julian date that can be entered at any frequency.
- The remaining fields contain the concentration for each constituent specified on the Precipitation Active Constituent Control card. Only those constituents specified as active on the
CPR CONcard may be included.
There is also a free-format option. When the first character on the first line is $, the model assumes the input is in free format.
Example, Fixed Format:
CE-QUAL-W2 constituent precipitation concentration sample input file
JDAY DO
180.000 8.7
190.000 8.2
195.000 8.0
220.000 7.8
Example, Free Format (CSV):
$CE-QUAL-W2 constituent precipitation concentration sample input file
JDAY,DO
180.000,8.7
190.000,8.2
195.000,8.0
220.000,7.8
External Head Boundary Files¶
Upstream Head Elevation File¶
This file contains the elevations for a branch with an external upstream head boundary condition.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | ELUH |
External head elevation | m (above datum on LOCATION card) |
Example, Fixed Format:
CE-QUAL-W2 sample external head elevation file
JDAY ELUH
180.000 431.12
180.050 431.15
180.100 431.20
Example, Free Format:
Upstream Head Temperature File¶
This file contains the upstream temperature profiles for a branch with an external upstream head boundary condition. Three input formats are supported:
- Fixed format with depth-varying profiles: Temperatures from layer 2 to the bottom active layer. Values that exceed one line continue on the next line with blanks in the Julian day field.
- Free format (CSV) with depth-varying profiles: First character is
$. Layer values are columns. - No stratification format: First two characters are
$T. Single temperature per time step, similar to the tributary temperature format.
Example, Fixed Format (depth-varying):
CE-QUAL-W2 sample external upstream boundary temperature file
JDAY TUH TUH TUH TUH TUH TUH TUH TUH TUH
180.500 19.3 19.3 19.3 19.3 19.3 19.0 18.8 18.7 18.6
18.4 18.0 17.0 15.0 14.0 13.5 13.2 13.0 12.8
12.8 12.8
Example, No Stratification (CSV):
Upstream Head Concentration File¶
This file contains the upstream constituent concentration profiles for a branch with an external upstream head boundary condition. The same three input formats apply as for the temperature file.
Constituent Order
Constituents must appear in the same order as they are specified on the CST ACTIVE card. A boundary concentration is required for each active constituent.
Downstream Head Elevation File¶
This file contains the water surface elevations for a branch with an external downstream head boundary condition. Guidelines:
- A separate file is required for each branch with an external downstream head boundary condition.
- For the fixed-format version, input format for each field is F8.0. If the first character in line 1 is
$, the file is in CSV format and fields are comma delimited with no restriction on field length. - The first two lines are ignored and can be used to comment the file.
- The next line contains the variable names.
- The first field is the Julian day. The frequency between updates may vary during the simulation.
- The next field is the external head elevation (m above the datum specified on the Initial Condition card).
Example, Fixed Format:
CE-QUAL-W2 sample external downstream head elevation file
JDAY ELUH
180.000 431.12
180.050 431.15
180.100 431.20
180.150 431.25
Example, Free Format:
Downstream Head Temperature File¶
This file contains the downstream temperature profiles for a branch with an external downstream head boundary condition. Three input formats are supported:
- Fixed format with vertical stratification: Temperature values are specified for each layer starting from layer 2 and extending to the bottom active layer. If values do not fit on one line, they continue on the next line with the Julian day field left blank.
- CSV format with vertical stratification: First character on line 1 is
$. Each row contains the Julian day followed by temperature values for each layer. - No stratification format: First two characters on line 1 are
$T. The file format is similar to other comma-delimited file formats such as the tributary temperature file (single temperature per time step).
Temperature values must start at layer 2 and extend to the bottom active layer. Assign boundary temperatures starting from the bottom layer, then use this value to fill up to layer 2.
Example, Fixed Format (Stratified):
CE-QUAL-W2 sample external downstream boundary temperature file
JDAY TUH TUH TUH TUH TUH TUH TUH TUH
180.500 19.3 19.3 19.3 19.3 19.3 19.0 18.8 18.7 18.6
18.4 18.0 17.0 15.0 14.0 13.5 13.2 13.0 12.8
12.8 12.8
Example, No Stratification (Free Format):
Downstream Head Concentration File¶
This file contains the downstream constituent concentration profiles for a branch with an external downstream head boundary condition. Three input formats are supported, analogous to the downstream head temperature file:
- Fixed format with vertical stratification: Concentration values are specified for each cell starting from layer 2 and extending to the bottom active layer.
- CSV format with vertical stratification: First character on line 1 is
$. - No stratification format: First two characters on line 1 are
$T. The file format is similar to the tributary concentration file.
Constituents must appear in the same order as they are turned on in the CST ACTIVE card. A boundary concentration is required for each active constituent.
Example, Fixed Format (Stratified):
CE-QUAL-W2 sample external downstream boundary constituent concentration file
JDAY CUH CUH CUH CUH CUH CUH CUH CUH
180.000 23.5 23.5 23.5 23.5 23.5 23.9 24.5 25.0 26.0 !TDS
27.0 28.0 29.0 29.5 30.0 30.2 30.4 30.6 30.6
30.6 30.6 30.6
180.000 9.0 9.0 9.0 9.0 9.0 9.0 9.0 8.8 8.7 !DO
8.6 8.4 8.0 7.5 7.0 6.0 5.5 5.5 5.5
5.5 5.5
Vertical Profile File¶
The vertical profile file (vpr.npt or CSV) contains a single vertical profile used to specify initial conditions for temperature and/or constituent concentrations. The profile initializes all segments uniformly.
- An initial vertical profile is specified by setting initial temperature
T2I= -1.0 or initial concentration = -1.0 on theCST ICONcard. - If temperature is included, it must be the first profile.
- Constituent profiles must be in the same order as on the
CST ICONcard. - Values start at the surface layer [KT] and extend to the bottom layer.
- Boundary segments are not included.
Example, Fixed Format:
CE-QUAL-W2 sample vertical profile initial conditions file
TEMP VPR T1 T1 T1 T1 T1 T1 T1 T1 T1
15.2 15.0 14.7 14.5 14.3 14.2 14.2 11.7 8.5 6.7
6.2 6.0 6.0 6.0 6.0
Example, Free Format:
$VPR file for Spokane River,,,KMX=47,Start at K=2 to 46,,,,,,
Layer#,KT,,,,,,,,,,
Variable,37,38,39,40,41,42,43,44,45,46
TEMP,17.10,17.10,17.10,17.10,17.10,17.10,17.10,17.10,17.10,17.00
ALG1,0.10,0.10,0.10,0.10,0.10,0.10,0.10,0.10,0.10,0.11
DO,12.10,12.10,12.00,12.00,12.00,12.00,12.00,12.00,12.00,12.00
Longitudinal Profile File¶
The longitudinal profile file (lpr.npt or CSV) contains vertical profiles for each segment. It is used when temperature or constituent concentrations are both vertically and longitudinally stratified. Two file formats are supported: the older fixed-format version and a newer CSV version.
- An initial longitudinal profile is specified by setting
T2I= -2.0 or initial concentration = -2.0. - If temperature is included, it must be the first series of profiles.
- Constituent profiles must be in the same order as on the
CST ICONcard. - Values start at surface layer [KT] and extend to the bottom layer at each segment.
- Boundary segments are not included.
Example, Fixed Format:
CE-QUAL-W2 sample longitudinal profile file
Segment 2
Temperature T1 T1 T1 T1 T1 T1 T1 T1 T1
15.0 14.8 14.5 14.3 14.2 14.1 11.5 8.2 6.5
6.2
Segment 3
Temperature T1 T1 T1 T1 T1 T1 T1 T1 T1
15.0 14.8 14.5 14.3 14.2 14.1 11.5 8.2 6.5
6.2
Example, Free Format (CSV):
$LPR file,,,,,,,,,,
,,,,,,,,,,
PO4,KT:37,38,39,40,41,42,43,44,45,46,
Segment:2,0.03,0.03,0.03,0.03,0.03,0.03,0.03,0.03,0.03,0.03,
3,0.03,0.03,0.03,0.03,0.03,0.03,0.03,0.03,0.03,
Shade Input File¶
The shade input file contains the shade information for computing the vegetative and topographic shading dynamically for each model segment. The file can be developed as a fixed-format or comma-delimited input file. When the first character in line 1 is $, the file format is free, comma-delimited.
File Format (Fixed Format)¶
| Variable | Name | Format |
|---|---|---|
| Segment Number | SEG |
I8 |
| Dynamic shading (and static canopy) or static shading | DYNSH |
F8.0 |
| Vegetative elevation left bank, m | VEL |
F8.0 |
| Vegetative elevation right bank, m | VER |
F8.0 |
| Distance to vegetation left bank, m | DL |
F8.0 |
| Distance to vegetation right bank, m | DR |
F8.0 |
| Shade reduction factor #1, left bank | SRFL1 |
F8.0 |
| Shade reduction factor #2, left bank | SRFL2 |
F8.0 |
| Shade reduction factor #1, right bank | SRFR1 |
F8.0 |
| Shade reduction factor #2, right bank | SRFR2 |
F8.0 |
| Topographic angle #1 at 0°, radians | TOPO1 |
F8.0 |
| Topographic angle #2 at 20°, radians | TOPO2 |
F8.0 |
| ... (topographic angles at 20° increments) | TOPO3 to TOPO18 |
F8.0 |
| Starting date for SRF #1, Julian day | JDSRF1 |
F8.0 |
| Starting date for SRF #2, Julian day | JDSRF2 |
F8.0 |
Variable Descriptions¶
| Variable | Description |
|---|---|
SEG |
Segment number in the model. Include all segment numbers and leave blank those that are inactive. |
DYNSH |
If between 0 and 1, this is a non-dynamic constant shade reduction (similar to Version 3.0) and columns to the right are ignored. If negative, the rest of the columns will be read and dynamic shading will be implemented. The absolute value of a negative number between -0.99 and -0.01 uses the dynamic shading algorithm but uses the absolute value of the negative number as the minimum shade value. If DYNSH = -1, only dynamic shading is computed. |
VEL |
Tree top elevation on the left bank (m). The elevation of the left bank plus the height of the tree/vegetation. This is the absolute elevation (e.g., m NGVD or m MSL). |
VER |
Tree top elevation on the right bank (m). |
CDL |
Distance from the centerline of the river segment to the shade controlling line of vegetation on the left bank (m). |
CDR |
Distance from the centerline of the river segment to the shade controlling line of vegetation on the right bank (m). |
SRFL1 |
Shade reduction factor, left bank (0 to 1). Applies from JDSRF1 to JDSRF2 (and over multiple years). Based on extent of vegetation along the segment length and density. |
SRFL2 |
Shade reduction factor, left bank (0 to 1). Applies from JDSRF2 to JDSRF1. |
SRFR1 |
Shade reduction factor, right bank (0 to 1). Applies from JDSRF1 to JDSRF2. |
SRFR2 |
Shade reduction factor, right bank (0 to 1). Applies from JDSRF2 to JDSRF1. |
TOPO1 to TOPO18 |
Topographic inclination angle (radians) for every 20° around a segment starting with TOPO1 at 0° North and moving clockwise. |
JDSRF1 |
Julian day for which SRF #1 starts to apply (leaf-out conditions for deciduous trees). |
JDSRF2 |
Julian day for which SRF #2 starts to apply (when deciduous trees lose their leaves). |
Vegetation Elevation¶
The algorithm uses elevations for the grid development, so the vegetation's elevation is used instead of height. If shading is due to brush along a river, the top elevation of the brush would be used in the model. The tree top elevation consists of the vegetation height and the bank surface elevation where the vegetation is standing. Tree top elevations should be collected for both river banks.
Centerline Distance¶
The centerline distance is the distance between the river centerline and the controlling vegetation on each bank. The information will vary for each bank depending on the location of the river centerline and the offset of the vegetation from the wetted edge. The frequency of the distances should match the tree top elevation data and reflect the variability of the vegetation.
Shade Reduction Factor¶
The shade reduction factor is based on the density and extent of the vegetation along the length of each model segment. If shade-producing vegetation exists along only half the length of a segment and was 100% opaque, a shade reduction factor of 0.50 would be used. If shade was due to vegetation along only half of the segment with 80% density, then a shade reduction factor of 0.40 would be used. The shade reduction factors, SRFR1 and SRFR2, are expressed as a fraction from 0.0 to 1.0. The shade reduction factor should be developed for both banks and can be used as a calibration parameter if field data are uncertain or incomplete.
Topographic Shading¶
In addition to the vegetation near a river, the local topography can influence the amount of solar radiation reaching the water surface. The local topography around a river can be developed using survey information of the river channel or from a Digital Elevation Model (DEM). For each 20-degree increment around a model segment, an array of elevation points and their distances from the center point are obtained from the DEM. The elevations and distances are then used to calculate the highest inclination angle relative to the center point. Inclination angles are generated for each of the 20-degree increments around a segment's center point. The inclination angles are converted to radians and specified in the dynamic shading input file. The first column represents the topographic inclination angle at 0° north with subsequent inclination angles obtained by moving clockwise.
The shade algorithm can be used in both the northern and southern hemispheres. If there is no topographic shading in a specific direction due to the latitude or surrounding terrain, zero can be used as the inclination angle. The model uses all 18 topographic inclination angles. Based on the position of the sun, the algorithm will interpolate between the two nearest inclination angles to obtain the most appropriate inclination angle.
Input File Examples¶
Example (Fixed Format, Space Delimited):
W2 Shading Input File, Vegetation and Topography, calibrated veg characteristics and corrected topography
SEGMENT DYNSH TTELEA TTELEB CLDLRA CLDLRB SRFLB1 SRFLB2 SRFRB1 SRFRB2 TOPO1 TOPO2 ...
2 -1.0 231.37 224.38 33.22 19.98 0.486 0.490 0.414 0.295 0.181 0.348 ...
3 -1.0 231.23 224.39 33.22 19.16 0.501 0.505 0.474 0.382 0.283 0.221 ...
Example (Free Format, Comma Delimited):
SW2 Shading InputFile Vegetation and Topography calibrated veg characteristics and corrected topography,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,
Segment, DynSh,TTleLB,TTeRB,C1DisLB,C1DiRB,SRFLB1,SRFLB2,SRFRB1,SRFRB2,TOPO1,TOPO2,TOPO3,TOPO4,TOPO5,TOPO6,TOPO7,TOPO8,TOPO9,TOPO10,TOPO11,TOPO12,TOPO13,TOPO14,TOPO15,TOPO16,TOPO17,TOPO18,SRFJD1,SRFJD2,
1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2,-1,575,580,70,70,0,0.57,0,0.5,0.486,0.49,0.414,0.295,0.191,0.149,0.134,0.296,0.353,0.359,0.329,0.25,0.12,0.123,0.242,0.298,0.31,0.414,80,288,
3,-,
Wind Sheltering Coefficient File¶
The wind sheltering input file contains time- and segment-varying wind sheltering coefficients. This is a representation of having segment-by-segment wind velocity data, which is preferable if the data exist based on only one meteorological station. Only one file is provided for all model segments regardless of the number of waterbodies.
Step Function Input
The wind sheltering coefficient is not interpolated in time and is treated as a step function in time.
File Format¶
| Variable | Name | Format |
|---|---|---|
| Julian day | JDAY |
F8.0 |
| Wind-sheltering coefficient | WSC |
F8.0 |
Guidelines for file preparation:
- For the fixed-format version only: Input format for each field is F8.0. If more than 9 segments, the fields wrap to the next line.
- The first two lines are ignored and can be used to comment the file.
- The third line contains the variable name, right justified according to the input field.
- The first field is the Julian date
JDAY, which can be entered at any frequency. - The next fields are the wind-sheltering coefficients for all model segments including the boundary segments at the given Julian date.
- The Julian date and
WSCare repeated as required to provide dynamic wind sheltering. - Only one file is provided for all the model segments regardless of the number of waterbodies.
Example (Fixed Format, Space Delimited)¶
Alum Creek wind sheltering coefficients
JDAY WSC WSC WSC WSC WSC WSC WSC WSC
1.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0 1.0
1.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0 1.0
365.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0 1.0
Example (Free Format, Comma Delimited)¶
The model reads in a free-format version of this file if the first character on the first line is $. The first 3 lines are ignored. Then each row starts with the Julian day followed by the WSC coefficient for each model segment including boundary/inactive segments.
$wsc file,,,,,,,,,,,,,,,,,,,,
,Seg #s,,,,,,,,,,,,,,,,,,,,
JDAY,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
1.0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
365.0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
Light Extinction File¶
The light extinction input file contains time-varying light extinction data for each waterbody. These data are usually obtained by Secchi disk measurements. Due to inaccuracies in these measurements, a more appropriate method is the measurement of light extinction directly using a photometer. If dynamic light extinction is read in, all other internal calculations of light extinction are ignored.
File Format¶
| Variable | Name | Format |
|---|---|---|
| Julian day | JDAY |
F8.0 |
| Light extinction, m⁻¹ | EXH2O |
F8.0 |
Guidelines for file preparation:
- Input format for each field is F8.0 that allows the user to specify the decimal point location.
- The first two lines are ignored and can be used to comment the file.
- The third line contains the variable name, right justified according to the input field.
- The first field is the Julian date
JDAY, which can be entered at any frequency. - The second field contains values for observed light extinction (m⁻¹).
Values of [EXIC] determine if the values are linearly interpolated or not.
Example (Fixed Format, Space Delimited)¶
Observed light extinction
JDAY EXH20
1.00 0.20
110.0 0.25
140.0 0.34
157.0 0.41
158.0 0.44
165.0 0.45
200.0 0.38
220.0 0.25
240.0 0.20
250.0 0.24
Example (Free Format, Comma Delimited)¶
$Dynamic light extinction coefficient input file,
,
JDAY,EXT(M-1)
1.,0.25
50.,0.45
150.,0.35
200.,0.35
265.,0.4
365.,0.45
Gate File¶
This file contains the dynamic gate height for each gate based on the rating curve supplied in the gates section of the control file. The file content depends on the DYNGTC setting:
- If
DYNGTC=B, the file contains dynamic gate opening heights in m - If
DYNGTC=ZGT, the file contains dynamic weir height elevations in m - If
DYNGTC=FLOWorDYNGTC=FLOW_ZGT, the file contains flow rates in m³ s⁻¹
One file is required for all the gates specified in the control file. For a fixed-format file (see below for CSV file format), the file contains the following data for n gates.
File Format¶
| Variable | Name | Format |
|---|---|---|
| Julian day | JDAY |
F8.0 |
| Gate #1 opening, m (or weir crest in m or flow in m³ s⁻¹) | GATEH |
F8.0 |
| Gate #2 opening, m | GATEH |
F8.0 |
| ... | GATEH |
F8.0 |
| Gate #n opening, m | GATEH |
F8.0 |
Guidelines for the fixed-format space-delimited file:
- Data are read in F8.0 format, which allows the user to override the decimal point location. Field widths must be as specified above.
- The first two lines are ignored and can be used to comment the file.
- The third line contains the variable names, right justified according to the input field.
- Data can be input at any frequency.
- After the Julian day field, there are n columns of F8.0 format corresponding to each gate.
- The gate height is treated as a step function rather than interpolated between dates when
GTIC=OFF. WhenGTIC=ON, the time series is linearly interpolated between values.
Example: Gate Opening (Fixed Format, Space Delimited)¶
Example: Open or Close a Weir (Fixed Format)¶
Gate openings can be used to open or close a valve or gate dynamically. The dynamic opening is either closed (0) or fully open (1). In either case, the model uses the rating curve for the gate as specified in the control file.
Example: Dynamic Weir Elevation (Fixed Format)¶
If the gate is specified as a dynamic weir (DYNGC = ZGT), the weir crest elevation is included in this file rather than the gate opening. For example, if flashboards are raised, the weir equations will be used but with the dynamic weir crest elevation.
QGATE
Dynamic flashboards 1999
Jday Gate 1
1.00 23.5
200.30 25.5
204.65 25.5
209.50 23.5
368.00 23.5
Example: Pumped Storage (Fixed Format)¶
If the gate is specified as a flow rate (DYNGC = FLOW), the flow rate is included in this file rather than the gate opening. The example below shows a dynamic flow rate in m³ s⁻¹.
QGATE
Flow rate for pumped storage between 2 reservoirs
Jday GATE 1 GATE 2
1.00 23.5 0.0
1.50 0.0 23.5
2.00 12.5 0.0
2.50 0.0 12.5
3.00 20.0 0.0
Dynamic Weir Flow Rate at Target Elevation¶
The model user can also use the dynamic weir algorithm to achieve a target water level that changes over the year. When DYNGTC = ZGT, the elevation of the dynamic weir can be the target water level in the reservoir. To take the flow from a different target elevation, insert the following on the 2nd line of the gate file:
- Characters 1 to 8:
EGT2ELEV(title in all caps) - Characters 9 to 16: Centerline elevation where the outflow will be removed in F8.0 format
This is repeated for each gate in F8.0 format. To use the elevation specified in the dynamic weir elevations, set the elevation above to 0.0.
Dynamic Gate Elevation when DYNGTC = FLOW_ZGT¶
If DYNGC is set to FLOW_ZGT, the flow is read in from the gate file as shown above, but the dynamic elevation is read from another file called dynselevGT.npt. This file contains the variable outlet elevation of one or more gates. It is a CSV comma-delimited file and only contains the elevation for those gates specified as FLOW_ZGT.
The file structure:
- Line 1: Header/title (ignored)
- Line 2: Integer
JJG, number of gates that have variableEGT - Line 3: Integer
NJG, gate number, repeatedJJGtimes showing the order of the gates to be read (repeat on different lines) - Line 4: Header/title (ignored)
- Line 5+:
JDAY,EGT(NJG1),EGT(NJG2), ... Julian day and the centerline elevation of each gate in m. These are treated as step function changes.
Dynamic gate elevation when FLOW_ZGT
2,# of gates that have a variable EGT
2, gate number that has a variable EGT, Repeat on different line.
5, gate number that has a variable EGT
Jday since 2001,Elevation_m_Gt2,Elev_m_Gt5
731.0,101.7129968,125.2
781.0,101.7129968,125.2
831.0,121.9214826,125.2
921.0,121.9214826,127.5
Free Format (CSV)¶
The gate file also uses the comma-delimited file format if the first character in the first line is a $. For a gate file with 22 different flows, the free-format file would have the following format:
$JDA_2014_BR1_LINKED_QGT.npt -Outflow file for System McNary model,,,,,,,,,,,,,,,,,,,,,,
Structure flows based on proportional actual dam operations.,,,,,,,,,,,,,,,,,,,,,,
JDAY,POW,SPB1,SPB2,SPB3,SPB4,SPB5,SPB6,SPB7,SPB8,SPB9,SPB10,SPB11,SPB12,SPB13,SPB14,SPB15,SPB16,SPB17,SPB18,SPB19,SPB20,MISC,
1,3888.358,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36.851,
2,4070.175,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35.816,
Dynamic Elevation for Structure Outflows¶
Whenever DYNSTRUC is set to ON in the control file (w2_con.npt or w2_con.csv), the model looks for the file dynselevX.npt, where X is the model branch number. This file contains the variable outlet elevation of one or more structures for that branch. Elevation values are not interpolated in the model; they are treated as step function changes to the centerline elevation.
File Format¶
- Line 1: Header/title (ignored)
- Line 2: Integer
IJS, number of structures (outlets) for this branch that have variableESTR. The following line is repeatedIJStimes. - Line 3: Integer
NJS, structure (outlet) number, repeatedIJStimes showing the order of the structures to be read. - Line 4: Header/title (ignored)
- Line 5+:
JDAY,ESTR(NJS1),ESTR(NJS2),ESTR(NJS3), ... Julian day and the centerline elevation of each structure in m. There will beIJScolumns ofESTRinformation.
Example (Free Format, Comma Delimited)¶
$Dynamic structure withdrawal file for JB=1
2,# of outlets to for this branch that have a variable ESTR
17, Outlet number for this branch that has a variable ESTR, Repeat on different line.
18, Outlet number for this branch that has a variable ESTR
Jday since 2001,Elevation_m_17,Elev_m_18 Repeat columns for each JS
731.0,101.7129968,125.2
781.0,101.7129968,125.2
831.0,121.9214826,125.2
921.0,121.9214826,127.5
931.0,115.8254084,127.5
951.0,109.7293343,128.5
971.0,103.6332602,128.5
991.0,101.7129968,129.0
1096.0,101.7129968,129.0
Dynamic Pump Input File¶
Whenever DYNPUMP is set to ON in the control file (w2_con.npt or w2_con.csv), the model looks for the file dynpumpX.npt, where X is the pump number. This file is a time series that skips the first 3 lines, then includes columns for Julian day (F8.0), elevation of the centerline of the pump withdrawal in m (F8.0), elevation for turning the pump ON in m (F8.0), elevation for turning OFF the pump in m (F8.0), and the pump flow rate in m³ s⁻¹ (F8.0). This file is treated as a step function input with no linear interpolation between successive values.
File Format¶
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | EPU |
Centerline elevation of the pump withdrawal | m |
| 3 | EONPU |
Elevation for turning the pump ON | m |
| 4 | EOFFPU |
Elevation for turning OFF the pump | m |
| 5 | QPU |
Pump flow rate | m³ s⁻¹ |
Example (Fixed Format, Space Delimited)¶
Dynamic pump input file
JDAY EPU EONPU EOFFPU QPU
1.000 456. 460.0 459.0 1.0
60.000 456. 462.0 460.0 2.0
90.000 456. 463.0 461.0 3.0
160.000 457.5 464.0 462.0 5.0
365.000 458. 460.0 462.0 5.0
Example (Free Format, Comma Delimited)¶
$$,,,,,
Flow,,,,,
JDAY,EPU,EPON,EPOFF,QSum,
1,12.75,11.7,11.45,1.59673962537444E-03,
1.04166666666424,12.75,11.7,11.45,1.25754905174206E-03,
1.08333333333576,12.75,11.7,11.45,9.18358478109674E-04,
Dynamic Pipe Input File¶
Whenever DYNPIPE is set to ON in the control file (w2_con.npt or w2_con.csv), the model looks for the file dynpipe.npt. This file is a time series that skips the first 3 lines, then includes a column of Julian day (F8.0) followed by columns for each pipe. Each column contains a number that is multiplied by the theoretical flow in the pipe. This allows for turning a pipe ON or OFF (the number is 1 or 0, respectively). If the flow is throttled by closing a gate valve, the fraction of flow through the pipe can be given. This file is treated as a step function input with no linear interpolation between successive values.
File Format¶
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2+ | PipeN |
Multiplier for theoretical flow in each pipe (0.0 to 1.0) | - |
Example¶
Chester Morse Lake Dynamic Pipe File. Pipe 1 = low level outlet, Pipe2 = Bypass valve
Jday Pipe1 Pipe2
1.00 1.000 1
75.00 0.030 0
265.00 0.050 0
269.00 0.159 0
290.00 0.300 0
306.00 1.000 0
311.00 1.000 1
349.00 0.000 1
362.00 1.000 1
606.00 0.000 0
630.00 0.043 0
635.00 0.057 0
Sediment Diagenesis Input File¶
The sediment diagenesis input file (w2_diagenesis.npt) specifies parameters for the multi-layer sediment diagenesis model. This advanced model simulates the fate and transport of organic matter, nutrients, and dissolved gases within the sediment bed. The file uses a line-by-line format where each line contains a descriptive comment string followed by a comma and the parameter value.
The file is organized into the following sections.
Line Comments¶
Each input line consists of a descriptive string enclosed in quotes, followed by a comma and the parameter value. For example:
Global ON/OFF Switch¶
| Sample Line | Description |
|---|---|
"Global Switch for all sediment diagenesis features,", .TRUE. |
Turns ON/OFF all features in the sediment diagenesis module. The user must also turn the sediment diagenesis processes switch to .TRUE. for the model to compute diagenesis. |
Include Sediment Diagenesis Processes¶
| Sample Line | Description |
|---|---|
"Include sediment diagenesis processes,", .TRUE. |
Switch to include sediment diagenesis processes. .TRUE. or .FALSE.. When .TRUE., the first order and zero order sediment diagenesis processes are ignored in the model and only sediment diagenesis computations are performed. |
FFT Layer¶
The Fine Fluids Tailing (FFT) Layer section controls an optional layer of fine tailings material.
| Sample Line | Description |
|---|---|
"Include FFT Layer,", .FALSE. |
Switch to include FFT Layer. .TRUE. or .FALSE. |
"FFT Layer Number of Periods,", 5 |
Number of FFT Layer time periods |
"FFT Layer Start Times,", 1,65,125,200,300 |
Start times for each period (Julian day) |
"FFT Layer End Times,", 50,100,175,250,400 |
End times for each period (Julian day) |
"Initial tailings concentration in FFT (gm/m³),", 360000 |
Initial tailings concentration (g m⁻³) |
"Settling velocity of FFT to MFT (m/d),", 0.d0 |
Settling velocity from FFT to MFT (m day⁻¹) |
"Move FFT layer during consolidation,", .FALSE. |
Switch to move FFT layer during consolidation. .TRUE. or .FALSE. |
Bed Consolidation¶
| Sample Line | Description |
|---|---|
"Include bed consolidation,", .FALSE. |
Switch to perform bed consolidation. .TRUE. or .FALSE. |
"Fraction of layer thickness at which water layer is added,", 1.0 |
Fraction of layer thickness at which a water layer is added |
"Number of bed consolidation regions,", 1 |
Number of bed consolidation regions |
"Starting segment for regions,", 2 |
Starting segment for each region |
"Ending segment for regions,", 4 |
Ending segment for each region |
"Data type for bed consolidation for each region (0: Constant, 1: Time varying),", 1 |
Data type: 0 = constant rate, 1 = time-varying rate |
"Bed consolidation rate (m/d),", 0.02739726 |
Bed consolidation rate (m day⁻¹) |
"Bed consolidation data file,", "Regn1.npt," |
Bed consolidation data file name |
Consolidation Output¶
| Sample Line | Description |
|---|---|
"Write bed elevation snapshot output,", .TRUE. |
Switch to write bed elevation snapshot output. .TRUE. or .FALSE. |
"Write bed porosity snapshot output,", .TRUE. |
Switch to write bed porosity snapshot output. .TRUE. or .FALSE. |
Initial Conditions¶
| Sample Line | Description |
|---|---|
"Initial sediment bed thickness in meters,", 0.1 |
Thickness of sediment diagenesis bed (m) |
"Initial sediment bed porosity,", 0.8 |
Initial sediment bed porosity |
Sediment Characteristics¶
| Sample Line | Description |
|---|---|
"Sediment bed particle size in microns,", 100 |
Sediment bed particle size (microns) |
"Sediment type 1: Cohesive, 2: Non-cohesive,", 2 |
Sediment type: 1 = cohesive, 2 = non-cohesive |
"Sediment bulk density (kg/m³),", 2600 |
Sediment bulk density (kg m⁻³) |
"Sediment particle settling velocity (m/d),", 5.0 |
Sediment particle settling velocity (m day⁻¹) |
"Include sediment resuspension and deposition processes,", .TRUE. |
Switch to include sediment resuspension and deposition. .TRUE. or .FALSE. |
Gas Bubble Formation Rates¶
| Sample Line | Description |
|---|---|
"Gas Bubbles_Calculation", .FALSE. |
Switch to activate gas bubble calculation. .TRUE. or .FALSE. |
"Gas diffusion coefficient in sediment in m²/s,", 1.0d-9 |
Gas diffusion coefficient in sediment (m² s⁻¹) |
"Calibration parameter R1 in m,", 0.0014 |
Calibration parameter R1 (m) |
"Young's modulus E in N/m²,", 1.4d+9 |
Young's modulus E (N m⁻²) |
"Critical stress intensity factor for sediments K1c in N/m^3/2,", 300 |
Critical stress intensity factor K1c (N m⁻³ˡ²) |
"Bubbles release scale,", 0.02 |
Bubbles release scale |
"Fraction of critical pressure at which cracks close,", 0.20 |
Fraction of critical pressure at which cracks close |
"Switch to limit bubble size,", .TRUE. |
Switch to limit bubble size |
"Maximum bubble radius in mm,", 80 |
Maximum bubble radius (mm) |
"Switch to use slow release of bubbles,", .TRUE. |
Switch to use slow release of bubbles |
"Bubbles release fraction (sediments),", 0.005 |
Bubbles release fraction (sediments) |
"Bubbles accumulation fraction,", 0.1 |
Bubbles accumulation fraction |
"Number of bubbles release array,", 2000 |
Number of bubbles release array |
"Bubbles release fraction (atmosphere),", 0.001 |
Bubbles release fraction (atmosphere) |
"Bubbles-Water gas exchange rate (1/s),", 1.0d-7 |
Bubbles-water gas exchange rate (s⁻¹) |
Bubble Related Turbulence¶
| Sample Line | Description |
|---|---|
"Apply additional turbulence due to bubbles release,", .TRUE. |
Apply additional turbulence due to bubble release. .TRUE. or .FALSE. |
"Turbulence scaling factor for bubbles release,", 0.001 |
Scaling factor for bubble-related turbulence |
Resuspension of Particulate Organic Matter¶
| Sample Line | Description |
|---|---|
"Include particulate organic matter resuspension processes,", .FALSE. |
Turns ON/OFF resuspension of particulate organic matter in sediments |
"Critical shear stress for particulate organic matter resuspension dynes/cm^2,", 0.001 |
Critical shear stress for POM resuspension (dynes cm⁻²) |
"Critical Shields parameter for POM", 10.0 |
Critical Shields parameter for particulate organic matter |
"Use Cao method to estimate critical Shields parameter (rather than using input value),", .FALSE. |
ON/OFF option to use the Cao method to estimate critical Shields parameter |
"Specific gravity of particulate organic matter," 1.5 |
Specific gravity of particulate organic matter |
"Particulate organic matter particle diameter m," 0.0001 |
Particulate organic matter particle diameter (m) |
Switches for Iron, Manganese, Alkalinity, and pH¶
| Sample Line | Description |
|---|---|
"Include modeling of alkalinity/pH in sediments,", .FALSE. |
Turns ON/OFF sediment calculations for alkalinity and pH. .TRUE. or .FALSE. |
"Include modeling of Iron (FeOOH and Fe(II)) in sediments,", .FALSE. |
Turns ON/OFF iron (FeOOH and Fe(II)) in sediments. .TRUE. or .FALSE. |
"Include modeling of Manganese (MnO2 and Mn(II)) in sediments,", .FALSE. |
Turns ON/OFF manganese (MnO₂ and Mn(II)) in sediments. .TRUE. or .FALSE. |
Diagenesis Initial Conditions¶
Initial conditions for C, N, and P in the sediment are in units of mg L⁻¹. If field data on sediment composition are in units of mass of an element per mass of sediment, convert to mg L⁻¹ by multiplying the mass fraction (g element / g sediment) by (1 g / 1000 mg), then multiplying by the dry bulk density (g sediment / m³) to yield the density in g m⁻³ or mg L⁻¹.
| Sample Line | Description |
|---|---|
"Number of regions for different initial sediment concentrations,", 1 |
Number of regions for different initial sediment concentrations |
"Starting segment for regions,", 2 |
Starting segment for each region |
"Ending segment for regions,", 4 |
Ending segment for each region |
"Initial temperature for each region C,", 20.0 |
Initial temperature for each region (°C) |
"Initial particulate organic carbon (total) concentration for each region mgC/l,", 0.0 |
Initial POC concentration (mg-C L⁻¹) |
"Initial particulate organic nitrogen (total) concentration for each region mgN/l,", 0.0 |
Initial PON concentration (mg-N L⁻¹) |
"Initial sulfate concentration for each region mgS/l,", 0.0 |
Initial sulfate concentration (mg-S L⁻¹) |
"Initial dissolved ammonia concentration for each region mgN/l,", 0.0 |
Initial dissolved ammonia (mg-N L⁻¹) |
"Initial dissolved NO3-N concentration for each region mgN/l,", 0.0 |
Initial dissolved nitrate (mg-N L⁻¹) |
"Initial total phosphate concentration for each region mgP/l,", 0.0 |
Initial dissolved PO₄-P (mg-P L⁻¹) |
"Initial dissolved sulfide concentration for each region mgS/l,", 0.0 |
Initial dissolved sulfide (mg-S L⁻¹) |
"Initial dissolved methane concentration for each region mgC/l,", 0.0 |
Initial dissolved methane (mg-C L⁻¹) |
"Initial total inorganic carbon concentration for each region mgC/l,", 11.9 |
Initial total inorganic carbon (mg-C L⁻¹) |
"Initial alkalinity concentration for each region mg/l as CaCO3,", 40.0 |
Initial alkalinity (mg-CaCO₃ L⁻¹) |
"Initial Ferrous Iron concentration for each region mgFe/l,", 1.0 |
Initial Fe(II) concentration (mg-Fe L⁻¹) |
"Initial Iron Oxyhydroxide concentration for each region mgFe/l,", 1.0 |
Initial FeOOH concentration (mg-Fe L⁻¹) |
"Initial Mn(II) concentration for each region mgMn/l,", 1.0 |
Initial Mn(II) concentration (mg-Mn L⁻¹) |
"Initial sediment pH (only used if include modeling dynamic pH),", 7.0 |
Initial sediment pH for each region (used only when dynamic pH modeling is active) |
"Initial POP (total) concentration for each region mgP/l,", 0.0 |
Initial POP concentration (mg-P L⁻¹) |
"Initial manganese dioxide concentration for each region mgMn/l,", 1.0 |
Initial MnO₂ concentration (mg-Mn L⁻¹) |
Diagenesis Region Settings¶
| Sample Line | Description |
|---|---|
"Number of regions for different diagenesis related rates,", 1 |
Number of regions for different diagenesis-related rates |
"Starting segment for regions,", 2 |
Starting segment for each region |
"Ending segment for regions,", 4 |
Ending segment for each region |
"Fraction of labile poc for each diagenesis region,", 0.65 |
Fraction of labile POC for each region. If negative, the ratio is dynamically computed over time based on the fraction of labile to refractory material settling into the sediment layer. Typical values from DiToro (2001): 0.5 to 0.65. |
"Fraction of refractory poc for each diagenesis region,", 0.25 |
Fraction of refractory POC. Typical values from DiToro (2001): 0.16 to 0.25. |
"Fraction of labile pon for each diagenesis region,", 0.65 |
Fraction of labile PON |
"Fraction of refractory pon for each diagenesis region,", 0.25 |
Fraction of refractory PON |
"Fraction of labile pop for each diagenesis region,", 0.65 |
Fraction of labile POP |
"Fraction of refractory pop for each diagenesis region,", 0.25 |
Fraction of refractory POP |
Dynamic Labile/Refractory Ratio
If the fraction of labile POC is set to a negative value (e.g., -0.65), the ratio is dynamically computed over time based on the fraction of labile material settling into the sediment layer. The absolute value is used as the initial ratio. Setting the first variable (labile POC) to a negative value also changes the fractions for N and P to be dynamically computed.
Porewater Diffusion, Particle Mixing, and Burial Velocity¶
| Sample Line | Description | Typical Values |
|---|---|---|
"Pore water diffusion coefficient m²/d,", 0.0005 |
Porewater diffusion coefficient (m² day⁻¹) | 5E-4 to 5E-3 m² day⁻¹ |
"Particle Mixing Velocity between Aerobic and Anaerobic Layers m/d", 0.0012 |
Particle mixing velocity between aerobic and anaerobic layers (m day⁻¹) | 0.5E-3 to 3E-3 m day⁻¹ |
"Burial Velocity m/d", 10⁻⁵ m/d |
Burial velocity of sediments (m day⁻¹) | 5.5E-6 to 2E-5 m day⁻¹ |
Bioturbation¶
| Sample Line | Description |
|---|---|
"Reference POC G1 concentration for bioturbation mg-C/g, 0.1" |
Reference POC G1 concentration for bioturbation (mg-C g⁻¹). Used in calculation of final benthic particle mixing velocity (Equation 13.2 in DiToro, 2001). |
Methane Calculation¶
| Sample Line | Description |
|---|---|
"Methane production calculation method (0: Analytical, 1: Numerical),", 1 |
Methane production calculation method: 0 = Analytical, 1 = Numerical |
Diagenesis Rates Settings Part 1¶
| Sample Line | Description |
|---|---|
"DO Threshold for aerobic layer oxidation rates mgO2/l,", 2.0 |
DO threshold for aerobic layer oxidation rates (mg-O₂ L⁻¹) |
"Nitrification rate in aerobic layer (NH3->NO3) at DO below threshold m/d,", 0.131 |
Nitrification rate at DO below threshold (m day⁻¹) |
"Nitrification rate in aerobic layer (NH3->NO3) at DO above threshold m/d,", 0.131 |
Nitrification rate at DO above threshold (m day⁻¹). Typical values from DiToro (2001): 0.14 to 0.2. |
"Denitrification rate in aerobic layer (NO3->N2) at DO below threshold m/d,", 0.1 |
Denitrification rate in aerobic layer at DO below threshold (m day⁻¹) |
"Denitrification rate in aerobic layer (NO3->N2) at DO above threshold m/d,", 0.25 |
Denitrification rate in aerobic layer at DO above threshold (m day⁻¹) |
"Denitrification rate in anaerobic layer (NO3->N2) m/d,", 0.25 |
Denitrification rate in anaerobic layer (m day⁻¹) |
"Methane oxidation rate in aerobic layer m/d,", 0.0 |
Methane oxidation rate in aerobic layer (m day⁻¹) |
"Half-saturation oxygen constant for CH4 oxidation mg-O2/L, 0" |
Half-saturation O₂ constant for CH₄ oxidation (mg-O₂ L⁻¹) |
"Nitrification half-saturation constant for NH4N in aerobic layer mgN/l,", 0.728 |
Nitrification half-saturation constant for NH₄-N (mg-N L⁻¹) |
"Nitrification half-saturation constant for O2 in aerobic layer mgO2/l,", 0.37 |
Nitrification half-saturation constant for O₂ (mg-O₂ L⁻¹) |
Diagenesis Rates Settings Part 2¶
| Sample Line | Description |
|---|---|
"Temperature coefficient for pore water diffusion between layers,", 1.08 |
Arrhenius temperature coefficient for porewater diffusion |
"Temperature coefficient for particle mixing diffusion coefficient,", 1.0 |
Arrhenius temperature coefficient for particle mixing diffusion coefficient |
"Temperature coefficient for nitrification,", 1.123 |
Arrhenius temperature coefficient for nitrification |
"Temperature coefficient for denitrification,", 1.08 |
Arrhenius temperature coefficient for denitrification |
"Temperature coefficient for methane oxidation,", 1.079 |
Arrhenius temperature coefficient for methane oxidation |
"Sulfate concentration above which sulfide over methane is produced mgS/l,", 20.0 |
Sulfate concentration threshold above which sulfide is produced over methane (mg-S L⁻¹) |
"H2S oxidation rate in aerobic layer m/d,", 0.2 |
Sulfide oxidation rate in aerobic layer (m day⁻¹) |
"Temperature coefficient for sulfide (H2S) oxidation,", 1.08 |
Arrhenius temperature coefficient for sulfide oxidation |
"Sulfide oxidation normalization constant for O2 mgO2/l,", 4.0 |
Sulfide oxidation normalization constant for O₂ (mg-O₂ L⁻¹) |
Diagenesis Rates Settings Part 3¶
This section specifies mineralization (diagenesis) rates for labile, refractory, and inert/slow refractory fractions of POC, PON, and POP, along with their Arrhenius temperature coefficients.
| Sample Line | Description |
|---|---|
"Mineralization or diagenesis rate for labile POC 1/d,", 0.035 |
Mineralization rate for labile POC (day⁻¹). Range: 0.019 to 0.07. |
"Mineralization or diagenesis rate for refractory POC 1/d,", 0.0018 |
Mineralization rate for refractory POC (day⁻¹). Range: 0.0012 to 0.0088. |
"Mineralization or diagenesis rate for inert/slow refractory POC 1/d,", 0.0 |
Mineralization rate for inert/slow refractory POC (day⁻¹) |
"Mineralization or diagenesis rate for labile PON 1/d,", 0.035 |
Mineralization rate for labile PON (day⁻¹) |
"Mineralization or diagenesis rate for refractory PON 1/d,", 0.0018 |
Mineralization rate for refractory PON (day⁻¹) |
"Mineralization or diagenesis rate for inert/slow refractory PON 1/d,", 0.0 |
Mineralization rate for inert/slow refractory PON (day⁻¹) |
"Mineralization or diagenesis rate for labile POP 1/d,", 0.035 |
Mineralization rate for labile POP (day⁻¹) |
"Mineralization or diagenesis rate for refractory POP 1/d,", 0.0018 |
Mineralization rate for refractory POP (day⁻¹) |
"Mineralization or diagenesis rate for inert/slow refractory POP 1/d,", 0.0 |
Mineralization rate for inert/slow refractory POP (day⁻¹) |
"Temperature coefficient labile POC,", 1.1 |
Arrhenius temperature coefficient for labile POC |
"Temperature coefficient refractory POC,", 1.15 |
Arrhenius temperature coefficient for refractory POC |
"Temperature coefficient inert/slow refractory POC,", 1.17 |
Arrhenius temperature coefficient for inert/slow refractory POC |
"Temperature coefficient for labile PON,", 1.1 |
Arrhenius temperature coefficient for labile PON |
"Temperature coefficient refractory PON,", 1.15 |
Arrhenius temperature coefficient for refractory PON |
"Temperature coefficient inert/slow refractory PON,", 1.17 |
Arrhenius temperature coefficient for inert/slow refractory PON |
"Temperature coefficient labile POP,", 1.1 |
Arrhenius temperature coefficient for labile POP |
"Temperature coefficient refractory POP,", 1.15 |
Arrhenius temperature coefficient for refractory POP |
"Temperature coefficient for inert/slow refractory POP,", 1.17 |
Arrhenius temperature coefficient for inert/slow refractory POP |
Diagenesis Rates Settings Part 4¶
| Sample Line | Description |
|---|---|
"Phosphorus Sorption Coefficient in Anaerobic Layer m^3/g", 0.01 |
Phosphorus sorption coefficient in the anaerobic layer (m³ g⁻¹) |
"Incremental PO4 partition coefficient," 0 |
Incremental PO₄ partitioning in the aerobic layer |
"Critical oxygen concentration for incremental sorption mg-O2/L", 0.01 |
Critical oxygen level for incremental sorption in layer 1 or aerobic layer |
"NH4 sorption coefficient in aerobic layer m^3/kg", 0.001 |
Ammonia sorption coefficient in aerobic layer (m³ kg⁻¹) |
"NH4 sorption coefficient in anaerobic layer m^3/kg", 0.001 |
Ammonia sorption coefficient in anaerobic layer (m³ kg⁻¹) |
"H2S sorption coefficient in aerobic layer m^3/kg", 0.1 |
Sulfide sorption coefficient in aerobic layer (m³ kg⁻¹) |
"H2S sorption coefficient in anaerobic layer m^3/kg", 0.1 |
Sulfide sorption coefficient in anaerobic layer (m³ kg⁻¹) |
Algorithm for resuspension of particulate organic matter for each region (0: Wind Induced Resuspension, 1: Bottom Scour Resuspension),", 1 |
Choice of resuspension algorithm: 0 = wind induced, 1 = bottom scour |
"Fe(II) Sorption Coefficient in Aerobic Layer m^3/kg", 0.00005 |
Fe(II) sorption coefficient in aerobic layer (m³ kg⁻¹) |
"Fe(II) Sorption Coefficient in Anaerobic Layer m^3/kg", 0.1 |
Fe(II) sorption coefficient in anaerobic layer (m³ kg⁻¹). DiToro (2001) used values of 100 to 3000 L kg⁻¹, corresponding to 0.1 to 3 m³ kg⁻¹. |
"Mn(II) Sorption Coefficient in Aerobic Layer m^3/kg", 0.00005 |
Manganese sorption coefficient in aerobic layer (m³ kg⁻¹) |
"Mn(II) Sorption Coefficient in Anaerobic Layer m^3/kg", 0.1 |
Manganese sorption coefficient in anaerobic layer (m³ kg⁻¹). DiToro (2001) used a value of 8000 L kg⁻¹ (8 m³ kg⁻¹). |
Fe and Mn Oxidation Rates
The Fe and Mn oxidation and reduction rates used in the sediment layers are the same values specified in the main control file (w2_con.npt or w2_con.csv) for Fe and Mn. The kinetic rates are adjusted by temperature using a theta value of 1.05.
Sediment Flux Output Settings¶
| Sample Line | Description |
|---|---|
"Write sediment fluxes,", .TRUE. |
Switch to write sediment fluxes. .TRUE. or .FALSE. |
I/O Control¶
| Sample Line | Description |
|---|---|
"Frequency of Sediment Diagenesis Output in days,", 1.0 |
Frequency that sediment diagenesis output is written to output files (days) |
Temperature Calculations¶
| Sample Line | Description |
|---|---|
"Sediment Temperature Computations=1 (internal calcs or =2 neighboring water)" |
Controls sediment temperature calculation. If set to 1, the sediment temperature uses the temperature defined in the control file and the adjacent water temperature to influence the temperature in the aerobic and anaerobic layers. If set to 2, the adjacent water temperature is used for the sediment temperature. |
Since sediment processes are temperature dependent, the sediment temperature prediction should be reviewed. The initial temperature for both the aerobic and anaerobic layers is set in this input file. The aerobic layer temperature will closely mimic the water temperature in that cell, and the anaerobic layer temperature will approach the sediment temperature (TSED) using the sediment heat exchange coefficient (CBHE).
An example of a model simulation using an initial temperature of 4 °C, CBHE=0.3 W m⁻² °C⁻¹ (default), and Tsed=13.5 °C is shown in Figure 41. It takes about a year to approach the sediment temperature, hence the 4 °C initial temperature was probably too low for the anaerobic layer. The connectivity between the heat transfer between the two layers is dependent on the pore water diffusion coefficient set in the diagenesis input file. When it is close to molecular, there is little connectivity for temperature between the two layers.
Output Subdirectory¶
| Sample Line | Description |
|---|---|
"Subdirectory for Sediment Diagenesis Output (no quotes needed if no spaces in name)" |
If blank, the program writes all sediment diagenesis output files to the root directory. Otherwise, specify a subdirectory name (e.g., .\SedDiagOutput) to reduce file clutter. |
Ionization Settings¶
These are constants hardcoded in the sediment model.
| Constant | Value |
|---|---|
| Equilibrium constant for NH₄⁺ to NH₃ ionization (pK) | 9.1 |
| Equilibrium constant for HS⁻ to H₂S ionization (pK) | 9.0 |
Dissolution Settings¶
These are Henry's law constants hardcoded in the sediment model.
| Constant | Value |
|---|---|
| Henry's constant for NH₃d to NH₃g (atm M⁻¹) | 0.0179 |
| Henry's constant for CH₄d to CH₄g (atm M⁻¹) | 469 |
| Henry's constant for H₂Sd to H₂Sg (atm M⁻¹) | 10 |
| Henry's constant for CO₂d to CO₂g (atm M⁻¹) | 29 |
pH Buffering Input File¶
The pH buffering input file (pH_buffering.npt) provides parameters for dynamic computation of alkalinity. The descriptions of file inputs for the pH and alkalinity routines have been adapted from Sullivan et al. (2013). The variable PHBUFC turns ON/OFF the use of enhanced pH buffering, and NALKC turns ON/OFF the use of non-conservative alkalinity.
Variables¶
| Variable | Description |
|---|---|
PHBUFC |
ON/OFF: specifies if enhanced pH buffering is used |
NALKC |
ON/OFF: specifies if non-conservative alkalinity is used |
NH4BUFC |
ON/OFF: specifies whether ammonia/ammonium is included in pH buffering |
PO4BUFC |
ON/OFF: specifies whether phosphoric acid is included in pH buffering |
OMBUFC |
ON/OFF: specifies whether organic matter is included in pH buffering. ON includes both DOM and POM; OFF includes only DOM. |
OMTYPE |
DIST or MONO: DIST specifies one or more Gaussian distributions of pKa values; MONO specifies a collection of discrete pKa values |
NAG |
Number of acid/base groups to model, either as means of Gaussian distributions of pKa values or as discrete monoprotic acids |
POMBUFC |
ON/OFF: specifies whether POM is included in OM buffering |
SDEN |
Site density, in moles of acid/base sites per mole of carbon in OM |
PK |
pKa values (negative log10 of the acid dissociation constant), specified as the mean of a distribution or a discrete value |
PKSD |
Standard deviation for a Gaussian distribution of pKa values (ignored when OMTYPE = MONO) |
Example¶
Enhanced pH Buffering Input File for CE-QUAL-W2
DYNPHALK PHBUFC NCALKC
ON
BUFTYPE NH4BUFC PO4BUFC OMBUFC
OM TYPE OMTYPE NAG POMBUFC
DIST 2 OFF
DENSITY SDEN SDEN SDEN SDEN SDEN SDEN SDEN SDEN
SDEN
0.14 0.10
pK VALS PK PK PK PK PK PK PK PK
PK
4.5 9.6
STD DEV PKSD PDSD PDSD PDSD PDSD PDSD PDSD PDSD
PDSD
1.2 1.0
Bed Consolidation Rate Input File¶
If desired, the user can specify the bed consolidation rate as a time-varying input. Input file names are specified by the user in w2_diagenesis.npt. The bed consolidation rate input file is a time series input file with a column header line that is skipped. Additional comment lines can be added at the beginning of the file if they begin with a $. This is a fixed-format file.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2 | Consolidation |
Bed consolidation rate | m day⁻¹ |
Example¶
$Bed consolidation (m/d) rate
JDay Consolidation
1.000 0.01370
2.000 0.01370
3.000 0.01370
4.000 0.01370
5.000 0.01370
6.000 0.01370
Atmospheric Deposition Input File¶
The atmospheric deposition input file (atm_deposition_wbX.csv) specifies wet and dry atmospheric deposition rates for each constituent for each waterbody. Atmospheric deposition is a process where either dry or wet deposition (rain or snow) of pollutants contribute to the mass loading of a pollutant. Dry deposition can include dust or particle transport associated with the pollutant. The processes of atmospheric deposition include Hg, P, N, and other state variables in CE-QUAL-W2.
For the CE-QUAL-W2 model, the mass deposition rate is in units of kg km⁻² year⁻¹. This unit is often reported by researchers and is more practical than g m⁻² s⁻¹. Internally in the model, unit conversions are applied such that the internal source/sink term units are g s⁻¹ after multiplying by the area. For a variable with units of µg m⁻³ (ng L⁻¹), the atmospheric deposition rates are in units of mg km⁻² year⁻¹.
The mass load is applied to each waterbody, rather than to each branch, since one would expect the areal deposition to be inclusive of branches and segments making up a waterbody.
The input format is similar to all other time series input files, in CSV format. The $ character should be the first character in cell A1.
| Field | Variable | Description | Units |
|---|---|---|---|
| 1 | JDAY |
Julian day | days |
| 2+ | Constituent names | Atmospheric mass deposition rate for each active constituent | kg km⁻² year⁻¹ |
Typical Atmospheric Deposition Rates¶
The following table summarizes typical atmospheric deposition rates reported in the literature for mercury (Hg), phosphorus (P), and nitrogen (N). These values provide guidance for setting deposition rates in the absence of site-specific measurements.
| Constituent | Deposition Rate | Units | Source / Notes |
|---|---|---|---|
| Total Hg (wet) | 5--15 | mg km⁻² year⁻¹ | NADP Mercury Deposition Network, USA |
| Total Hg (dry) | 5--20 | mg km⁻² year⁻¹ | Varies by region and proximity to sources |
| Total P (wet) | 5--30 | kg km⁻² year⁻¹ | Cole and Wells (2006); Anderson and Downing (2006) |
| Total P (dry) | 1--15 | kg km⁻² year⁻¹ | Site-specific; agricultural areas may be higher |
| NH₄-N (wet) | 100--400 | kg km⁻² year⁻¹ | NADP National Trends Network |
| NO₃-N (wet) | 100--350 | kg km⁻² year⁻¹ | NADP National Trends Network |
| Total N (wet + dry) | 300--1500 | kg km⁻² year⁻¹ | Varies by proximity to urban/agricultural sources |
Units for Trace Constituents
For constituents with units of µg m⁻³ (ng L⁻¹), such as mercury, the atmospheric deposition rates should be specified in units of mg km⁻² year⁻¹ rather than kg km⁻² year⁻¹.
Example (CSV Format)¶
$atm_deposition_wb1.csv
Atmospheric mass input, kg/km2/year
JDAY,PO4,NH4,NO3,LPOMP,RPOMP
1,14,0.6,2,1,1
100,16,0.7,2,1,1
250,18,0.6,2,1,1
365,14,0.7,2,1,1
400,14,0.6,2,1,1
Constriction Input File¶
The constriction input file (w2_constriction.csv) allows the user to specify a maximum width between segments. This does not affect the width or volume of the segments; it only affects the right-hand side face width. Whereas an internal weir blocks all flow, a constriction allows for a reduced area and eliminates the need to insert a short segment of small width that can cause stability issues and a reduced time step.
File Format¶
The file has the following structure:
- Line 1: Comment
- Line 2:
ONorOFF, number of constrictions - Line 3: Comment
- Line 4+: Repeated for each constriction: segment number, maximum width in m
Example¶
Constriction input file
ON,2,,,
Segment # of constriction, Maximum width in m of constriction
15,50.0,
28,35.0,
The W2 code looks for the file w2_constriction.csv and if it is found, the model reads the file and applies the specified maximum width to the right-hand side width between the specified two segments. This could be appropriate for bridge piers or other constrictions between two segments that might affect the flow between segments.
Hypolimnetic Aeration Input File¶
The hypolimnetic aeration input file (w2_aerate.npt) specifies parameters for the hypolimnetic aeration algorithm. The model reads this file if the AERATEC control is set to ON in the control file (w2_con.npt or w2_con.csv). This input file allows the user to:
- Add oxygen mass to specified model segments and layers
- Control the oxygen mass added by using oxygen probes located anywhere in the model domain
- Increase the mixing associated with the oxygen input
This algorithm does not model the dynamics of a bubble diffuser. It allows the user to experiment with delivering oxygen at given rates to parts of the reservoir domain. This is useful for planning, since it allows the user to determine the amount of oxygen required to meet a water quality target.
File Format¶
| Parameter | Values | Description |
|---|---|---|
AERATION |
ON/OFF |
Turn on or off aeration/mixing |
NAER |
Integer (1 to max) | Number of aerators. Each aerator can also represent the same aerator turned ON/OFF at different times. |
OUTPUTFILE |
Filename | Output file name |
SEG# |
Integer | Segment number where the aerator is located |
KTOP# |
Integer | Top layer number of the aerator (one aerator can span more than one layer) |
KBOT# |
Integer | Bottom layer number of the aerator |
MASSRT |
Real | Rate of mass injection of O₂ (kg O₂ day⁻¹) |
TIMON |
Real (Julian day) | Start date for the aerator |
TIMOFF |
Real (Julian day) | End date for the aerator |
DZFACT |
Real (1 to 100) | Factor to multiply the vertical mixing coefficient. A value of 1 uses the model-predicted vertical mixing coefficient. A value of 100 increases mixing by 100x. |
O2OFF |
Real (mg L⁻¹) | DO concentration at the probe location at which the aerator turns OFF |
O2ON |
Real (mg L⁻¹) | DO concentration at the probe location at which the aerator turns ON |
iprb |
Integer | Segment number of the DO probe for controlling the aerator |
kprb |
Integer | Layer number of the DO probe for controlling the aerator |
Mixing Factor
Set DZFACT = 1 if the aerator does not mix the water column. If DZFACT > 1, the vertical eddy diffusivity (DZ) is increased as a result of additional vertical mixing induced by the aerator. Use a sensitivity analysis to evaluate the effect of increased vertical mixing on aerator efficiency.
Example¶
CONTROL FILE FOR Hypolimnetic aeration
NAER OUTPUTFILE # of aerators
1 aeration.opt
kg O2/d
SEG# KTOP# KBOT# MASSRT TIMON TIMOFF DZFACT O2OFF O2ON iprb kprb
31 25 30 1000. 1.0 125.0 5. 12.5 11.0 31 30
SYSTDG Input Files¶
SYSTDG (System Total Dissolved Gas) is an empirical correlation for TDG at spillways at hydropower facilities. A detailed description of this algorithm is provided in the User Manual Part 2 under Dissolved Oxygen/Dam Reaeration.
W2 SYSTDG Control File¶
The SYSTDG control file, w2_systdg.npt, contains parameters that allow the user to configure the characteristics of spillways, powerhouses, and fish passage within the model. The control file is set up as a text file in fixed format with 8-digit numbers or characters. Each card is required although there may be either zero or no values associated with the card. The code looks for the file w2_systdg.npt. If it exists, it is read.
TITLE C¶
The first input is a title containing 10 title cards for each simulation that can be used to identify various types of output. Each line may contain up to 72 characters of text.
SYSTDGC Card¶
| Variable | Description |
|---|---|
SYSTDG |
ON/OFF control to allow calculation of tailrace TDG production using SYSTDG equations |
N2BND |
ON/OFF control to specify N₂ boundary conditions with percentage of saturation. If ON, N₂ in boundary conditions must be specified as percentage of saturation. |
DOBND |
ON/OFF control to specify DO boundary conditions with percentage of saturation. If ON, DO in boundary conditions must be specified as percentage of saturation. |
TDGTA |
ON/OFF control to allow performing spillway operations set by TDG targets. If ON, a TDG target control file (w2_tdgtarget.npt) must be provided. |
GATE GAS Card¶
The next lines describe the gates used. The number of gates (NGT) described in the w2_con.npt (or w2_con.csv) is used to determine the number of lines to read.
| Variable | Description |
|---|---|
GTTYPE |
Gate type: SPB (spillbay gate), POW (powerhouse gate), FLD (fish collector gate), RO (regulating outlet gate) |
SPBC |
Spill pattern specific coefficient in SYSTDG (only necessary if GTTYPE = SPB) |
For the individual gate, GASGTC in the control file must be set to ON in order to calculate the TDG production using SYSTDG equations.
GATE Card¶
| Variable | Description |
|---|---|
FBE |
Forebay elevation (feet). If FBE > 0, two sets of coefficients (P1, P2, P3, P4) are required for the spillway TDG production equations. |
TWCE |
Tailwater channel elevation (feet) |
TWEMOD |
Integer parameter defining whether TWE will be recalculated (0 = user-defined, 1 = computed using twe = twe_obs * 0.934 + 4.94) |
TWE |
Averaged tailwater elevation (feet) |
TWETS |
ON/OFF logic parameter defining if a time series file with observed tailwater elevation is given |
TDGLOC |
Character parameter: SPB (spillbay) or REL (tailrace) for TDG calculated location |
GATE TDG Card¶
GATE TDG TDGEQ P1 P2 P3 P4 P1 P2 P3 P4
SPB1 3 1.0 1.0 0.671 23.5 400.0 0.0 -0.020 0.0
RO 1 95.791 1.07193 178.852 -0.51
| Variable | Description |
|---|---|
TDGEQ |
Equation number (1 to 5) for calculating spillway TDG production |
P1, P2, P3, P4 |
Spillway production coefficients (first set). If FBE > 0, a second set is also required. |
GATE ENT Card¶
| Variable | Description |
|---|---|
TDGENT |
Equation number (0, 1, 2, 3) for calculating powerhouse flow entrainment. Only spillway TDG is calculated if TDGENT = 0. |
E1, E2 |
Coefficients for the entrainment equation. If FBE > 0, two sets are required. |
TWETS FILE Card¶
| Variable | Description |
|---|---|
TWEFN |
File name for observed time series tailwater elevation (feet). Required if TWETSC = ON. |
Example SYSTDG Control File¶
CE-QUAL-W2 SYSTDG
TITLE C ...............................TITLE.................................
1 SYSTDG input control file
2
3 MISCELL SYSTDG N2BND DOBND TDGTA
4
5
6 5 TDG production calculation equations
7 3 entrainment flow calculation equations
8
9 John Day Pool, Columbia River
10
SYSTDGC SYSTDG N2BND DOBND TDGTA
ON ON ON OFF
GATE GAS GTTYPE SPBC
SB1 SPB 1.0
SB2 SPB 1.0
RO1 RO 1.0
RO2 RO 1.0
POW1 POW 1.0
POW2 POW 1.0
GATE FBE TWCE TWEMOD TWE TWETS TDGLOC
SPB1 -1.0 135.0 0 160.0 ON REL
GATE TDG TDGEQ P1 P2 P3 P4 P1 P2 P3 P4
SPB1 3 1.0 1.0 0.671 23.5 400.0 0.0 -0.020 0.0
RO 1 95.791 1.07193 178.852 -0.51
GATE ENT TDGENT E1 E2 E1 E2
SPB1 1 0.150 0.0 0.0 0.0
TWETS FILE...............................TWEFN...............................
SPB1 TWE1.npt
TDG Target Control File¶
The TDG target control file is named w2_TDGtarget.csv and must include all inputs required for performing spillway operation set by a TDG target. It contains parameters that allow the user to allocate spill flows into the powerhouse to reduce spillway TDG and meet user-specified TDG targets. The control file is set up as a comma-delimited format. Each row is required, although there may be either zero or no values associated with some parameters.
TDGTRGET Card¶
| Variable | Description |
|---|---|
TSFREQ |
Frequency (fraction of a day) at which the spill flow allocation calculations for a TDG target are updated |
TSCONV |
Convergence criterion for the iterative spill flow allocation solution, constrained to be 0.1 or less but nonzero |
TDGTRGET YEARLY Card¶
| Variable | Description |
|---|---|
YEARLY |
ON/OFF: defines whether start and end dates for spill flow allocation should be repeated each year |
TSTR |
Start date (Julian day) for spill flow allocation calculations |
TEND |
End date (Julian day) for spill flow allocation calculations |
TTARGET |
Constant TDG target (%) to meet for that period of dates |
TSDYN |
ON/OFF: defines if a time series of TDG targets is used. If ON, the model overrides TTARGET and uses a user-specified time series from an external file. |
ITER |
Maximum number of flow allocation iterations allowed for numerical convergence |
PRIDYN |
ON/OFF: defines if priority of spill bays is dynamically set by their spill flow rates |
DYNGRP |
Number of priority groups to dynamically allocate spill flow |
PRIORITY Card¶
| Variable | Description |
|---|---|
BAY# |
Priority setting for each spill bay. A value of -1 means the bay is not adjusted. Values >= 1 are interpreted as higher priorities with lower input values. |
MINFRACT Card¶
| Variable | Description |
|---|---|
MINFRC# |
Minimum flow fraction (0 to 1) specifying the minimum fraction of total spill flow through that bay. If specified as a negative number, this input is interpreted as a minimum flow rate (m³ s⁻¹). |
MAXFLOW Card¶
| Variable | Description |
|---|---|
PHMAX# |
Maximum available powerhouse capacity for spill flow allocation (m³ s⁻¹). A zero means that no criterion is specified. |
TARGET FILE Card¶
| Variable | Description |
|---|---|
| Filename | If TSDYN is ON, this is the time series file of TDG targets. The file format is consistent with other W2 time series input files. |
Example TDG Target Time Series File¶
Graph Input File¶
The file graph.npt is required only when using the fixed-format control file (w2_con.npt). When using the CSV control file (w2_con.csv), the graph.npt file is not needed because the equivalent information is included directly in the CSV control file tabs.
The file controls output variable formats, multipliers, and plotting ranges. It contains three sections:
-
Hydrodynamic variables (HFMT/HMULT): Each line specifies the Fortran output format (
HFMT), output multiplier (HMULT), and minimum/maximum values for plotting. Hydrodynamic variables include water surface elevation, temperature, horizontal velocity, vertical velocity, and other physical variables. -
Active constituents (CMULT): Each line specifies the output format (
FMTC), concentration multiplier (CMULT), and minimum/maximum values for each active constituent. TheCMULTmultiplier is applied to constituent concentrations before writing to output files (TSR, SNP, profile, contour, spreadsheet). For example, setCMULT= 1000.0 to convert from g m⁻³ to mg m⁻³ for nutrient values. -
Derived constituents (CDMULT): Each line specifies the output format (
FMTCD), derived multiplier (CDMULT), and minimum/maximum values for each derived constituent. TheCDMULTmultiplier functions identically toCMULTbut applies to derived variables.
Deprecated Fields
The minimum and maximum plotting fields in graph.npt were originally used by older post-processing tools. These fields are still read by the code but have limited use with current post-processing software. Set them to reasonable values or zero.
Multiplier Usage
The concentration multiplier CMULT is a conversion factor applied to the output. Set CMULT = 1000.0 to convert from g m⁻³ to mg m⁻³ for nutrient values. The multiplier is applied to TSR, SNP, and other output files, but is not applied to WDO output files.
Tecplot Input File¶
The file w2_tecplotbr.csv specifies which branches are output to the Tecplot contour plot file. It contains:
- Comment line
- Number of branches to output
- Comment line
- Branch numbers (comma separated)
# of branches to output to TECPLOT
2
Put the branches you want to be output to TECPLOT on the next line separated by a comma
1,2
Lake River Contour Plots Input File¶
The lake_river_contour.csv input file specifies parameters for generating lake and river contour plots. The model senses the presence of this file and activates the feature automatically.
File Structure¶
The file is organized as follows:
- Control line:
ONorOFFto enable or disable contour output - Lake contour parameters:
- Number of lake contours (maximum 20) and output format (1 or 2)
- For each lake contour: segment number, start Julian day, and output frequency (days)
- River contour parameters:
- Number of river contours (maximum 20) and output format (1 or 2)
- For each river contour: start branch, end branch, start Julian day, and output frequency (days)
Output Formats¶
Two output formats are available:
- Format 1: Writes a single output file per contour location containing elevation, distance, temperature, velocity, and all active constituents at each output time. This format is suitable for creating time-depth contour plots at a single segment (lake) or distance-depth contour plots along a branch (river).
- Format 2: Writes separate output files for each variable, which can simplify post-processing for specific constituents.
Example¶
In this example, two lake contour locations (segments 15 and 30) and one river contour (branches 1 through 2) are specified, each starting at Julian day 1.0.
Algae Vertical Migration Input File¶
The w2_AlgaeMigration.csv input file describes parameters for the vertical migration model of Overman (2019). This file template is in the Excel input file as a tab named w2_AlgaeMigration. The parameter AVERTM is read in from the control file for each algae group. If AVERTM is ON for any group, this input file is read.
File Structure¶
The file contains the following lines (repeated for each algae group that migrates):
| Line | Description |
|---|---|
| AlgaeMigration: ON/OFF | Turns algae migration ON or OFF for all algae groups. This supersedes the AVERTM control in the main control file. |
| NumAlgaeGroups# of algae groups that migrate | Number of algae groups that will migrate vertically, and debug output switch (1 = ON, 0 = OFF) |
| NumMigrateIntervals | Number of time intervals for algal migration (Models 1 and 2 only) |
| JDAYStart | Start Julian day of each migration interval |
| JDAYend | End Julian day of each migration interval |
| ContinuumModel | Migration model to use: 1 = velocity time, 2 = velocity time and space, 3 = density growth, 4 = density growth Visser |
Model 1 and 2 Parameters (Velocity-Based)¶
| Parameter | Description |
|---|---|
Amplitude(m) |
Migration amplitude (m day⁻¹) |
PhaseShift(radians) |
Phase shift of the daily migration cycle |
CalibrationCoefficientExtinction |
Calibration coefficient (Model 2 only) |
DepthCalcOnOff(1-ON/0-OFF) |
Switch for depth calculation |
ExpDepth(m) |
Exponential depth parameter |
DepthLimitOnOff(1-ON/0-OFF) |
Switch to impose depth limit on migration |
DepthLimit(m) |
Depth limit (m) |
LossFraction |
Fraction of biomass lost at the depth limit |
Model 3 Parameters (Density Growth)¶
| Parameter | Description |
|---|---|
ColonyRadius(m) |
Colony radius (m) |
MinColonyDen (kg m⁻³) |
Minimum colony density |
MaxColonyDen (kg m⁻³) |
Maximum colony density |
InitColonyDenSurf (kg m⁻³) |
Initial colony density at surface |
InitColonyDenBot (kg m⁻³) |
Initial colony density at bottom |
CompIrrad (W m⁻²) |
Compensation irradiance |
DecayTimeConstant (day⁻¹) |
Decay time constant |
DecayTimeStep (s) |
Decay time step |
CoeffDenIncr (kg m⁻³ s⁻¹) |
Coefficient for density increase |
CoeffDenDecr (kg m⁻³ s⁻¹) |
Coefficient for density decrease |
DepthLimitOnOff |
Depth limit switch |
DepthLimit(m) |
Depth limit (m) |
LossFraction |
Loss fraction at depth limit |
Model 4 Parameters (Density Growth Visser)¶
Model 4 is the Visser density migration model using the equations described in Visser et al. (1997). These parameters describe colony density changes based on irradiance.
Example File Format¶
AlgaeMigration: ON/OFF
ON
NumAlgaeGroups# of algae groups that migrate,Debug Output(1-ON/0-OFF)
1,1
NumMigrateIntervals - # of intervals for algal migration (Models 1 and 2 only)
2
JDAYStart - start of each migration interval
100,465
JDAYend
250,610
ContinuumModel: 1 - velocity time, 2 - velocity time and space, 3 - density growth, 4 - density growth (Visser)
1
Amplitude,PhaseShift,CalibrationCoefficientExtinction,DepthCalcOnOff(1-ON/0-OFF),ExpDepth,DepthLimitOnOff(1-ON/0-OFF),DepthLimit,LossFraction
2,1.570796,0,,,,25,0.05
ColonyRadius,MinColonyDen,MaxColonyDen,InitColonyDenSurf,InitColonyDenBot,CompIrrad,DecayTimeConstant,DecayTimeStep,CoeffDenIncr,CoeffDenDecr,MinDenDecSurf,MinDenDecBot,DepthLimitOnOff,DepthLimit,LossFraction
5.00E-05,920,1085,980,920,5,1000,0.0115,0.005,0,30,0.1
AlgeGroup - repeat for each NumAlgeGroups
Repeated Groups
The set of parameters from NumMigrateIntervals through the model-specific parameters are repeated for each algae group that migrates vertically.
Algae Toxin Input File¶
The w2_Algae_Toxin.csv input file describes parameters for modeling algal toxin production from cyanobacteria. This file template is in the master Excel file under the tab w2_Algae_Toxin.csv. A description of the conceptual model for toxins is in Part 2 of the User Manual. This file is read when any of the toxin state variables are active.
File Structure¶
The first line of the file controls the overall toxin computation and debug output:
| Parameter | Description |
|---|---|
TOXINCONTROL: ATOX |
ON/OFF for all algae toxins (turn on/off toxin production in the model) |
ATOX_DEBUG |
ON/OFF for debugging output (writes to algae_toxin_debug.csv) |
For each of the 4 toxin groups (microcystin, cylindrospermopsin, anatoxin-A, saxitoxin), the following parameters are required. Each CTP and CTB value is specified for each algae group (ALG1, ALG2, ALG3, etc.).
| Parameter | Description |
|---|---|
CTP |
Fraction of algae concentration producing toxin. For each algal group, specify whether that group produces toxin as a fraction of its biomass. If CTP = 0, no toxin is produced by that algal group. |
CTB |
Ratio of intracellular toxin to dry weight biomass (mg toxin mg⁻¹ DW) |
CTR |
Release rate of intracellular toxin to extracellular toxin (day⁻¹) |
CTD |
Extracellular decay rate (day⁻¹) |
Typical Parameter Ranges¶
The following ranges provide guidance for initial parameterization. See Garstecki (2021) for a comprehensive review of parameter ranges and calibration strategies for algal toxin modeling in CE-QUAL-W2.
| Parameter | Microcystin (MC) | Cylindrospermopsin (CYN) | Anatoxin-A (ATX-A) | Saxitoxin (STX) |
|---|---|---|---|---|
CTB (mg toxin mg⁻¹ DW) |
0.0005 to 0.024 | 0.0005 to 0.007 | 0.001 to 0.01 | 0.001 to 0.004 |
CTR (day⁻¹) |
Approx. 0 to 1 times excretion rate | Approx. 1 to 2 times excretion rate | Approx. 0 to 1 times excretion rate | Approx. 0 to 1 times excretion rate |
CTD (day⁻¹) |
0.05 to 0.2 | 0.01 to 0.06 | 0.05 to 0.2 | 0.01 to 0.07 |
Reference
Garstecki, T. (2021). Modeling cyanotoxin production in CE-QUAL-W2: parameter estimation and sensitivity analysis. See Part 2 of the User Manual for the complete conceptual model description.
Example File Format¶
TOXINCONTROL: ATOX (turn ON/OFF all algae toxins),ATOX_DEBUG (turn on debugging output),ON/OFF,DEBUG
ON,ON
MICROCYSTIN,,ALG1,ALG2,ALG3
CTP_MC, fraction of algae concentration producing MC,,0.5,0.25,0.3
CTB_MC, ratio of intracellular toxin to dry weight biomass (mg toxin/mg DW),,0.1,0.2,0.2
CTR_MC, release rate, day-1,,0.5
CTD_MC, extracellular decay, day-1,,0.1
CYLINDROSPERMOPSIN,,ALG1,ALG2,ALG3
CTP_CYN, fraction of algae concentration producing CYN,,1,0,0
CTB_CYN, ratio of intracellular toxin to dry weight biomass (mg toxin/mg DW),,0.25,0.2,0.2
CTR_CYN, release rate, day-1,,0.5
CTD_CYN, extracellular decay, day-1,,0.25
ANATOXIN-A,,ALG1,ALG2,ALG3
CTP_ATX, fraction of algae concentration producing ATX,,0.5,0.25,0.3
CTB_ATX, ratio of intracellular toxin to dry weight biomass (mg toxin/mg DW),,0.1,0.2,0.2
CTR_ATX, release rate, day-1,,0.5
CTD_ATX, extracellular decay, day-1,,0.1
SAXITOXIN,,ALG1,ALG2,ALG3
CTP_STX, fraction of algae concentration producing STX,,0.5,0.25,0.3
CTB_STX, ratio of intracellular toxin to dry weight biomass (mg toxin/mg DW),,0.1,0.2,0.2
CTR_STX, release rate, day-1,,0.5
CTD_STX, extracellular decay, day-1,,0.1
Column A
Column A in the Excel template is not written to the w2_Algae_Toxin.csv input file. It is used only for descriptive labels in the spreadsheet.
Dissolved Gas Added to Turbine Input File¶
This file is a time series file of Julian day and a fraction multiplied by the incoming turbine dissolved oxygen. This file is assumed to be a step function input. The file is either for a spillway (w2_spX_DO.csv, where X is the spillway number) or for a gate (w2_gtX_DO.csv, where X is the gate number).
The fraction will usually be greater than or equal to 1.0. If it is 1.0, the inflow oxygen is unchanged. If it is 1.1, the inflow oxygen is increased by 10%. Other parameters for the spillway or gate dictate whether the outflow oxygen is limited or not by 100% saturation.
The file has the following format: the first 3 lines are ignored and then there is a time series of Julian day and fraction.
| Field | Variable | Description |
|---|---|---|
| 1 | JDAY |
Julian day |
| 2 | FRAC |
Fraction multiplied by incoming dissolved oxygen (DO) |
Example¶
Automatic Port Selection¶
The CE-QUAL-W2 model reads the file w2_selective.npt if the SELECTC control is set to ON or USGS in the control file (w2_con.npt or w2_con.csv). This input file allows the model user to:
- Automatically choose a withdrawal port elevation based on meeting required temperature targets
- Print temperature of individual outlets rather than combining them together
- Print the volume of the reservoir at specified temperature targets
Note
If DYNSTRUC is set to ON in the control file, the port selection in this file is ignored when there is not an active rule. When a rule is inactive, the input file of elevations (when DYNSTRUC=ON) will control the centerline of the structure.
SELECTC = ON¶
When SELECTC='ON', the input file is named w2_selective.npt. There are three independent sections: (1) adjust an existing structure to meet a temperature target, (2) use two structures to blend water to meet a temperature target, and (3) print out temperature volumes in the reservoir at specified temperatures.
Output Frequency¶
Selective input control file
Temperature outlet control - frequency of output for temperature
OUT FREQ TFRQTMP
0.02083
TFRQTMP (Real F8.0) is the Julian day frequency of the output for the temperature of each structure outlet. The value must be in columns 9-16 in Fortran F fixed format. A value of 0.02083 Julian day corresponds to every 30 minutes.
Dynstr1 Card¶
| Variable | Format | Description |
|---|---|---|
CONTROL |
Character A8 | ON or OFF: controls whether the algorithm is used |
NUM |
Integer I8 | Number of selective withdrawal structures. Each subsequent line defines one structure |
FREQ |
Real F8.0 | Julian day frequency for checking the temperature criteria. Set to 1.0 to check daily, 0.5 for every 12 hours |
Dynstr2 Card¶
DYNSTR2 ST/WD JB JS/NW YEARLY TSTR TEND TEMP NELEV ELEV1 ELEV2
1 ST 1 1 ON 010. 045. 15.0 2 210. 190.
2 ST 2 1 ON 180. 300. 20.0 1 95.0
| Variable | Format | Description |
|---|---|---|
ST/WD |
Character A8 | ST for a structure, WD for a withdrawal |
JB |
Integer I8 | Branch number of the structure. Ignored for a withdrawal |
JS/NW |
Integer I8 | Outlet number (if ST/WD='ST') or withdrawal number (if ST/WD='WD') |
YEARLY |
Character A8 | ON or OFF. If ON, Julian days TSTR and TEND are applied yearly (must be 1--366). If OFF, applied only once |
TSTR |
Real F8.0 | Beginning Julian day for starting selective withdrawal |
TEND |
Real F8.0 | Ending Julian day for ending selective withdrawal. After TEND, the outlet elevation reverts to the control file value |
TEMP |
Real F8.0 | Temperature criterion in °C for lowering or raising the structure elevation |
NELEV |
Integer I8 | Number of selective withdrawal elevations (up to 100) |
ELEV1, ELEV2, ... |
Real | Elevations in m of the selective withdrawal structures, ordered from high to low |
The model raises the elevation if the temperature criterion TEMP is above the actual temperature, or lowers the elevation if the actual temperature is above TEMP.
Monitor Card¶
| Variable | Format | Description |
|---|---|---|
ISEG |
Integer I8 | Segment number for temperature monitoring. If < 0, the absolute value must equal the withdrawal number segment in the WITH OUT card, and all withdrawals at that segment are combined. If = 0, uses the mixed outlet temperature of the structure/withdrawal. If > 0, uses the segment number as the monitoring point |
ELEV |
Real F8.0 | Elevation for temperature monitoring. A negative number indicates a layer number. If ISEG=0 or ISEG<0, this is ignored |
DYNSEL |
Character A8 | ON or OFF. If ON, a time-varying temperature criterion file named dynselectiveX.npt (where X is the structure number) is read |
When DYNSEL is ON, the time-varying temperature file has the following format:
Dynamic selective input temperature input file 'dynselective1.npt'
JDAY TEMP
1.000 10.0
50.000 12.0
150.000 15.0
200.000 20.0
265.000 15.0
365.000 10.0
This time series is treated as a step function input with no linear interpolation between successive values. If the file begins with a $ character, it is read as comma-delimited CSV format.
Auto Elevcontrol Card¶
ELEVCONTROL (Character A8) is either ON or OFF. When ON, the elevation of the selective withdrawal structure is reduced as the water level lowers, ensuring the water surface is always above the outlet elevation. This card is repeated for each outlet (number defined by NUM in the DYNSTR1 card).
Split1 Card¶
| Variable | Format | Description |
|---|---|---|
CNTR |
Character A8 | ON or OFF: activates the flow-splitting algorithm |
NUM |
Integer I8 | Number of outlet pairs to consider. Outlets must be from the same branch and defined in the control file |
Split2 Card¶
SPLIT2 ST/WD JB YEARLY TSTR TEND TTARGET NOUTS JS1/NW1 JS2/NW2 ELCONT DYNSPLT
1 ST 2 ON 010. 045. 12. 2 2 3 OFF ON
| Variable | Format | Description |
|---|---|---|
ST/WD |
Character A8 | ST for a structure, WD for a withdrawal |
JB |
Integer I8 | Branch number. Ignored for a withdrawal |
YEARLY |
Character A8 | ON or OFF: apply TSTR and TEND yearly |
TSTR |
Real F8.0 | Beginning Julian day for flow splitting |
TEND |
Real F8.0 | Ending Julian day for flow splitting |
TTARGET |
Real F8.0 | Temperature target (°C) at the branch outlet centerline |
NOUTS |
Integer I8 | Number of outlets to apportion flows (current limit is 2) |
JS1/NW1 |
Integer I8 | Structure or withdrawal number for the upper outlet |
JS2/NW2 |
Integer I8 | Structure or withdrawal number for the lower outlet |
ELCONT |
Character A8 | ON or OFF. If ON, the top outlet elevation follows the water surface when it drops below the outlet centerline |
DYNSPLT |
Character A8 | ON or OFF. If ON, a time-varying temperature target file (dynselectiveX_splt.npt) is used instead of TTARGET |
The decision rules for apportioning flows between two outlets are:
| Rule | Condition |
|---|---|
| 1 | If T_JS1 > T_target and T_JS2 > T_target, take all flow from lower outlet (JS2) |
| 2 | If T_JS1 < T_target and T_JS2 < T_target, take all flow from upper outlet (JS1) |
| 3 | If T_JS1 > T_target and T_JS2 < T_target, apportion flow based on flow balance equation: Q_JS1 = Q_sum(T_target - T_JS2) / (T_JS1 - T_JS2) and Q_JS2 = Q_sum - Q_JS1 |
| 4 | If water elevation is below outlet elevation for upper outlet (JS1), take all flow from lower outlet (JS2) |
Thresh1 and Thresh2 Cards¶
THRESH1 TEMPN
2
THRESH2 TCRTWB1 TCRTWB2 TCRTWB3 TCRTWB4 TCRTWB5
1 10.0 10.0 ! 52 deg. F
2 12.5 12.5 ! 60 deg. F
| Variable | Format | Description |
|---|---|---|
TEMPN |
Integer I8 | Number of temperature criteria for each waterbody |
TCRTWBx |
Real F8.0 | Temperature threshold (°C) for each waterbody. The model outputs the volume of the reservoir at or below each threshold |
SELECTC = USGS¶
When SELECTC='USGS', the input file is also named w2_selective.npt but has a different format supporting the USGS blending algorithm. This algorithm supports up to 10 outlets in a blending group. See Rounds and Buccola (2015) for details on the algorithm and example problems.
Two new variables were added to the SPLIT1 input card:
| Variable | Description |
|---|---|
TSFREQ |
Frequency (fraction of a day) at which blending calculations are updated |
TSCONV |
Convergence criterion for the iterative blending solution (fraction of total flow assigned to first-priority outlets; should be 0.1 or less, default 0.005) |
Additional input cards for the USGS algorithm include:
| Card | Variable(s) | Description |
|---|---|---|
SPLIT2 |
TSDYN |
ON or OFF: use time-varying temperature targets from dynsplit_selectiveX.npt |
SPLIT2 |
TSSHARE |
ON or OFF: share releases among set-2 outlets (ON) or choose the best single outlet (OFF) |
SPLITOUT |
JS1/NW1...JS10/NW10 |
Structure or outlet numbers (up to 10) |
DEPTH |
DEPTH1...DEPTH10 |
Nonzero value makes outlet a floating outlet at that depth below the water surface |
MINFRAC |
MINFRC1...MINFRC10 |
Minimum flow fraction (0--1) for each outlet. Negative values are interpreted as minimum flow rates in m³/s |
PRIORITY |
PRIOR1...PRIOR10 |
Integer priority setting. A value of -1 means the outlet is not blended but its temperature effect is accounted for. Values of 0 or greater are blending priorities (lower values = higher priority) |
MINHEAD |
MINHD1...MINHD10 |
Minimum head (depth in m) required for the outlet to be used |
MAXHEAD |
MAXHD1...MAXHD10 |
Maximum head (depth in m). If centerline is deeper than this, the outlet is not used |
MAXFLOW |
MAXFLO1...MAXFLO10 |
Maximum flow in m³/s for each blended outlet |
Example w2_selective.npt file for SELECTC='USGS':
Selective input control file for SELECTC='USGS'
Temperature outlet control - frequency of output for temperature
OUT FREQ TFRQTMP
0.125
Structure outlet control based on time and temperature and branch
DYNSTR1 CONTROL NUM TCDFREQ
OFF 1 0.125
DYNSTR2 ST/WD JB JS/NW YEARLY TSTR TEND TEMP NELEV ELEV1 ELEV2
ELEV3 ELEV4 ELEV5 ELEV6 ELEV7 ELEV8 ELEV9 ELEV10
1 ST 1 1 ON 1.0 151.0 10.0 2 340. 330.
MONITOR LOC ISEG ELEV DYNCEL
1 0 -185 OFF
AUTO ELEVCONTROL
1 OFF
SPLIT1 CNTR NUM TSFREQ TSCONV
ON 1 0.125 0.005
SPLIT2 ST/WD JB YEARLY TSTR TEND TTARGET DYNSEL ELCONT NOUTS TSSHARE
1 ST 1 ON 1. 99999. 12. ON OFF 8 OFF
SPLITOUT JS1/NW1 JS2/NW2 JS3/NW3 JS4/NW4 JS5/NW5 JS6/NW6 JS7/NW7 JS8/NW8 JS9/NW9 JS10/NW10
1 1 2 3 4 5 6 7 8
DEPTH DEPTH1 DEPTH2 DEPTH3 DEPTH4 DEPTH5 DEPTH6 DEPTH7 DEPTH8 DEPTH9 DEPTH10
1 0 0 0 0 0 0 0 0
MINFRAC MINFRC1 MINFRC2 MINFRC3 MINFRC4 MINFRC5 MINFRC6 MINFRC7 MINFRC8 MINFRC9 MNFRC10
1 0 0 0 0 0 0 0 0
PRIORITY PRIOR1 PRIOR2 PRIOR3 PRIOR4 PRIOR5 PRIOR6 PRIOR7 PRIOR8 PRIOR9 PRIOR10
1 2 3 4 5 6 7 8 1
MINHEAD MINHD1 MINHD2 MINHD3 MINHD4 MINHD5 MINHD6 MINHD7 MINHD8 MINHD9 MINHD10
1 2 2 2 2 2 2 2 2
MAXHEAD MAXHD1 MAXHD2 MAXHD3 MAXHD4 MAXHD5 MAXHD6 MAXHD7 MAXHD8 MAXHD9 MAXHD10
1 0 0 0 0 0 0 0 0
MAXFLOW MAXFLO1 MAXFLO2 MAXFLO3 MAXFLO4 MAXFLO5 MAXFLO6 MAXFLO7 MAXFLO8 MAXFLO9 MXFLO10
1 0 0 0 0 0 0 0 0
THRESH1 TEMPN
2
THRESH2 TCRTWB1 TCRTWB2 TCRTWB3 TCRTWB4 TCRTWB5
1 11.11 11.11
2 15.55 15.55
Error Trapping
Error trapping for the USGS blending routine checks the following conditions:
- At least 2 and no more than 10 outlets must be specified for
NOUTSin each blending group on theSPLIT2input card - Any single outlet can only be specified once in each blending group (
SPLITOUTinput card) - Any single outlet can only be specified in one blending group or temperature control device at a time (start and end dates for each group are checked)
- Integer priority specifications must be -1 or greater (
PRIORITYinput card)
Environmental Performance Criteria¶
This section describes the environmental performance criteria input file, which allows the model user to assess model predictions of state variables and how they can be affected by management changes. The model reads the file w2_envirprf.npt if the ENVIRPC control is set to ON in the control file (w2_con.npt or w2_con.csv).
The analysis computes a histogram of the fraction of time and volume during a model run where the selected water quality state variable falls between specified intervals. This input file allows the model user to:
- Compute fraction of the reservoir volume and time associated with velocity, temperature, and depth levels
- Compute fraction of the reservoir volume and time associated with model state variables for water quality
- Compute fraction of the reservoir volume and time associated with model-derived variables for water quality
The analysis produces the following output files (when all options are turned on):
| Output File | Contents |
|---|---|
envrprf_t.csv |
Temperature histogram |
envrprf_v.csv |
Velocity histogram |
envrprf_depth.csv |
Depth histogram |
envrprf_c.csv |
Concentration histogram for state variables |
envrprf_cd.csv |
Concentration histogram for derived variables |
The input file w2_envirprf.npt is CSV (comma delimited) or fixed format. The model checks the file to determine which format is being used.
File Format¶
ENVIRONMENTAL PERFORMANCE CRITERIA CE-QUAL-W2 MODEL
IINTVLS INTVLS SELECTC JDAY1 JDAY2 ISTR1 IEND1 ISTR2 IEND2
1 20 OFF 100. 150. 5 25
Header and Interval Settings¶
The first two lines are ignored and serve as titles.
| Variable | Format | Description |
|---|---|---|
IINTVLS |
Integer I1 | Number of segment intervals for computing histograms (1--9). Setting this to 1 uses all active segments. Each additional interval requires an ISTR and IEND pair |
INTVLS |
Integer I8 | Number of intervals (bins) for the output histogram |
SELECTC |
Character A3 | ON or OFF. If OFF, all days and all active model cells are used. If ON, JDAY1, JDAY2, ISTR1, and IEND1 define the range |
JDAY1 |
Real F8.0 | Start Julian day for the analysis. Use negative values for multi-year runs (e.g., -213 for August start every year) |
JDAY2 |
Real F8.0 | End Julian day for the analysis |
ISTR1 |
Integer I8 | First segment number for the analysis |
IEND1 |
Integer I8 | Last segment number for the analysis |
ISTR2, IEND2 |
Integer I8 | Additional segment interval pairs (up to 9 intervals) |
Velocity, Temperature, and Depth Settings¶
| Variable | Format | Description |
|---|---|---|
VELOCTY |
Character A8 | ON or OFF: compute a histogram of velocities |
VINCR |
Real F8.0 | Velocity increment in m/s |
VTOP |
Real F8.0 | Maximum velocity in the histogram |
TEMPC |
Character A8 | ON or OFF: compute a histogram of temperatures |
TINCR |
Real F8.0 | Temperature increment in °C for histogram bins |
TTOP |
Real F8.0 | Maximum temperature in °C for the histogram output |
DEPTHC |
Character A8 | ON or OFF: compute a histogram of depths in m |
DINCR |
Real F8.0 | Depth increment in m for histogram bins |
DTOP |
Real F8.0 | Maximum depth in m for the histogram output |
Constituent State Variables¶
CST ACTIVE INTSCLE TOPLMIT
TDS OFF 1.00 20.00
WaterAge ON 1.00 20.00
Gen2 ON 1.00 20.00
GEN3 ON 1.00 20.00
ISS1 ON 1.00 20.00
PO4 OFF 1.00 20.00
NH4 OFF 1.00 20.00
...
DO ON 0.50 10.00 ! 26
...
Each constituent state variable has the following fields:
| Variable | Format | Description |
|---|---|---|
ACTIVE |
Character A8 | ON or OFF: include this constituent in the histogram analysis |
INTSCLE |
Real F8.0 | Interval scale (increment) for histogram bins. For DO, a value of 0.5 gives 0.5 mg/L bins |
TOPLMIT |
Real F8.0 | Maximum value for the histogram. For DO with INTSCLE=0.5 and TOPLMIT=10.0, there are 20 bins |
The constituent list follows the standard CE-QUAL-W2 constituent order. The ! character can be used for inline comments.
Derived Variables¶
CST DERI ACTIVE INTSCLE TOPLMIT
DOC OFF 1.00 20.00
POC OFF 1.00 20.00
TOC OFF 1.00 20.00
DON OFF 1.00 20.00
...
SECCHI OFF 1.00 20.00
The derived variables section has the same format as the state variables section. Derived variables include DOC, POC, TOC, DON, PON, TON, TKN, TN, DOP, POP, TOP, TP, APR, CHLA, ATOT, %DO, TDG, Turbidity, TSS, TISS, CBOD, pH, CO₂, HCO₃, CO₃, and SECCHI.
Setting Up Environmental Performance Criteria
When setting up the environmental performance criteria, focus on constituents that are relevant to your management questions. Turn ACTIVE to ON only for variables of interest to minimize output file sizes. Adjust INTSCLE and TOPLMIT to provide appropriate histogram resolution for each variable.
The typical output file is comma delimited and can be opened directly in Excel. The first series of output lines form a histogram of the fraction of volume and time that the variable was in the specified interval. At the end of the column there is a sum of the fractions (which should sum to 1.0) and the last line is the temporal and volume-weighted average over the entire model domain and simulation time period.
Output Files¶
Snapshot File¶
The snapshot file was designed for output to a hard copy printer and contains useful information that can be utilized during model application. The file can be read using any text editor. It is not recommended for graphing; other output files are more suitable for plotting model predictions.
The snapshot file is controlled by the SNP PRINT, SNP DATE, SNP FREQ, and SNP SEG cards. The output is updated to the file based on the update dates [SNPD] and frequency [SNPF] specified in the control file. The file contains the following sections for each output time.
Title Cards¶
The first lines of output contain the information specified in the Title Card for identifying the run plus the date and time that the run occurred. This information will appear every time output is updated to the file. Following the title cards is information related to the progress of the run including the output date and timestep information.
Example:
CE-QUAL-W2 V3.1
Burnsville Reservoir - March 15 through December 11, 1992
Density placed inflow, point sink outflows
Default hydraulic coefficients
Default light absorption/extinction coefficients
Default kinetic coefficients
Temperature and water quality simulation
Run 8
Testing sensitivity to wind
Wind sheltering set to 0.75
Jim Stiles and Vince Marchese, USACE Huntington District
Model run at 16:58:03 on 07/22/02
Time Parameters¶
| Field | Variable | Description |
|---|---|---|
| Gregorian date | GDAY |
Calendar date |
| Julian date | JDAY |
Julian day and hours |
| Elapsed time | ELTMJD |
Days and hours since simulation start |
| Timestep | DLT |
Current timestep (s) and location (KLOC, ILOC) |
| Minimum timestep | MINDLT |
Minimum timestep to date (s), date, and location |
| Average timestep | DLTAV |
Average timestep (s) |
| Number of iterations | NIT |
Total iterations to date |
| Number of violations | NV |
Number of timestep violations |
Example:
Time Parameters
Gregorian date [GDAY] = March 15, 1992
Julian date [JDAY] = 75 days 12.00 hours
Timestep [DLT] = 356 sec
at location [KLOC,ILOC] = (26,47)
Average timestep [DLTAV] = 600 sec
Number of iterations [NIT] = 72
Number of violations [NV] = 5
Meteorological Parameters¶
The next information includes meteorological parameters used at the current timestep. This can be useful when trying to understand temperature simulations. Running sensitivity analyses on meteorological forcing can show that the model will reproduce observed data if the forcing values are more accurate.
Example:
Meteorological Parameters
Input
Air temperature [TAIR] = 0.55 °C
Dewpoint temperature [TDEW] = -8.59 °C
Wind direction [PHI] = 4.65 rad
Cloud cover [CLOUD] = 4.53
Calculated
Equilibrium temperature [ET] = 0.00 °C
Surface heat exchange [CSHE] = 0.00E+00 m/sec
Short wave radiation [SRO] = 0.14E-03 °C m/sec
Selective Withdrawal and Inflow/Outflow Parameters¶
Inflows, inflow placement, and inflow temperatures are output to provide information about what the model is seeing at all inflow boundaries during the current timestep. All outflows are also printed including individual structure outflows, the layer-by-layer outflow computed from the selective withdrawal algorithm, and the total outflow. The final information includes inflow constituent concentrations for all boundary inflows.
Balances¶
Water balance, energy balance, and mass balance results for each branch and waterbody, including:
- Spatial and temporal change in volume/energy/mass
- Error and percent error between the two
Balance Checks
Volume and mass balance errors should be on the order of 10⁻⁶ to 10⁻¹³ percent. Larger errors may indicate code issues or numerical instability.
Geometry¶
The water surface layer number, elevation at the downstream segment, and the current upstream segment number for each branch are output.
Water Surface¶
The water surface elevation and the water surface deviation from the top of the water surface layer number are output next. The water surface deviation uses the oceanographic convention in which the deviation downwards from the top of the surface layer is positive. The output includes information only for the segments specified on the Snapshot Segments card.
Temperature/Water Quality¶
The last information available from the snapshot file covers hydrodynamics and water quality. The user controls which variables are included in the output. Include only variables of interest since the file can become quite large. Title cards are printed on each new page for ease in identifying the simulation.
Sediment Diagenesis Output Files¶
Output files from the sediment diagenesis routine are CSV files for graphing. Key output files include:
| File | Description |
|---|---|
DiagenesisLogFile.opt |
Layer addition information for bed consolidation |
DiagBubbleReleaseSummary.csv |
Summary of bubble release predictions |
DiagBubbles.csv |
Bubble radius, gas concentrations, crack status |
Diagenesis_SD_JCH4.csv |
Dissolved methane sediment fluxes |
Diagenesis_SD_JNH4.csv |
Sediment N flux |
Diagenesis_SD_JNO3.csv |
Sediment NO₃ flux |
Diagenesis_SD_JPO4.csv |
Sediment PO₄ flux |
Diagenesis_SOD.csv |
Sediment oxygen demand (CSOD+NCSOD) |
Diagenesis_NSOD.csv |
Nitrogenous SOD |
Diagenesis_CSOD.csv |
Carbonaceous SOD |
Diagenesis_JC.csv |
Sediment C flux from water column |
Diagenesis_JN.csv |
Sediment N flux from water column |
Diagenesis_JP.csv |
Sediment P flux from water column |
Diagenesis_TemperatureAerobicLayer.csv |
Temperature in aerobic layer |
Diagenesis_TemperatureAnaerobicLayer.csv |
Temperature in anaerobic layer |
Diagenesis_POCG1.csv |
Labile POC concentrations |
Diagenesis_POCG2.csv |
Refractory POC concentrations |
Diagenesis_PONG1.csv |
Labile PON concentrations |
Diagenesis_PONG2.csv |
Refractory PON concentrations |
Diagenesis_POPG1.csv |
Labile POP concentrations |
Diagenesis_POPG2.csv |
Refractory POP concentrations |
Additional output files include porewater concentrations (NO₃, NH₃, PO₄, SO₄, Fe, Mn, CH₄ for aerobic and anaerobic layers), transfer velocities, and bubble model outputs.
Time Series¶
A time series history can be output for any number of cells in the computational grid with output for each cell written to a separate file. Output is suitable for import into a spreadsheet program for analysis and plotting and is in comma-delimited format. If the TSR filename is set to a file suffix csv, then all TSR files will have that suffix and will open in Excel automatically. The model takes the name of the time series file specified on the TIME SERIES PLOT FILENAME card and appends _x to the filename where x = 1, 2, 3, etc., depending upon whether the cell is the first, second, third, etc. one specified on the TIME SERIES SEGMENT card.
The time series file includes the following information:
- Julian date and current time step (s)
- Water surface elevation for the cell's segment location (m)
- Temperature (°C) at the layer and segment specified
- Velocity (m s⁻¹) at the layer and segment specified
- Total flow rate through the entire segment (m³ s⁻¹), vertically integrated flow through the segment
- Net short wave solar radiation incident on the water surface (W m⁻²; reflection is not included, hence it would be the internally computed SRO which includes reflection x 1.06)
- Light extinction coefficient in m⁻¹ at the layer and segment specified
- Depth from water surface to channel bottom (m)
- Surface width (m)
- Shade (shade factor multiplied by SRON; if SHADE = 1, no shade; if SHADE = 0, no short wave solar reaches the water surface)
- Net radiation at surface of segment (W m⁻²), short wave solar net at surface (W m⁻²), long wave radiation net in at surface (W m⁻²), back radiation at surface (W m⁻²), evaporative heat flux at surface (W m⁻²), conductive heat flux at surface (W m⁻²)
- Reaeration coefficient (day⁻¹) predicted by the model at the segment of the TSR file
- Active constituent concentrations
- Derived constituent concentrations
- Instantaneous kinetic flux rates in kg day⁻¹
- Instantaneous algal growth rate limitation fractions for P, N, and light [0 to 1] for each algal group
- If
LIMCis turned on under theCST COMPcard, instantaneous epiphyton growth rate limitation fractions for P, N, and light [0 to 1] for each epiphyton group
If the first-order sediment model is ON, the TSR file will also output SED (total organic matter in sediments in g m⁻³), SEDN (Organic N in sediments in g m⁻³), SEDP (organic P in sediments in g m⁻³), and SEDC (organic C in sediments in g m⁻³). The mass of organic matter, N, P, and C is normalized by the volume of the model cell in contact with the sediment layer.
Equilibrium Temperature Approach
If SLHTC is set to ET for equilibrium temperature approach, then the radiation fluxes will all be set to zero.
Auto-Port Selection Output Files¶
The auto-port selection routine writes two types of output files.
Volume at Specified Temperatures (Volume_wbX.opt)¶
The volume at specified temperature files are named Volume_wbX.opt, where X is the waterbody number. Each file contains a time series of Julian day, total volume (m³), and volumes below the temperature thresholds defined by TEMPCRIT in the w2_selective.npt control file. The number of volume columns corresponds to the number of temperature thresholds specified.
jday Volume Volcrit Volcrit
22919.05 0.1650E+10 0.1565E+10 0.1650E+10
22919.09 0.1650E+10 0.1563E+10 0.1650E+10
22919.13 0.1650E+10 0.1561E+10 0.1650E+10
22919.17 0.1650E+10 0.1560E+10 0.1650E+10
22919.21 0.1650E+10 0.1557E+10 0.1650E+10
Outlet Temperatures and Elevations (wd_out.opt and str_brX.csv)¶
When SELECTC = ON, the model prints a separate time series of outlet temperatures and flows for each individual outlet, in addition to the existing CE-QUAL-W2 combined temperature time series. The outlet files are named str_brX.csv where X is the branch number. A similar file is written for withdrawals in wd_out.opt.
The format includes columns for Julian day, temperature for each structure, flow for each structure, and elevation for each structure.
Branch: 1 # of structures: 3 outlet temperatures
JDAY T(C) T(C) T(C) Q(m3/s) Q(m3/s) Q(m3/s) ELEVCL ELEVCL ELEVCL
22920.000 0.00 9.52 7.20 0.00 69.27 17.91 300.23 280.42 173.74
22921.000 0.00 9.76 7.20 0.00 68.36 17.57 300.23 280.42 173.74
22922.000 0.00 9.81 7.20 0.00 67.46 17.23 300.23 280.42 173.74
Fish Habitat Output Files¶
There are several output files defined in the fish habitat input file: one for fish habitat, volume-weighted averages for an entire segment over all vertical layers, surface-weighted averages over a fixed number of vertical layers, and accumulation of sediments in the first-order sediment model.
Fish Habitat¶
The fish habitat zones are defined in the w2_habitat.npt input file. The output file reprints the original criteria and then, at the output frequency of the TSR FREQ card, outputs Julian day, percent habitat volume for species 1, actual habitat volume in m³ for species 1, and then repeats this for each species.
Fish habitat analysis: CE-QUAL-W2 model results
Species, Temperature minimum, Temperature maximum, Dissolved oxygen minimum
RainbowTrout, 0.00, 18.00, 5.00
StripedBass, 10.00, 24.00, 5.00
Walleye, 12.00, 24.00, 5.00
WhiteBass, 0.00, 28.00, 3.00
SmallmouthBass, 0.00, 29.00, 4.00
SpottedBass, 0.00, 24.40, 6.00
JDAY,%VOL-RainbowTrout,HAB-VOL(m3)-RainbowTrout,%VOL-StripedBass,...
61.532, 100.00, 0.1170E+09, 0.00, 0.0000E+00,...
The model also writes output for each branch and waterbody if HABTATC is ON. For each waterbody, the model writes fish_habitat_wbX.csv where X is the waterbody number. For each branch, the model writes fish_habitat_brX.csv where X is the branch number. These files allow the model user to explore fish habitat in smaller sections of the waterbody.
Volume-Weighted and Surface-Weighted Averages¶
Volume-weighted averages are computed at specified segments. The output includes Julian day and the following parameters at each specified segment: PO₄, NH₄, NO₃, DO, TP, Chl-a, and Gamma (an index variable).
Surface-weighted averages are similar but computed over a specified number of layers from the water surface. The format matches the fish habitat output file, with blank lines at the beginning.
Organic Matter Accumulation¶
The organic matter accumulation output file contains comma-delimited entries for each segment and time of output. The values are grams of organic matter at the bottom of each layer, summed for each segment.
Preprocessor¶
The preprocessor produces several output files: a file that echoes all control file inputs along with additional information (pre.opt), a warning file that alerts the user to potential problems with inputs (pre.wrn), and an error file (pre.err) that identifies serious problems in the input data that may prevent the model from running or running correctly. Run the preprocessor routinely before a model simulation.
In the Windows version, the user can supply a command-line working directory argument so that the preprocessor executable does not need to be copied into every model directory:
Output (pre.opt)¶
The title cards are echoed at the beginning of the output followed by a complete echoing of all control file input. A description of the input, the Fortran variable name used in the control file, and the value of the variable are output. The sequence of output closely follows the sequence of input in the control file, but in some cases it is different as certain types of output are more logically grouped together. The pre.opt file contains the following major sections:
Time Control and Simulation Parameters. The first section includes variables affecting the time of simulation and the timestep, followed by initial conditions and variables that control calculations in the model.
Time Control
Starting time (Julian day) [TMSTRT] = 75.00
Ending time (Julian day) [TMEND] = 320.00
Year [YEAR] = 1992
# Timestep intervals [NDLT] = 1
Minimum timestep (sec) [DLTMIN] = 1.0
Maximum timestep (sec) [DLTMAX] = 1800.0
Fraction of timestep [DLTF] = 0.85
Input Interpolations and Meteorological Parameters. Controls for all input interpolation are output, followed by meteorological parameters and a statistical summary of all meteorological variables in the input file.
Meteorological Data Input Summary
Parameter Waterbody Average Value Maximum Minimum
TAIR(C) 1 26.258 37.300 16.000
TDEW(C) 1 22.850 29.000 8.500
WIND(m/s) 1 0.592 11.490 0.000
Transport, Hydraulic, and Ice Cover Parameters. Variables affecting the transport solution, hydraulics, and ice cover.
Output Controls. Snapshot, screen, fluxes, vector plot, profile plot, spreadsheet plot, contour plot, time series, and restart settings with their dates and frequencies.
Inflow/Outflow Information. Selective withdrawal structure information, tributary details, withdrawal details, distributed tributary settings, and all input and output filenames.
Constituent Parameters. State variable computation, initial concentration, flux, and printout settings; boundary condition constituent controls; derived variable computation controls; kinetic rate constants; stoichiometric relationships; light attenuation coefficients; half-saturation constants.
Inflow Constituent Statistics. Summary statistics (average, maximum, minimum) for inflow temperatures and constituent concentrations.
Water Balance Summary. Average and maximum total inflows and outflows for each waterbody and branch.
Geometry. All information from the control and bathymetry file along with a computed area-volume-elevation table that includes average width, depth, and theoretical hydraulic residence time. The surface layer is indicated by KT next to the layer number.
Branch 1 Volume-Area-Elevation Table
Layer Elevation Area Volume Active Cells Average depth Average width
(m) (1.0E6 m^2) (1.0E6 m^3) (m) (m)
2 251.17 5.171 58.316 630 11.3 262.48
23 KT 238.36 2.413 8.844 216 3.7 122.50
Initial Conditions. Initial conditions for the water surface deviation, temperature, and constituent concentrations. Check these to ensure correctness, particularly when using vertical and/or longitudinal profile files.
Warning Messages (pre.wrn)¶
The preprocessor does an extensive check of inputs to determine if inputs "make sense." Because the model is flexible, certain inputs are not necessarily errors but should be flagged so the user can verify their intent. When kinetic rates differ from valid ranges or a specific value that should not normally be changed, a warning message is generated.
All warning messages include a concise statement in English showing what the problem is. The Fortran variable name is also included along with its value.
Example:
Epiphyton excretion rate [EE=0.000] < 0.001 for epiphyton group 1
Oxygen to algal respiration stoichiometry [O2AR=1.400] /= 1.1 for waterbody 1
Phosphorus/organic matter stoichiometry [ORGP=0.011] /= 0.005 for waterbody 1
Water surface elevation is below bottom elevation at segment 1
Water surface elevation is below bottom elevation at segment 2
Warning Messages
The absence of warning messages does not guarantee that all inputs are correct. Not all possible input combinations can be checked. Do not assume that because there are no warnings generated there are no problems with inputs.
Error Messages (pre.err)¶
Input errors that will prevent the model from running correctly or running at all are extensively screened and, when found, are included in the preprocessor error output file. All error messages include a concise statement in English along with the Fortran variable name and its input value.
Example:
Starting time [TMSTRT=75.000] < ending time [TMEND=-320.000]
Timestep fraction [DLTF(1)=-0.850] <= 0.0
Internal gravity wave limitation control [CELC= on] /= " ON" or "OFF" for waterbody 1
Heat exchange solution control [SLHTC= term] /= " TERM" or " ET" for waterbody 1
Vertical advection time weighting [THETA=-0.550] < 0.0 for waterbody 1
Selective withdrawal elevation [ESTR=137.700] < the bottom active cell elevation
Spreadsheet Profile Plot¶
The spreadsheet profile output was designed for import into a spreadsheet program for plotting vertical profiles of temperature, constituents, and derived constituents. Output consists of a comma-delimited file with the variable name, Julian date, depth below water surface, elevation, and temperature, horizontal velocity, horizontal layer flow, and/or concentrations for the output segment. Additional segments each contain a depth, elevation, and temperature/concentration column and are continued to the right. Whenever a depth or vertical layer is part of the channel bottom, a value of -99 is placed in the cell.
Constituent,Julian_day,Depth,Elevation,Seg_9,Elevation,Seg_10,Elevation,Seg_11,Elevation,
Temperature(C), 1.500, 1.549, 439.649, 6.611, 439.649, 6.658, 439.649, 6.664,
Temperature(C), 1.500, 4.073, 437.125, 6.611, 437.125, 6.658, 437.125, 6.664,
HorizontalVelocity(ms-1), 1.500, 1.549, 439.649, -0.0001, 439.649, -0.0036, 439.649, 0.0007,
HorizontalLayerFlow(m3s-1), 1.500, 1.549, 439.649, -0.0936, 439.649, -4.1658, 439.649, 0.5209,
If SPRC is set to ONV rather than ON, an additional output file is written that contains the volume-weighted temperature, water quality state, and derived variables at the locations and times specified. This file has the suffix _volw.csv and is comma delimited.
| Constituent | Julian day | Seg_35 | Seg_36 |
|---|---|---|---|
| Temperature | 1.04 | 4 | 8.986 |
| Age | 1.04 | 0 | 0 |
| Temperature | 31.041 | 3.998 | 3.999 |
| Age | 31.041 | 14.335 | 16.312 |
Profile Plot¶
The profile plot output file (prf.opt) was originally developed to provide data for a plotting package called DISSPLA from Computer Associates. The longitudinal profile plot output format is described in the next section.
As in most other output files, the card titles are included for identifying the run. The first line after the titles reports:
- Maximum number of layers (
KMX) - Number of segments for which information is output (
NIPRF) - Total number of output dates (
NDSP) - Total number of constituents (
NCT) - Total number of derived constituents (
NDC) - Pointer to the profile date currently in effect (
PRFDP) - Waterbody surface layer (
KTWB) - Logical variable: T if constituents are simulated, otherwise F
The next line reports the segment(s) to output [IPRF]. The next three lines report which constituents are active. Constituent and derived constituent names follow in the next 21 lines. The constituent and derived constituent numbers follow on the next line. Temperature is always considered constituent 1. The bottom active layer for each output segment is given on the next line.
Layer heights for layers 1 through KMX are output next. Initial temperatures/constituent concentrations for each segment specified in the profile segment card are then output. The first line contains the constituent abbreviation and the number of active layers. The next line(s) contain the values for a given segment.
The next output grouping consists of temperature/constituent concentrations over time. The first line includes Julian date (JDAY), Gregorian date (GDAY), water surface layer number (KTWB), deviation of the water surface (Z) from the top of the surface layer (KT), and how many dates information has been written.
75.702 Mar 15, 1992 23 -0.1950 1
TEMP 14
5.81 5.64 5.48 5.41 5.37 5.35 5.34 5.33
5.32 5.32 5.32 5.32 5.32 5.32
ISS 14
0.674E+00 0.850E+00 0.991E+00 0.116E+01 0.136E+01 0.148E+01 0.166E+01 0.191E+01
0.208E+01 0.225E+01 0.239E+01 0.250E+01 0.255E+01 0.255E+01
Longitudinal Profile Plot¶
An alternative output for the profile plot is the longitudinal profile plot. This is set in the profile plot section of the control file. The output consists of files named ProfLongJDXXX.csv where XXX is the Julian day of the profile. The output consists of model segment number, water surface elevation (m), flow rate (m³ s⁻¹), temperature (°C) of the surface layer, depth (m), width (m), volume-weighted temperature of the segment (°C), and concentrations of state variables and derived variables at the surface layer. The file is comma delimited.
Seg#,ElevWaterSurf(m),Q(m3/s),SurfaceTemp(oC),Depth(m),Width(m),VolWeighTemp(oC),
TDS, Gen1, Gen2, Gen3, ISS1, PO4, NH4, NO3, Fe,
LDOM, RDOM, LPOM, RPOM, ALG1, DO, TIC, ALK,
2, 122.335, 3.782, 28.740, 3.985, 79.000, 28.529, 25.161,
100.000, 0.762, 51.823, 41.164, 6.043, 108.891, 0.014, 0.107,
4.776, 14.229, 0.330, 0.002, 4.293, 14.829, 46.230,
Vector Plot¶
The vector plot output writes a binary file that is used by the W2_POST post-processor developed by DSI, Inc. Use the filetype w2L for W2 Linkage file so that W2_Post.exe can recognize the file natively. Only the first filename for the first waterbody is used for the output for all waterbodies. The binary file contains velocity field data (horizontal and vertical velocities) at each computational cell for each output time, used to create velocity vector overlays on contour plots.
Contour Plot¶
The contour plot output (cpl.opt) was originally included for developing DISSPLA contour plots of model output using Fortran callable subroutines. Output consists initially of time-invariant grid information:
- Title cards
- Number of branches (
NBR) - Grid dimensions (
KMXandIMX) - Branch upstream and downstream segments (
USandDS) - Segment length (
DLX) - Layer heights (
H) - Number of active constituents
- Active constituent names
During simulations, the following time-varying information is output:
- Julian date (
JDAY) and Gregorian date (GDAY) - Water surface layer (
KTWB) - Tributary inflows (
QTR) and temperatures (TTR) - Tributary inflow concentrations for each active constituent (
CTR) - Current upstream segment (
CUS) - Branch inflow (
QIN) and the sum of the branch inflow (QSUM) - Interfacial area (
BHRKT1) for all active segments in the surface layer (KT) - Interfacial area (
BHR) for all remaining active computational cells - Horizontal velocities (
U) - Flows (
QC) - Water surface deviations (
Z) - Temperatures
- Constituent concentrations
The user must develop their own plotting program to use this feature unless the TECPLOT option is chosen.
TECPLOT Output¶
When the TECPLOT option is ON, the output consists of elevation (m), longitudinal distance (m), U (x-velocity, m s⁻¹), W (z-velocity, m s⁻¹), T (°C), RHO (kg m⁻³), Fish Habitat number, and concentrations for all active constituents for the entire grid at the time interval specified in CPL FREQ. Tecplot can read the file directly and the user can create contour animations of any variables including superimposed velocity vector plots.
The Fish Habitat number is the fish criterion satisfied at each grid point (K,I). Define fish criteria in order of more restrictive to least restrictive:
The first fish is given #1, second #2, and 3rd fish group #3. For each grid point, the habitat criteria value 1, 2, 3, or 100 (if outside the last range) is written to the Tecplot output file.
To create a contour animation in Tecplot:
- Import data (
cpl.opt) into Tecplot using the Tecplot Data Loader. - Turn ON contours.
- Reset axes so that they are Independent (Tecplot default is dependent).
- Turn on Value Blanking since state variables outside the domain are set to -99.
- Reset the contour intervals since Tecplot automatically uses -99 as its minimum data value.
- Go to the animation and view the zones on screen or export to an AVI file.
- To add vectors, turn on vectors and choose U and W as the vector variables.
Kinetic Fluxes¶
The kinetic flux output provides detailed information about kinetic flux rates at specified segments. Two output types are available:
- Formatted text output (similar to snapshot file format): Fluxes at segments specified by
SNP SEG. - CSV output (
kflux_wb#.csv): Summed fluxes for all active cells at the frequency specified byFLX FREQ.
There are 142 available kinetic flux terms covering all major kinetic processes:
| # | Short Name | Description |
|---|---|---|
| 1 | TISSIN |
ISS settling in, kg day⁻¹ |
| 2 | TISSOUT |
ISS settling out, kg day⁻¹ |
| 3 | PO4AR |
PO₄ algal respiration, kg day⁻¹ |
| 4 | PO4AG |
PO₄ algal growth, kg day⁻¹ |
| 5 | PO4AP |
PO₄ algal net, kg day⁻¹ |
| 6 | PO4ER |
PO₄ epiphyton respiration, kg day⁻¹ |
| 7 | PO4EG |
PO₄ epiphyton growth, kg day⁻¹ |
| 8 | PO4EP |
PO₄ epiphyton net, kg day⁻¹ |
| 9 | PO4POM |
PO₄ POM decay, kg day⁻¹ |
| 10 | PO4DOM |
PO₄ DOM decay, kg day⁻¹ |
| 11 | PO4OM |
PO₄ OM decay, kg day⁻¹ |
| 12 | PO4SED |
PO₄ sediment decay, kg day⁻¹ |
| 13 | PO4SOD |
PO₄ SOD release, kg day⁻¹ |
| 14 | PO4SET |
PO₄ net settling, kg day⁻¹ |
| 15 | NH4NITR |
NH₄ nitrification, kg day⁻¹ |
| 16 | NH4AR |
NH₄ algal respiration, kg day⁻¹ |
| 17 | NH4AG |
NH₄ algal growth, kg day⁻¹ |
| 18 | NH4AP |
NH₄ algal net, kg day⁻¹ |
| 19 | NH4ER |
NH₄ epiphyton respiration, kg day⁻¹ |
| 20 | NH4EG |
NH₄ epiphyton growth, kg day⁻¹ |
| 21 | NH4EP |
NH₄ epiphyton net, kg day⁻¹ |
| 22 | NH4POM |
NH₄ POM decay, kg day⁻¹ |
| 23 | NH4DOM |
NH₄ DOM decay, kg day⁻¹ |
| 24 | NH4OM |
NH₄ OM decay, kg day⁻¹ |
| 25 | NH4SED |
NH₄ sediment decay, kg day⁻¹ |
| 26 | NH4SOD |
NH₄ SOD release, kg day⁻¹ |
| 27 | NH3GAS |
Volatilization of NH₃, kg day⁻¹ |
| 28 | NO3DEN |
NO₃ denitrification, kg day⁻¹ |
| 29 | NO3AG |
NO₃ algal growth, kg day⁻¹ |
| 30 | NO3EG |
NO₃ epiphyton growth, kg day⁻¹ |
| 31 | NO3SED |
NO₃ sediment uptake, kg day⁻¹ |
| 32 | DSIAG |
DSi algal growth, kg day⁻¹ |
| 33 | DSIEG |
DSi epiphyton growth, kg day⁻¹ |
| 34 | DSIPIS |
DSi PBSi decay, kg day⁻¹ |
| 35 | DSISED |
DSi sediment decay, kg day⁻¹ |
| 36 | DSISOD |
DSi SOD release, kg day⁻¹ |
| 37 | DSISET |
DSi net settling, kg day⁻¹ |
| 38 | PSIAM |
PBSi algal mortality, kg day⁻¹ |
| 39 | PSINET |
PBSi net settling, kg day⁻¹ |
| 40 | PSIDK |
PBSi decay, kg day⁻¹ |
| 41 | LDOMD |
LDOM decay, kg day⁻¹ |
| 42 | LRDOM |
LDOM decay to RDOM, kg day⁻¹ |
| 43 | RDOMDK |
RDOM decay, kg day⁻¹ |
| 44 | LDOMAP |
LDOM algal mortality, kg day⁻¹ |
| 45 | LDOMEP |
LDOM epiphyton mortality, kg day⁻¹ |
| 46 | LPOMDK |
LPOM decay, kg day⁻¹ |
| 47 | LRPOM |
LPOM decay to RPOM, kg day⁻¹ |
| 48 | RPOMDK |
RPOM decay, kg day⁻¹ |
| 49 | LPOMAP |
LPOM algal production, kg day⁻¹ |
| 50 | LPOMEP |
LPOM epiphyton production, kg day⁻¹ |
| 51 | LPOMSET |
LPOM net settling vertically in a layer, kg day⁻¹ |
| 52 | RPOMSET |
RPOM net settling vertically in a layer, kg day⁻¹ |
| 53 | CBODDK |
CBOD decay, kg day⁻¹ |
| 54 | DOAP |
DO algal production, kg day⁻¹ |
| 55 | DOEP |
DO epiphyton production, kg day⁻¹ |
| 56 | DOAR |
DO algal respiration, kg day⁻¹ |
| 57 | DOER |
DO epiphyton respiration, kg day⁻¹ |
| 58 | DOPOM |
DO POM decay, kg day⁻¹ |
| 59 | DODOM |
DO DOM decay, kg day⁻¹ |
| 60 | DOOM |
DO OM decay, kg day⁻¹ |
| 61 | DONITR |
DO nitrification, kg day⁻¹ |
| 62 | DOCBOD |
DO CBOD uptake, kg day⁻¹ |
| 63 | DOREAR |
DO reaeration, kg day⁻¹ |
| 64 | DOSED |
DO sediment uptake, kg day⁻¹ |
| 65 | DOSOD |
DO SOD uptake, kg day⁻¹ |
| 66 | TICAP |
TIC algal uptake, kg day⁻¹ |
| 67 | TICEP |
TIC epiphyton uptake, kg day⁻¹ |
| 68 | SEDD |
Sediment decay, kg day⁻¹ |
| 69 | SEDAS |
Sediment algal settling, kg day⁻¹ |
| 70 | SEDOMS |
Sediment LPOM settling, kg day⁻¹ |
| 71 | SEDNS |
Sediment net settling, kg day⁻¹ |
| 72 | SODD |
SOD decay, kg day⁻¹ |
| 73 | LDOMPAP |
LDOM P algal mortality, kg day⁻¹ |
| 74 | LDOMPEP |
LDOM P epiphyton mortality, kg day⁻¹ |
| 75 | LPOMPAP |
LPOM P algal production, kg day⁻¹ |
| 76 | LPOMPNS |
LPOM P net settling, kg day⁻¹ |
| 77 | RPOMPNS |
RPOM P net settling, kg day⁻¹ |
| 78 | LDOMNAP |
LDOM N algal mortality, kg day⁻¹ |
| 79 | LDOMNEP |
LDOM N epiphyton mortality, kg day⁻¹ |
| 80 | LPOMNAP |
LPOM N algal production, kg day⁻¹ |
| 81 | LPOMNNS |
LPOM N net settling, kg day⁻¹ |
| 82 | RPOMNNS |
RPOM N net settling, kg day⁻¹ |
| 83 | SEDDP |
Sediment P decay, kg day⁻¹ |
| 84 | SEDASP |
Sediment algal P settling, kg day⁻¹ |
| 85 | SEDOMSP |
Sediment P LPOM settling, kg day⁻¹ |
| 86 | SEDNSP |
Sediment net P settling, kg day⁻¹ |
| 87 | LPOMEPP |
Sediment epiphyton P settling, kg day⁻¹ |
| 88 | SEDDN |
Sediment N decay, kg day⁻¹ |
| 89 | SEDASN |
Sediment algal N settling, kg day⁻¹ |
| 90 | SEDOMSN |
Sediment N LPOM settling, kg day⁻¹ |
| 91 | SEDNSN |
Sediment net N settling, kg day⁻¹ |
| 92 | LPOMEPN |
Sediment epiphyton N settling, kg day⁻¹ |
| 93 | SEDDC |
Sediment C decay, kg day⁻¹ |
| 94 | SEDASC |
Sediment algal C settling, kg day⁻¹ |
| 95 | SEDOMSC |
Sediment C LPOM settling, kg day⁻¹ |
| 96 | SEDNSC |
Sediment net C settling, kg day⁻¹ |
| 97 | LPOMEPC |
Sediment epiphyton C settling, kg day⁻¹ |
| 98 | SEDNO3 |
Sediment N denitrification, kg day⁻¹ |
| 99 | PO4MR |
PO₄ macrophyte respiration, kg day⁻¹ |
| 100 | PO4MG |
PO₄ macrophyte growth, kg day⁻¹ |
| 101 | NH4MR |
NH₄ macrophyte respiration, kg day⁻¹ |
| 102 | NH4MG |
NH₄ macrophyte growth, kg day⁻¹ |
| 103 | LDOMMAC |
LDOM macrophyte mortality, kg day⁻¹ |
| 104 | RDOMMAC |
RPOM macrophyte mortality, kg day⁻¹ |
| 105 | LPOMMAC |
LPOM macrophyte mortality, kg day⁻¹ |
| 106 | DOMP |
DO macrophyte production, kg day⁻¹ |
| 107 | DOMR |
DO macrophyte respiration, kg day⁻¹ |
| 108 | TICMC |
TIC macrophyte growth/respiration, kg day⁻¹ |
| 109 | CBODNS |
CBOD settling, kg day⁻¹ |
| 110 | SEDCB |
Sediment CBOD settling, kg day⁻¹ |
| 111 | SEDCBP |
Sediment CBOD P settling, kg day⁻¹ |
| 112 | SEDCBN |
Sediment CBOD N settling, kg day⁻¹ |
| 113 | SEDCBC |
Sediment CBOD C settling, kg day⁻¹ |
| 114 | SEDBR |
Sediment Burial, kg day⁻¹ |
| 115 | SEDBRP |
Sediment P Burial, kg day⁻¹ |
| 116 | SEDBRN |
Sediment N Burial, kg day⁻¹ |
| 117 | SEDBRC |
Sediment C Burial, kg day⁻¹ |
| 118 | CBODNSP |
CBOD P settling, kg day⁻¹ |
| 119 | CBODNSN |
CBOD N settling, kg day⁻¹ |
| 120 | CO2REAER |
CO₂ gas exchange air/water interface, kg day⁻¹ |
| 121 | DOH2S |
DO H₂S decay, kg day⁻¹ |
| 122 | H2SREAER |
H₂S gas exchange air/water interface, kg day⁻¹ |
| 123 | H2SD |
H₂S decay, kg day⁻¹ |
| 124 | H2SSR |
H₂S sediment release, kg d⁻¹ |
| 125 | DOCH4 |
DO CH₄ decay, kg day⁻¹ |
| 126 | CH4REAER |
CH₄ gas exchange air/water interface, kg day⁻¹ |
| 127 | CH4D |
CH₄ decay, kg day⁻¹ |
| 128 | CH4SR |
CH₄ sediment release, kg d⁻¹ |
| 129 | Fe2D |
Fe(II) oxidation water column, kg day⁻¹ |
| 130 | DOFe2 |
DO Fe(II) oxidation water column, kg day⁻¹ |
| 131 | FEIISR |
FeII sediment release, kg d⁻¹ |
| 132 | SDIN-FeOOH |
FeOOH settling from water column, kg day⁻¹ |
| 133 | Mn2d |
Mn(II) oxidation water column, kg day⁻¹ |
| 134 | DOMn2 |
DO Mn(II) oxidation water column, kg day⁻¹ |
| 135 | MNIISR |
MnII sediment release, kg d⁻¹ |
| 136 | SDINMnO2 |
MnO₂ settling from water column, kg day⁻¹ |
| 137 | SD_C_IN |
C to Sed. Diagenesis module, kg day⁻¹ |
| 138 | SD_N_IN |
N to Sed. Diagenesis module, kg day⁻¹ |
| 139 | SD_P_IN |
P to Sed. Diagenesis module, kg day⁻¹ |
| 140 | DOSEDIA |
DO sediment diagenesis uptake, kg day⁻¹ |
| 141 | SEDD1 |
Labile standing biomass decay, kg day⁻¹ |
| 142 | SEDD2 |
Refractory standing biomass decay, kg day⁻¹ |
Flux Numbering
Fluxes 1--72 can be toggled ON/OFF by the model user on the CST FLUX card. Fluxes 73--120 are automatically computed when the relevant processes are active. Fluxes 121--142 are automatically turned on when sediment diagenesis, H₂S, CH₄, Fe, or Mn processes are active.
Withdrawal Outflow¶
Whenever withdrawal output control [WDOC] is ON (see w2_con.npt or w2_con.csv file), withdrawal outflow files contain information for plotting any release or withdrawal temperatures and/or constituent concentrations as a time series. The files can also be used to externally link upstream waterbodies to downstream waterbodies so that waterbasins can be broken up into multiple waterbodies. This is an important feature when runtimes for the entire waterbasin become excessive. With this option, calibration can start at the most upstream waterbody and proceed sequentially downstream.
The model user can specify the output filenames by specifying WDOFN (see Withdrawal Output (WITH OUT) card). WDOFN can describe a subdirectory and filename. For example, if WDOFN=.\wdo files\Lake1.csv, then the output files will be written to a subdirectory called wdo files.
Integrated Output¶
Output consists of up to four separate files for each segment [IWDO] specified in the control file:
| File Type | Contents |
|---|---|
q_AAA_segXX.YYY |
Flow rates (m³ s⁻¹) |
t_AAA_segXX.YYY |
Temperatures (°C) |
c_AAA_segXX.YYY |
Constituent concentrations |
d_AAA_segXX.YYY |
Derived constituent concentrations |
Where AAA is the withdrawal output filename entered for WDOFN, XX is the segment number (IWDO), and YYY is the filetype given for the WDO output file. These files are for all the withdrawals specified at that segment lumped together if there are multiple withdrawals. The constituent concentration outflow file is only generated if constituent computations [CCC] are turned on. The derived constituent concentration outflow file is generated only if constituent computations are turned on and one or more derived constituents [CDWBC] are turned on.
For the flow and temperature files, individual flows and outlet temperatures are provided to the right of the weighted average (temperature) or summed flow. All output files are in comma-delimited format and are in the correct format for a downstream inflow or tributary file.
Individual Output¶
A series of individual comma-delimited files are also output for each structure at the withdrawal segment. For example, if there are 2 spillways (weirs), 1 gate and 1 pump at the withdrawal segment, all these withdrawal types are automatically output individually as separate files with a fixed internally specified file name based on the hydraulic element and the segment number, such as: qwo_sp1_seg23.csv, qwo_sp2_seg23.csv, qwo_gate1_seg23.csv, and qwo_pmp1_seg23.csv. These files have only flow, temperature, and concentration for one outlet. Similarly named output files are provided for gates, spillways, and pipes if they are located at the withdrawal output segment [IWDO].
WDO Output
WDO output files are not multiplied by CMULT or CDMULT, unlike the snapshot and time series output files.
Mass Balance Output File¶
When Mass_Balance [MBC] is turned ON (see CALCULATIONS in control file), the model outputs a summary of the N and P mass balance for each waterbody based on the output interval for CPL output with the name massbal.csv. If CPL output is turned OFF, [CPLC]=OFF, or if [MBC] is OFF or if no derived variables were turned ON (TP, total phosphorus, and TN, total nitrogen, must be turned ON), then no file will be written. This file is useful in looking at waterbody overall N and P balances. The file includes:
- Julian day and waterbody number
- Total phosphorus and total nitrogen in water column (kg), sediments (kg), and plants (kg)
- Cumulative TP and TN in outflow, tributaries, distributed tributaries, withdrawals, precipitation, and inflow (kg)
- Cumulative sediment release and flux to sediments (kg)
- Sediment diagenesis flux terms (kg)
Flow Balance Output File¶
When Volume_Balance [VBC] is ON (see CALCULATIONS in control file), the model outputs a summary of the flow balance for each waterbody based on the output interval for Contour output or CPL output in a file named flowbalance.csv. If CPL output is turned OFF, [CPLC]=OFF, or Volume_Balance [VBC] is OFF, then no file will be written. This output file is useful in looking at waterbody overall flows. The output file consists of the following information:
- Julian day and waterbody number
- Inflow volume to waterbody from Qin files in m³
- Inflow volume from precipitation in m³
- Outflow volume from outlet structures in m³
- Output volume from withdrawals in m³
- Output volume from evaporation in m³
- Input volume from distributed tributaries in m³
- Input volume from tributaries in m³
- Volume of ice formation/ice melting in m³ (this is zero if [ICEC] is
OFF) - Percent error in computing the fluid mass balance
The volumes and percent error between Julian days are cumulative, not instantaneous, and are negative for an outflow and positive for an inflow. Note that if one has ice formation removing water and later ice melting back into the waterbody, there should not be any net gain or loss of water.
SYSTDG Output File¶
TDG (Total Dissolved Gas) concentrations computed with the SYSTDG equations are written into the withdrawal output files. Withdrawal outflow files contain information with release or withdrawal TDG concentrations in the time series output files. The model output consists of up to four separate files for the individual segment [IWDO] specified in the W2 control file. The files include an outflow, outflow temperature, constituent concentrations, and derived constituent concentrations. These files are for all the withdrawals specified at that segment lumped together if there are multiple withdrawals. All output files are in comma-delimited format. Also, whenever withdrawal output is ON, a series of individual files is also written in the output file for each structure at the withdrawal segment.
An additional TDG target output file, TDGTarget_output.opt, is generated from the model if TDGTA is turned ON. This file contains information for outflow release or spillway TDG concentrations and outflows as a time series file.
Lake River Contour Plots Output Files¶
When the lake_river_contour.csv input file is present, the model produces output files for lake and river contour plots:
LakeContour_DO_SegXX.csv: Lake contour for dissolved oxygen at segment XXLake_Contour_T_SegXX.csv: Lake contour for temperature at segment XXRiverContour_DO_BrYY.csv: River contour for dissolved oxygen for branch YYRiverContour_T_BrYY.csv: River contour for temperature for branch YY
Two output formats are available:
- Format 1: Columns of
JDAY, elevation (or distance), and temperature/dissolved oxygen (DO) value - Format 2: Elevations (or distances) in the first row; rows are time steps with temperature/DO values at each elevation (or distance)
Water Level Output File¶
A convenient file for plotting water level variations as a function of time and space is written out if the TIME_SERIES is ON. The output file name is wl.csv. The file consists of Julian day followed by the water surface elevation at each model segment in m. The water level at every model segment is written rather than those specified in the TIME_SERIES output. An example file is shown below:
JDAY,SEG 2,SEG 3,SEG 4,...,SEG 65,SEG
1.001,1484.700,1484.700,1484.700,...
1.150,1484.700,1484.700,...
W2Anim Output File¶
If the user uses Stewart Rounds' W2Anim post-processor (https://github.com/sarounds/w2anim/releases/latest), one of the files used for viewing the flow, temperature, and water quality of outlets is now automatically output. This file is used for viewing the outlet dynamics (flow, temperature, and water quality) for any outflow. The output file is written whenever there is a WDO (withdrawal output) specified.
The file is internally named based on the prefix and suffix specified for the WDO output file. The file name is qwo_layers_XX_wdo.csv if the prefix was wdo and the suffix was csv, where XX is the segment number where the withdrawal occurs. The file contains:
- Row 1: Header identifying the file as "Flow layers file for segment XX"
- Row 2: Column headers including "Output is total outflow, WS elev, El(Kbm)" and "layer outflows starting w/ layer 2"
- Row 3: Column labels for JDAY, Q(m3/s), El(Kbm), and LayerFlow(m3/s)
- Subsequent rows: Time series of Julian day, total outflow, water surface elevation, bottom elevation, and flow in each layer starting with layer 2
The column D starts with the flow in layer 2, column E is the flow in layer 3, and so on.
Run-time Warnings¶
The model generates the following run-time warning messages that can be useful when setting up the model and debugging errors that may have occurred. These are output to the file w2.wrn.
-
Water surface is above the top of layer 2 in segment 'x' at day 'y'. This message informs the user that the water surface elevation has gone above the top of the computational grid. This may be okay or it might indicate that additional layers need to be added to the grid so that the surface layer does not become inappropriately thick. This is a common message when first calibrating the water surface in a reservoir if either the inflows are overestimated or the outflows are underestimated.
-
Computational warning at Julian day = 'x,' at segment 'y' timestep = 'z' water surface deviation [Z] = 'x' m layer thickness = 'y' m. This message indicates that the water surface elevation solution is starting to go unstable as a result of velocities approaching supercritical values. The water surface elevation has gone from residing in layer
KTto layerKT+1, which causes a negative surface layer thickness. The surface layer thickness, HKT1, is the layer thickness, H, minus the water surface deviation, z, from the top layerKT. This is negative when the solution begins to go unstable.Normally, when the water surface elevation approaches the bottom of layer
KT, the model would subtract a layer thus allowing the water surface level to decline smoothly over time. However, if the water surface elevation jumps below the bottom of layerKTin one timestep, the layer subtraction algorithm does not have a chance to adjust the water surface layer before solving for the velocities. -
Unstable water surface elevation on day 'x,' negative surface layer thickness using minimum timestep at iteration 'y'. The model attempts to recover from the instability by decreasing the timestep by 90% and recomputing the water surface elevation. If the current timestep is greater than the minimum timestep [DLTMIN], then this warning message is generated. If the current timestep is less than or equal to [DLTMIN], then an error message is output and the run is stopped. To recover, reduce [DLTMAX] and/or [DLTF] just prior to the instability and then increase back to original values later in the simulation.
-
Low water in segment 'x' water surface deviation ='y' at day 'z'. This warning message alerts the user that water is drying up in a segment with only one active layer. This may mean that more friction is required to hold back water in downstream segments or the segment in question, or that segments upstream may need to have less friction.
-
Computational warning at Julian day = 'x' spatial change ='x' m³ temporal change ='y' m³ volume error ='z' m³. This message lets the user know that the volume error is more than 1000 m³. This should not normally happen unless the user has incorrectly modified the code or the water surface elevation solution has become unstable.
-
Change of model surface layer by adding or subtracting layers. Informational diagnostic message.
-
Other diagnostic information.
Instability Recovery
If the instability is occurring during high inflow periods, the user can spread inflows out over a greater time period to reduce maximum velocities. Care must be taken to ensure that the total inflows remain the same, especially if inflow interpolation [QINIC] is turned on. Velocities can also be reduced through adjustments to the bathymetry such as making cells wider. If inflows are placed according to density [PQINC] and/or [PQTRC], velocities can also be reduced by using the "distribute evenly from top to bottom" option. Another option is to increase the minimum number of layers [NLMIN] for a segment to remain active.
Run-time Errors¶
When the model goes unstable and stops running, the code generates two files: w2.err and w2errordump.csv. The model generates the run-time error messages and outputs them to w2.err, and generates an error "dump" file of all the pertinent output at the time of the model crash, w2errordump.csv. Both of these files are useful in debugging the cause of a model instability and "crash."
W2.err¶
Error 1: Unstable water surface elevation on day 'x' negative surface layer thickness using minimum timestep at iteration 'y'
As discussed in the Run-time Warnings section, this error message is generated by an unstable water surface elevation solution. Additional information output to the error file includes the segment number, the water surface elevation at that segment, the bottom elevation of that segment, and the elevation difference for all segments in the offending branch.
The model user may need to lower DLTMAX forcing the model to run at a lower time step around the period of instability. Or perhaps the model is drying up, and there is insufficient water in the main branch. This involves reassessing the inflows and outflows to your waterbody. Examine all preprocessor warnings in case there were no errors and check each one to see if that is a cause of the problem.
Error 2: Fatal error: Insufficient segments in branch 'x' Julian day = 'y' water surface layer = 'z'
Currently in the model, if the number of segments in the main branch becomes less than two due to drying out and subsequent subtraction of upstream segments from the active computational grid, then the model issues this error message and terminates. There must be at least two active segments in the main branch for many of the computations to proceed. This error is most common in reservoir simulations. For all side-branches off the mainstem branch, a branch can go inactive if it dries up.
If this occurs during water surface calibration due to insufficient inflows or excessive outflows, then adjust the flows so that either more water comes in or less water flows out. Another workaround is to add additional depth to the bottom of the branch so that water levels can drop without segments being subtracted. Similarly, the number of active layers required to prevent segment subtraction [NLMIN] can be set to one if it is not already set to that value.
Example:
Unstable water surface elevation on day 200.039
negative surface layer thickness using minimum timestep at iteration 295
Branch #: 1 in Waterbody: 1 Surface layer KT: 39
Segment, Surface layer thickness, m, Flow m3/s, U(KT,I) m/s, ELWS, m
37 3.15 92.69 0.63 495.73
38 3.09 95.95 0.76 494.66
39 3.00 -12781.80 -0.30 493.54
40 -88.37 3541556.07 -19427.77 401.16
41 9.73 0.00 0.02 498.24
W2ErrorDump.csv¶
This file provides comprehensive diagnostic information at the time of model crash. The variable names shown in the dump file are as follows:
| Variable | Description |
|---|---|
JDAY |
Julian day at time of model crash |
QIN |
Inflow flow rates in m³ s⁻¹ for each model branch |
QTR |
Tributary inflow flow rates in m³ s⁻¹ for each tributary |
QDT |
Distributed inflow flow rates in m³ s⁻¹ for each branch |
QWD |
Withdrawal flow rates in m³ s⁻¹ for each withdrawal |
SEG |
Segment number (I) |
BRANCH |
Branch number |
KT |
Surface layer |
WSE |
Water surface elevation in m |
SZ |
Prior time step deviation of the surface layer water surface from KT |
Z |
Current time step deviation of the surface layer water surface from KT |
Q |
Flow rate between model segments computed from horizontal momentum equation |
QC |
Corrected flow rate between model segments computed from continuity balance (this is what is used in the model) |
QERR |
Differences in flow rate between Q and QC |
H2KT |
Prior time step surface layer depth |
H1KT |
Current time step surface layer depth |
BHR1 |
Current time step right hand side area (depth times width) of the surface layer |
BHR2 |
Prior time step right hand side area (depth times width) of the surface layer |
T1 |
Current time step model temperature at the surface layer |
T2 |
Prior time step model temperature at the surface layer |
SUKT |
Prior time step velocity of the surface layer at the right-hand side of the segment |
UKT |
Current time step velocity of the surface layer at the right-hand side of the segment |