WELLTEST_DPDS
Script to extract simulated welltest results. Typically used to compare with welltest analysis, from eg Kappa Saphir.
- Required summary vectors in sim deck:
wbhp:well_name
wopr:well_name if phase == OIL
wgpr:well_name if phase == GAS (do not yet use pseudo-pressure)
wwpr:well_name if phase == WATER
- Outputs files according to naming convention under outputdirectory/:
dpdspt_lag1_suffix.csv; cumtime and superpositioned time derivative of pressure lag1
dpdspt_lag2_suffix.csv; cumtime and superpositioned time derivative of pressure lag2
spt_suffix.csv; superpositioned time
welltest_output_suffix.csv; file with vectors: cumtime, wbhp, wopr, wgpr, wwpr
dpdspt_lag1_genobs_suffix_bunr.csv; if –genobs_resultfile is invoked
dpdspt_lag2_genobs_suffix_bunr.csv; if –genobs_resultfile is invoked
wbhp_genobs_suffix_bunr.csv; if –genobs_resultfile is invoked
suffix is specified by argument outfilesuffix bunr is specified by argument buildup_nr genobs_resultfile expects a file with welltest results used to define the time steps to be reported (typically exported from Saphir with time and pressure derivative). genobs_resultfile is to generate files used with GENERAL_OBSERVATION/GEN_DATA in ERT. note: the outfilesuffix argument is then used to pass on the RESTART/report step number. (in example below outfilesuffix=wellname_reportstep).
Note
GAS phase results do not include yet pseudo-time and pseudo-pressure.
usage: welltest_dpds [-h] [--outfilessuffix OUTFILESSUFFIX] [-n BUILDUP_NR]
[-o OUTPUTDIRECTORY] [--phase {OIL,GAS,WATER}]
[--genobs_resultfile GENOBS_RESULTFILE] [--version]
eclcase wellname
Positional Arguments
- eclcase
Eclipse case to extract from
- wellname
Name of well to extract results from
Named Arguments
- --outfilessuffix
Suffix to be added to result files.
Default: “”
- -n, --buildup_nr
Buildup nr, eg which buildup to extract. Counting from 1.
Default: 1
- -o, --outputdirectory
Directory to put the output files.
Default: “.”
- --phase
Possible choices: OIL, GAS, WATER
Main fluid phase in test (OIL/GAS/WATER).
Default: “OIL”
- --genobs_resultfile
Option to trigger export of result files compatible with ERTGENERAL_OBSERVATION file format to be used in history matching. Expected argument is a file with welltest results used to definethe time steps to be reported (file typically exported from Saphir.)
- --version
show program’s version number and exit