get_recharge_flow_potential: Recharge flow potential function

Description Usage Arguments Details Value Examples

View source: R/anem_recharge.R

Description

Recharge flow potential function

Usage

1

Arguments

loc

Location for evaluating Vector location as c(x,y) or data.frame containing x, y columns

Aquifer

Aquifer containing containing aquifer_type,h0 and recharge (see Details)

Details

Recharge parameters must contain x0, y0, x_term, and y_term. For confined aquifers, the last two are:

For unconfined aquifers, these parameters are:

Value

Returns hydraulic head (confined aquifers) or discharge potential (unconfined aquifers) at the location(s).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Not run: 
## Flow - confined aquifer
recharge_params <- list(recharge_type="F",recharge_vector=c(0,0,1,2),flow=1,x0=0,y0=0)
aquifer <- define_aquifer("confined",1,h0=0,z0=1,recharge=recharge_params)
get_recharge_flow_potential(c(1/sqrt(2),1/sqrt(2)), aquifer)

loc <- expand.grid(x=-2:2,y=-2:2)
loc$h <- get_recharge_flow_potential(loc, aquifer)

library(ggplot2)
ggplot(loc) + geom_raster(aes(x,y,fill=h)) + scale_fill_gradient2()

recharge_params <- list(recharge_type="F",recharge_vector=c(-1,-5,0,0),flow=1,x0=0,y0=0)
aquifer <- define_aquifer("confined",1,h0=10,z0=1,recharge=recharge_params)
loc <- expand.grid(x=-100:100,y=-100:100)
loc$h <- get_recharge_flow_potential(loc, aquifer)
ggplot(loc) + geom_raster(aes(x,y,fill=h)) + scale_fill_gradient2()

recharge_params <- list(recharge_type="F",recharge_vector=c(-1,-5,0,0),flow=1,x0=0,y0=0)
aquifer <- define_aquifer("unconfined",1e-1,h0=50,recharge=recharge_params)
loc <- expand.grid(x=-100:100,y=-100:100)
loc$h2 <- get_recharge_flow_potential(loc, aquifer)
loc$h <- sqrt(loc$h2)
ggplot(loc) + geom_raster(aes(x,y,fill=h)) + scale_fill_gradient2(midpoint=50)

## End(Not run)

gopalpenny/anem documentation built on Dec. 20, 2020, 5:27 a.m.