HYSTERESIS(1)
π NAME π
okay so bestie, let me put you on real quick β hysteresis is the tool that extracts relative permeability and capillary pressure curves, with hysteresis if it's enabled. that's it, that's the whole job. π«Ά
β¨ SYNOPSIS β¨
hysteresis DATA_FILE SATURATION_FILE OUTPUT_FILE TWOPHASE_SYSTEM [CELL_INDEX]
π¦ DESCRIPTION π¦
So like, what does it actually do? It extracts the relative permeability curves and the capillary pressure curves β with hysteresis if enabled β for a cell in the model, and then it writes them as tables to a CSV file. iconic behaviour honestly. π
π the arguments, one by one π
DATAFILEβ this is your data file name, and it's the one that contains keywords likeSGOF,EHYSTR, etc. etc. it's giving "the source of truth". πSATURATION_FILEβ a file holding the saturations you're asking about. one saturation value per line, no cap. now, whether that's the gas or the water saturation depends on theTWOPHASE_SYSTEMparameter you pass in. specifically, it's the saturation of the first mentioned phase of the system you specified. so order matters, bestie, keep up. πOUTPUT_FILEβ the name of the CSV file we're writing the relative permeability and capillary pressure curves to. there will be one line for every single saturation value fromSATURATION_FILE. and each one of those lines contains the values[sw, krw, kro, pcow, krnSwMdc(So at turning point), Sn(trapped s) ]. (or the equivalent if you're running a GO or GW system β same energy, different letters.) πTWOPHASE_SYSTEMβ the two-phase system to use for outputting the first two phases. should be one of these strings, exactly:WOβ water-oil. water first, then oil.GOβ gas-oil.GWβ gas-water.
CELL_INDEXβ the cell index, and the default is0. it gets used to determine theSATNUM/IMBNUMvalue that goes into the calculation. π§
ngl there's no hysteresis-free escape hatch here β if hysteresis is enabled in your data, the curves come out with hysteresis. that's the bit in the name, periodt.
and that's the whole page, bestie π β this was hysteresis, from the User Commands chapter of the manual, dated April 2025. go forth and extract those curves, you absolute main character. πβ¨
π¦ where this page comes from
- ubuntu resolute: libopm-common-bin 2025.10+ds-3 Β· GPL-3.0-or-later
- ubuntu stonking: libopm-common-bin 2025.10+ds-4 Β· 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