update_horizontally {ambhasGW}R Documentation

Horizontal distribution of the flow in grid.

Description

Simulates the horizontal distribution of the flow in grids based on the diffusivity.

Usage

update_horizontally(h, beta)

Arguments

h

Initial head

beta

a parameter based on the diffusivity, time step and grid size.

Value

Returns the updated head.

Examples




# create synthetic head:
h <- cbind(c(1,2,3),c(4,5,6),c(7,8,9))
h
beta <- 0.5
h1 <- update_horizontally(h, beta)
h1

# increase the value of beta:
beta <- 1.0
h1 <- update_horizontally(h, beta)

# decrease the value of beta:
beta <- 0
h1 <- update_horizontally(h, beta)
h1


[Package ambhasGW version 0.0.2 Index]