write.WEL: Write a well (WEL) package file

Description Usage Arguments Examples

Description

Writes information from a WEL.MFpackage list object to a MODFLOW-readable WEL package file.

Usage

1
write.WEL(WEL, filename, title = "", MF2k = TRUE)

Arguments

WEL

object of class WEL.MFpackage

filename

character string; file to which package information is to be written

title

character string; optional title to prefix to the file, for your reference (not used if MF2k = FALSE)

MF2k

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# read WEL package
fnm <- system.file("rflow_mf_demo.wel", package = "Rflow")
wel <- read.WEL(fnm, 15L)

# meaningful modification e.g. add a stress period with no abstraction
wel$spheader <- rbind(wel$spheader, list(0L, 0L))
wel$read <- c(wel$read, TRUE)

# write modified wel package to file
write.WEL(wel, "RFLOW_EXAMPLE.wel", "example: added stress period")

CJBarry/Rflow documentation built on June 16, 2019, 12:35 p.m.