Newer
Older
library(r2ogs6)
#===== Set up simulation object =====
# First make sure you're ready to go by setting r2ogs6.default_ogs_bin_path.
# You can do this by commenting out the line below and modifying the path to
# fit your system.
# options("r2ogs6.default_ogs_bin_path" = "your_path_here")
# Then we can create a simulation object.
ogs6_obj <- OGS6$new(sim_name = "flow_free_expansion",
#===== Read in benchmark file =====
# Modify the prj_path depending on where you saved the benchmark file.
prj_path <- "inst/extdata/benchmarks/flow_free_expansion/flow_free_expansion.prj"
# Read in the benchmark into our simulation object
read_in_prj(ogs6_obj, prj_path, read_in_gml = T)
#===== Run simulation =====
e <- ogs6_run_simulation(ogs6_obj, write_logfile = FALSE)