pside
function to set pressure boundary conditions (specifically for
the TOP boundary of a Cartesian grid), I encountered a runtime
error: "Index exceeds array
bounds" (triggered at line 93 of the pside function,
where the code checks ischar(varargin{1})).pside function in
the latest MRST 2025 version seem inconsistent with the usage in
the book's examples:pside with 4
core arguments (bc, G, side, pressure),
but the 2025 version of pside
appears to require additional mandatory parameters (e.g., state, fluid),
leading to an empty varargin
array and thus the index out-of-bounds error.pside (e.g.,
accessing state.mu, fluid.relperm)
also relies on uninitialized structures in the book’s
original example code.I would greatly appreciate your clarification on the following questions:
1. Has the pside function been deprecated,
modified, or replaced in MRST 2025?
2. If pside is still usable, what is the
correct parameter format and initialization requirement for it
in the 2025 version?
3. Is there an official/recommended alternative function to set pressure boundary conditions for Cartesian grids in the latest MRST?