CPCHOP(1)

πŸ“¦
version 2025.10 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– CPCHOP(1) πŸ’–

okay bestie, welcome to the cpchop manual page β€” that's a User Commands page, section 1, and honestly? she's iconic. πŸŽ€


✨ NAME ✨

cpchop β€” Upscale simple statistics. that's it, that's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

cpchop gridfilename=cornerpointgrid.grdecl [option=value]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, cpchop is a little utility for doing subsampling and property analysis of Eclipse grid files. the way it usually comes up is files generated in SBED or ReservoirStudio β€” but lowkey she's not picky, she works on all corner point grids that have a box shape and vertical pillars. no gatekeeping here. πŸ’…

here's an example of her in her natural habitat:

cpchop gridfilename=HugeReservoirStudioGrid.grdecl subsamples=100 ilen=5 jlen=5 zlen=5

like. look at her go. 😭


πŸ‘‘ OPTIONS πŸ‘‘

one bullet per option, bestie, and yes I'm giving you ALL of them, no skipping the boring ones:

  • subsamples β€” how many subsamples you want. defaults to 1.
  • filebase β€” if you supply this, grdecl-files get written out for each subsample, named using this filebase. it may include directory names, so go off with your paths. ✨
  • resultfile β€” the name of a textfile to output the table of results per subsample to.
  • ilen β€” length in the i-direction of the subsample, specified in number of cells. defaults to all cells in the i-direction.
  • jlen β€” length in the j-direction of the subsample, specified in number of cells. defaults to all cells in the j-direction.
  • zlen β€” length in the z-direction of the subsample, specified in the grid's length unit (typically cm or m). defaults to full height.
  • imin β€” can be used to limit the search area for random subsamples. defaults to the minimum i in the inputgrid (full model).
  • imax β€” can be used to limit the search area for random subsamples. defaults to the maximum i in the inputgrid (full model).
  • jmin β€” analog to imin, but in the j-direction. defaults to the minimum j in the inputgrid (full model).
  • jmax β€” analog to imax, but in the j-direction. defaults to the maximum j in the inputgrid (full model).
  • zmin β€” analog to imin, but in the z-direction and specified in the grid's length unit. defaults to the minimum in the inputgrid.
  • zmax β€” analog to imax, but in the z-direction and specified in the grid's length unit. defaults to the maximum in the inputgrid.
  • upscale β€” boolean for whether to do upscaling on the subsamples, either true or false. if your whole objective is just to get a grdecl-file for the subsample, set this to false for the run time, bestie, save yourself the wait. defaults to true.
  • bc β€” boundary condition type for upscaling, either fixed or periodic. defaults to fixed.
  • resettoorigin β€” if true, the outputted grdecl-file will have its ZCORN-values and COORDS-values shifted so the model is defined at the origin. if false, the outputted grdecl-file stays in its original position. defaults to true.
  • seed β€” provide a seed number. defaults to 0.
  • minperm β€” minimum permeability. defaults to 1e-9.
  • dips β€” whether to do dip averaging. outputs dip and azimuth for each subsample. defaults to false.
  • azimuthdisplacement β€” add or subtract a value for dip. assumes dips is set to true. defaults to zero.
  • satnumvolumes β€” count volumes per satnum/rocktype. defaults to false.
  • mincellvolume β€” ignore cells with volume below the threshold. defaults to 1e-9.
  • endpoints β€” upscale saturation end-points. defaults to false.
  • cappres β€” upscale capillary pressure. defaults to false.
  • rock_list β€” provide a rock list for end-point upscaling.
  • anisotropirocks β€” directional saturation functions. defaults to false.
πŸ’€ not me listing twenty-five options like it's nothing. but she ate, and you're gonna remember all of them now, periodt.

πŸ› REPORTING BUGS πŸ›

found a bug? don't suffer in silence, bestie. report it on the github repository:

https://github.com/OPM/opm-upscaling/issues


🌈 SEE ALSO 🌈

  • upscale_perm

and that's the whole page, bestie πŸ’–

this was cpchop version 2023.10, from October 2023. go forth and subsample responsibly. 🧚✨