UPSCALE_CAP(1)

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

πŸ’… UPSCALE_CAP(1) β€” bestie edition

okay so real quick, the manual name for this one is User Commands, and we're talking about upscale_cap β€” the little icon that upscales your capillary pressure + water saturation. iykyk. ✨


πŸŽ€ NAME πŸŽ€

upscale_cap β€” upscale capillary pressure and water saturation. that's it, that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

upscale_cap [option value] [grid file] [rock file 1] [rock file 2] [rock
file 3] ...

lowkey the simplest little invocation ever. you feed it a grid file and then as many rock files as your heart desires. πŸ’–


🌸 DESCRIPTION 🌸

so what this does is upscale the capillary pressure function and the water saturation β€” and it does both for the whole geometry and also on a per-rocktype basis. not one or the other, both. we love a multitasker. πŸ‘‘

Example usage, and yes this is the actual thing you type:

upscale_cap grid.grdecl swof1.inc swof2.inc

Now. If your input is isotropic, the rock file has four columns and it looks exactly like this, no cap:

-- Stone 1 -- Sw           Krw             Kro     J-func
  1.42000E-01  0.00000E+00  1.00000E+00  2.25999E+00
  2.79250E-01  1.93652E-03  5.03619E-01  5.76122E-02
  4.14850E-01  1.09648E-02  2.36036E-01  -1.23421E-02
  6.14150E-01  4.10007E-02  3.95006E-02  -8.96693E-02
  7.26100E-01  1.41398E-01  9.30808E-03  -1.19849E-01
  9.48000E-01  8.40000E-01  0.00000E+00  -1.42553E+00

four columns bestie: Sw, Krw, Kro, and the J-func. memorise it. πŸ“


πŸ’… OPTIONS πŸ’…

one bullet per flag, we're being thorough, periodt.

  • -points β€” number of saturation points to upscale for, uniformly distributed. defaults to 30. ✨
  • -jFunctionCurve β€” if upscaleBothPhases is false and the input is isotropic, this is the column number in the stone-files that represents the Leverett J-function. defaults to 4.
  • -surfaceTension β€” surface tension in dynes/cm to use in the J-function/Pc conversion. Contact angle is not supported, and β€” yeah the sentence just kinda trails off there in the original, not me editing it, that's genuinely where it ends πŸ’€
  • -output β€” filename for where to write the upscaled values. πŸ“
  • -maxPermContrast β€” maximal permeability contrast in the model. defaults to 1e7. πŸ”₯
  • -minPerm β€” minimum value allowed for phase permeability. defaults to 1e-12. 🧚

😭 REPORTING BUGS 😭

found a bug? do NOT suffer in silence bestie, report it on the github repository right here:

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


πŸ‘‘ SEE ALSO πŸ‘‘

  • upscale_relperm β€” its sibling, go say hi 🫢

okay that's the whole page!! this is upscale_cap 2023.10, dated October 2023 β€” version and date dropped right here at the end like a lil signature. mwah. πŸ’‹ stay upscaled, bestie πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ