This function takes coagulant doses in mg/L as chemical, removed turbidity, hardness removal in mg/L as chemical, and plant flow as MGD to determine solids production.
Usage
solvemass_solids(
alum = 0,
ferricchloride = 0,
ferricsulfate = 0,
flow,
toc_removed = 0,
ca_removed = 0,
mg_removed = 0,
polymer = 0,
turb,
b = 1.5,
details = FALSE
)Source
https://water.mecc.edu/courses/ENV295Residuals/lesson3b.htm#:~:text=From%20the%20diagram%2C%20for%20example,million%20gallons%20of%20water%20produced.
Arguments
- alum
Amount of hydrated aluminum sulfate added in mg/L as chemical: Al2(SO4)3*14H2O + 6HCO3 -> 2Al(OH)3(am) +3SO4 + 14H2O + 6CO2
- ferricchloride
Amount of ferric chloride added in mg/L as chemical: FeCl3 + 3HCO3 -> Fe(OH)3(am) + 3Cl + 3CO2
- ferricsulfate
Amount of ferric sulfate added in mg/L as chemical: Fe2(SO4)3*8.8H2O + 6HCO3 -> 2Fe(OH)3(am) + 3SO4 + 8.8H2O + 6CO2
- flow
Plant flow in MGD
- toc_removed
Amount of total organic carbon removed by the treatment process in mg/L
- ca_removed
Amount of calcium hardness removed by softening as mg/L Ca
- mg_removed
Amount of magnesium hardness removed by softening as mg/L Mg
- polymer
Amount of polymer added in mg/L as chemical
- turb
Turbidity removed in NTU
- b
Correlation factor from turbidity to suspended solids. Defaults to 1.5.
- details
Option to return a list with the solids mass and the individual contributions of each solids component. Defaults to FALSE.
Value
A numeric value for solids mass in lb/day. If details = TRUE, returns a named list with total and per-component values in lb/day.
Examples
solids_mass <- solvemass_solids(alum = 50, flow = 10, turb = 20)
library(dplyr)
mass_data <- tibble(
alum = seq(10, 50, 10),
flow = 10
) %>%
mutate(mass = solvemass_solids(alum = alum, flow = flow, turb = 20))
mass_details_true <- tibble(
ferricsulfate = seq(10, 50, 10),
polymer = seq(1, 5, 1),
flow = 10
) %>%
mutate(mass = solvemass_solids(ferricsulfate = ferricsulfate,
polymer = polymer, flow = flow, turb = 20))
#'
