marsUnderdrainOutflow_cf: Observed Orifice Outflow Volume

View source: R/mars_water_level_functions.R

marsUnderdrainOutflow_cfR Documentation

Observed Orifice Outflow Volume

Description

Total observed orifice outflow volume (cf)

Usage

marsUnderdrainOutflow_cf(
  dtime,
  waterlevel_ft,
  orifice_height_ft,
  orifice_diam_in,
  discharge_coeff = 0.62
)

Arguments

dtime

A vector of POSIXct date times, in ascending order

waterlevel_ft

Observed water level data (ft)

orifice_height_ft

Orifice height (ft)

orifice_diam_in

Orifice diameter (in)

discharge_coeff

Orifice discharge coefficient

Value

Output is total observed orifice outflow volume (cf)

See Also

marsInfiltrationRate_inhr

Examples

obs_250_fill <- obs_250_all %>%  
dplyr::arrange(dtime_est) %>%
  tidyr::fill(event) %>% #Fill NA's
  dplyr::mutate( # Pull in system specs from smp_stats table    
    storage_depth_ft = smp_stats$storage_depth_ft[7], 
    storage_vol_ft3 = smp_stats$storage_vol_ft3[7],
    infil_footprint_ft2 = smp_stats$infil_footprint_ft2[7],
    dcia_ft2 =  smp_stats$dcia_ft2[7],
    orifice_height_ft = smp_stats$orifice_height_ft[7],
    orifice_diam_in = smp_stats$orifice_diam_in[7],
    
    # Calculate orifice flow, if applicable
   orifice_vol_cf = marsUnderdrainOutflow_cf(dtime_est,
                                        waterlevel_ft = level_ft,
                                        orifice_height_ft,
                                        orifice_diam_in)
  )



taywater/pwdgsi documentation built on June 14, 2025, 9 p.m.