calculate_drainage_flow: Calculates the flow rate from cumulative drainage

Description Usage Arguments Value

View source: R/utility_functions.R

Description

The relative weights are calculated by taking the first derivative using the function D1 from library sfsmisc. Then, they are transformed into a flow rate. Both, a smoothed version of the derivative and the trivial differences are returned.

Usage

1
2
3
4
5
6
7
calculate_drainage_flow(
  scale_s,
  rho_H20 = 0.99704,
  D,
  delta_out = 30,
  convert_mm_h = TRUE
)

Arguments

scale_s

tibble. First column time in sec, second column cumulative weight of the drained water

rho_H20

numeric. Density of water, default is 0.99704 g/mL or g/cm^3

D

numeric. Diameter of the soil column in m.

delta_out

numeric. Output sampling time interval, default is 30 sec. Must equal at least the length of the original sampling interval.

convert_mm_h

logical. Should the flow rate be converted to mm/h. Default is TRUE.

Value

tibble. First column is time in sec, second is the flow rate in mm/h


ChrisBogner/ViscousFlow documentation built on June 13, 2021, 7:47 a.m.