UPSCALE_CAP(1)
π 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 to30. β¨-jFunctionCurveβ ifupscaleBothPhasesis false and the input is isotropic, this is the column number in the stone-files that represents the Leverett J-function. defaults to4.-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 to1e7. π₯-minPermβ minimum value allowed for phase permeability. defaults to1e-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 πβ¨ππ¦πΈ
π¦ where this page comes from
- debian trixie: libopm-upscaling-bin 2024.10+ds-1+b1 Β· GPL-3.0-or-later
- ubuntu questing: libopm-upscaling-bin 2025.04+ds-1
- ubuntu resolute: libopm-upscaling-bin 2025.10+ds-2 Β· GPL-3.0-or-later
- ubuntu stonking: libopm-upscaling-bin 2025.10+ds-3 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms