CalcErrors: Calculate the differences between the base case and the...

Description Usage Arguments Details Value

View source: R/06_runhm.R

Description

This calculates the difference between a base case and a simulation case, as well as the fractional difference.

Usage

1
CalcErrors(long = NULL, basecase = NULL, basedir = "tmp")

Arguments

long

A long format data frame with historical data and the simulation results, populated by the ImportHist and the EclSum functions.

basecase

The case against which all others will be compared.

basedir

The path to the base directory of a simulation project. The default is a subdirectory of the current directory called "tmp".

Details

First it is necessary to define the timesteps at which errors are going to be estimated. The default dates will be those of the base case, and all other case values will need to be available at those dates (or interpolated to those dates, eventually).

The difference between a case and the base will be called ERR. The ERR divided by the base value will be called FRAC_ERR.

Value

This returns a long format data frame with production data and the calculated errors.


gerwathome/runOPM documentation built on May 20, 2019, 4:05 p.m.